Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/hpcmips Add minimal support for vr4122/vrc4173 pci.
details: https://anonhg.NetBSD.org/src/rev/c06d87ede826
branches: trunk
changeset: 511116:c06d87ede826
user: enami <enami%NetBSD.org@localhost>
date: Wed Jun 13 07:32:47 2001 +0000
description:
Add minimal support for vr4122/vrc4173 pci.
diffstat:
sys/arch/hpcmips/conf/MPC303 | 438 +++++++++++++++++++++++++++++++
sys/arch/hpcmips/conf/files.hpcmips | 42 ++-
sys/arch/hpcmips/include/pci_machdep.h | 114 ++++++++
sys/arch/hpcmips/vr/vrc4173bcu.c | 327 +++++++++++++++++++++++
sys/arch/hpcmips/vr/vrc4173bcuvar.h | 63 ++++
sys/arch/hpcmips/vr/vrc4173icureg.h | 62 ++++
sys/arch/hpcmips/vr/vrpciu.c | 458 +++++++++++++++++++++++++++++++++
sys/arch/hpcmips/vr/vrpciureg.h | 74 +++++
8 files changed, 1575 insertions(+), 3 deletions(-)
diffs (truncated from 1659 to 300 lines):
diff -r f8d8181f4873 -r c06d87ede826 sys/arch/hpcmips/conf/MPC303
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/hpcmips/conf/MPC303 Wed Jun 13 07:32:47 2001 +0000
@@ -0,0 +1,438 @@
+#
+# $NetBSD: MPC303,v 1.1 2001/06/13 07:32:48 enami Exp $
+# From: NetBSD: GENERIC,v 1.91 2001/05/06 14:25:16 takemura Exp
+#
+# Kernel configuration file for Victor MP-C303; enami's test machine.
+#
+
+include "arch/hpcmips/conf/std.hpcmips"
+
+#ident "GENERIC-$Revision: 1.1 $"
+
+maxusers 10
+
+options MIPS3 # R4000/R4400/R4600 CPUs
+
+# Support for specific models of H/PC MIPS
+options MIPS3_4100 # VR4100 core
+options VR41XX # NEC VR41xx series
+options VR4122 # NEC VR4122
+options NOFPU # No FPU
+options SOFTFLOAT # emulate FPU insn
+options MIPS3_L2CACHE_ABSENT
+
+# Standard system options
+options DDB # in-kernel debugger
+#options DDB_ONPANIC=0 # don't enter debugger on panic
+#options KGDB # remote debugger
+options DIAGNOSTIC # extra kernel debugging checks
+#options DEBUG # extra kernel debugging support
+options KTRACE # system call tracing support
+options MSGBUFSIZE=16384 # dmesg buffer size
+
+## UVM options.
+#options UVM_PAGE_TRKOWN
+#options UVMHIST
+#options UVMHIST_PRINT # Loud!
+
+#options SCSIVERBOSE # human readable SCSI error messages
+#options PCMCIAVERBOSE # verbose PCMCIA configuration messages
+
+#options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
+options RTC_OFFSET=-540 # JST-9
+#options RTC_OFFSET=480 # PST8
+ # In NO RTC_OFFSET , inherit RTC_OFFSET
+ # from Windows CE.
+options NTP # network time protocol
+#options UCONSOLE # users can redirect console (unsafe)
+
+#options WINCE_DEFAULT_SETTING # Debugging use
+#options DUMP_GIU_LEVEL2_INTR # Debugging use
+#options DEBUG_FIND_PCIC # Debugging use XXX harmful don't define until read source.
+
+#options SYSCALL_DEBUG # for debug
+#options HPCMIPS_L1CACHE_DISABLE # disable L1 cache for debug
+#options HPCMIPS_FLUSHCACHE_XXX # for debug
+
+# Filesystem options
+file-system FFS # fast filesystem with user and group quotas
+file-system MFS # memory-based filesystem
+file-system NFS # Sun NFS-compatible filesystem (client)
+#file-system LFS # Log-based filesystem (still experimental)
+file-system CD9660 # ISO 9660 + Rock Ridge file system
+file-system MSDOSFS # MS-DOS file system
+#file-system FDESC # /dev/fd
+file-system KERNFS # /kern (kernel informational filesystem)
+#file-system NULLFS # loopback file system
+#file-system OVERLAY # overlay file system
+#file-system PORTAL # portal filesystem (still experimental)
+file-system PROCFS # /proc
+#file-system UMAPFS # NULLFS + uid and gid remapping
+file-system UNION
+
+#options NFSSERVER # Sun NFS-compatible filesystem (server)
+options SOFTDEP # FFS soft updates support.
+#options QUOTA # UFS quotas
+options VNODE_OP_NOINLINE # don't inline vnode op calls
+
+# Networking options
+#options GATEWAY # IP packet forwarding
+options INET # IP + ICMP + TCP + UDP
+options INET6 # IPV6
+#options IPSEC # IP security
+#options IPSEC_ESP # IP security (encryption part; define w/ IPSEC)
+#options IPSEC_DEBUG # debug for IP security
+#options MROUTING # Multicast routing support
+#options ISO # OSI networking
+#options TPIP # TPIP
+#options EON # OSI tunneling over IP
+#options CCITT,LLC,HDLC # X.25
+
+# NetBSD backwards compatibility
+options COMPAT_43
+
+#options NFS_BOOT_DHCP
+options NFS_BOOT_BOOTPARAM
+
+options VR_FIND_DRAMLIM=0x03800000
+
+#config netbsd root on ? type ?
+config netbsd root on aue0 type nfs
+
+# WS console uses SUN or VT100 terminal emulation
+options WSEMUL_VT100
+#options WSDISPLAY_DEFAULTSCREENS=4
+#options FONT_VT220L8x8
+options FONT_VT220L8x10
+# compatibility to other console drivers
+options WSDISPLAY_COMPAT_PCVT # emulate some ioctls
+options WSDISPLAY_COMPAT_SYSCONS # emulate some ioctls
+options WSDISPLAY_COMPAT_USL # VT handling
+options WSDISPLAY_COMPAT_RAWKBD # can get raw scancodes
+#
+# Hpckbd will set key board layout appropriately. You can use option
+# 'PCKBD_LAYOUT' to overrite the default layout.
+#
+#options PCKBD_LAYOUT="(KB_US | KB_SWAPCTRLCAPS | KB_MACHDEP)"
+
+# temporally power management
+hpcapm0 at mainbus0 # power management
+apmdev0 at hpcapm0 # APM
+
+vrip* at mainbus0
+vrbcu* at vrip? addr 0x0f000000 size 0x20
+vrcmu* at vrip? addr 0x0f000060 size 0x20
+vrrtc* at vrip? addr 0x0f000100 size 0x20 intr 2
+
+#vrkiu* at vrip? addr 0x0b000180 size 0x20 intr 7
+#hpckbd* at vrkiu?
+options CONSPEED=19200
+com* at vrip? addr 0x0f000800 size 0x20 intr 9 pwctl PWCTL_COM0
+vrgiu* at vrip? addr 0x0f000140 size 0x20 intr 8
+vrpmu* at vrip? addr 0x0f0000c0 size 0x20 intr 1 # power switch
+#vrdsu* at vrip? addr 0x0b0000e0 size 0x08
+#vrpiu* at vrip? addr 0x0b000120 size 0x1a0 intr 5
+vrled* at vrip? addr 0x0f000180 size 0x10 intr 17
+vrpciu* at vrip? addr 0x0f000c00 size 0x200 intr 22
+
+# PCI bus support
+options PCIVERBOSE
+pci* at vrpciu?
+
+# MQ200
+#mqvideo0 at pci? dev ? function ?
+#hpcfb* at mqvideo?
+
+# VRC4173
+vrc4173bcu* at pci? dev ? function ? # VRC4173 BCU
+#vrc4173cmu* at vrc4173bcu? # VRC4173 CMU
+#vrc4173piu* at vrc4173bcu? # VRC4173 PIU
+#vrc4173kiu* at vrc4173bcu? # VRC4173 KIU
+
+#vrc4173cardu* at pci? dev ? function ? # VRC4173 CARDU
+#pcmcia* at vrc4173cardu?
+
+# PCI USB controllers
+ohci* at pci? dev ? function ? # Open Host Controller
+options OHCI_DEBUG, USB_DEBUG, UHUB_DEBUG
+
+# USB bus support
+usb* at ohci?
+
+# USB Hubs
+uhub* at usb?
+uhub* at uhub? port ? configuration ? interface ?
+
+# USB Generic driver
+ugen* at uhub? port ?
+
+# USB Ethernet adapters
+aue* at uhub? port ? # ADMtek AN986 Pegasus based adapters
+
+# MII/PHY support
+ukphy* at mii? phy ? # generic unknown PHYs
+
+options MQ200_DEBUG
+#options MQ200_USECRT
+#mqvideo0 at vrip? addr 0x0a000000 size 0x800000 # MQ200 video controller
+#hpcfb* at mqvideo?
+
+#ite8181video0 at vrip? addr 0x0a000000 size 0x800000 # ITE8181 video controller
+#hpcfb* at ite8181video?
+
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_430
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_510
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_520
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_520A
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_530
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_SIGMARION
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_530A
+#vrc4172pwm* at vrip? addr 0x15003880 size 0x6 platform NEC_MCR_700
+
+# Workstation Console attachments
+bivideo0 at mainbus0
+hpcfb* at bivideo0
+wsdisplay* at hpcfb?
+#wskbd* at hpckbd? mux 1
+#wsmouse* at vrpiu? mux 0
+btnmgr0 at mainbus0
+wskbd* at btnmgr0 mux 1
+
+#
+# hpcmips isa? bus irq locator means:
+#
+# 0x0000000f ISA IRQ#
+# 0x00ff0000 GPIO port#
+# 0x01000000 interrupt signal hold/through (1:hold/0:though)
+# 0x02000000 interrupt detection level (1:low /0:high )
+# 0x04000000 interrupt detection trigger (1:edge/0:level )
+
+#
+# MC-R300, MC-R500
+# Button to GPIO port # mapping
+# + REC button : 4
+# + Open/Close button: 6
+# (PCIC-ISA : 9)
+# (COM power:14)
+#
+# MC-R510
+# Button to GPIO port # mapping
+# + Open/Close button: 3
+# (PCIC-ISA : 9)
+# (COM power:14)
+#
+# MC-R530
+# Button to GPIO port # mapping
+# + Open/Close button: 3
+# + Application button: 2
+# (PCIC-ISA : 9)
+# (COM power:46)
+#
+# MC-R700
+# Button to GPIO port # mapping
+# + Open/Close button: 3
+# (PCIC-ISA : 9)
+# (COM power:46)
+#
+# MC-CS
+# Button to GPIO port # mapping
+# (PCIC-ISA : 9)
+# (COM power:14)
+#
+# IBM WorkPad z50
+# Button to GPIO port # mapping
+# + REC button : 1
+# + Application button? : 2
+# (PCIC-ISA : 9)
+#
+button0 at vrgiu? platform NEC_MCR_3XX id BTN_REC port 4
+button0 at vrgiu? platform NEC_MCR_500 id BTN_REC port 4
+button0 at vrgiu? platform IBM_WORKPAD id BTN_REC port 1 active 0
+button1 at vrgiu? platform NEC_MCR_430 id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_510 id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_520 id BTN_COVER port 3
+#button1 at vrgiu? platform NEC_MCR_520A id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_530 id BTN_COVER port 3
+#button1 at vrgiu? platform NEC_MCR_530A id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_SIGMARION id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_7XX id BTN_COVER port 3
+button1 at vrgiu? platform NEC_MCR_3XX id BTN_COVER port 6
+button1 at vrgiu? platform NEC_MCR_500 id BTN_COVER port 6
+button2 at vrgiu? platform NEC_MCR_530 id BTN_APP0 port 2
+button2 at vrgiu? platform IBM_WORKPAD id BTN_APP0 port 2 active 0
+button3 at vrgiu? platform NEC_MCCS id BTN_LIGHT port 8
+pwctl0 at vrgiu? platform NEC_MCR_3XX id PWCTL_COM0 port 14
+pwctl0 at vrgiu? platform NEC_MCR_430 id PWCTL_COM0 port 46
+pwctl0 at vrgiu? platform NEC_MCR_500 id PWCTL_COM0 port 14
+pwctl0 at vrgiu? platform NEC_MCR_530 id PWCTL_COM0 port 46
+pwctl0 at vrgiu? platform NEC_MCR_530A id PWCTL_COM0 port 46
+#pwctl0 at vrgiu? platform NEC_MCR_SIGMARION id PWCTL_COM0 port 46
+pwctl0 at vrgiu? platform NEC_MCR_7XX id PWCTL_COM0 port 46
+pwctl0 at vrgiu? platform NEC_MCCS id PWCTL_COM0 port 14
+pwctl1 at vrgiu? platform NEC_MCR_300 id PWCTL_LCDLIGHT port 45
+pwctl1 at vrgiu? platform NEC_MCR_FORDOCOMO id PWCTL_LCDLIGHT port 45
+pwctl1 at vrgiu? platform NEC_MCR_500 id PWCTL_LCDLIGHT port 45
+pwctl1 at vrgiu? platform NEC_MCCS id PWCTL_LCDLIGHT port 45
+pwctl2 at vrgiu? platform NEC_MCR_300 id PWCTL_LCD port 10
+pwctl2 at vrgiu? platform NEC_MCR_FORDOCOMO id PWCTL_LCD port 10
+pwctl2 at vrgiu? platform NEC_MCR_500 id PWCTL_LCD port 10
+pwctl2 at vrgiu? platform NEC_MCCS id PWCTL_LCD port 10
+pwctl3 at vrgiu? platform NEC_MCR_3XX id PWCTL_SPEAKER port 12
+pwctl3 at vrgiu? platform NEC_MCR_430 id PWCTL_SPEAKER port 44
+pwctl3 at vrgiu? platform NEC_MCR_500 id PWCTL_SPEAKER port 12
+pwctl3 at vrgiu? platform NEC_MCR_510 id PWCTL_SPEAKER port 44
+pwctl3 at vrgiu? platform NEC_MCR_520 id PWCTL_SPEAKER port 44
+#pwctl3 at vrgiu? platform NEC_MCR_520A id PWCTL_SPEAKER port 44
+pwctl3 at vrgiu? platform NEC_MCR_530 id PWCTL_SPEAKER port 44
+#pwctl3 at vrgiu? platform NEC_MCR_530A id PWCTL_SPEAKER port 44
+#pwctl3 at vrgiu? platform NEC_MCR_SIGMARION id PWCTL_SPEAKER port 44
+pwctl3 at vrgiu? platform IBM_WORKPAD id PWCTL_SPEAKER port 49
+#pwctl4 at vrgiu? platform NEC_MCR_430 id PWCTL_COM1 port 47
+#pwctl4 at vrgiu? platform NEC_MCR_530 id PWCTL_COM1 port 47
+#pwctl4 at vrgiu? platform NEC_MCR_SIGMARION id PWCTL_COM1 port 47
+vrisab0 at vrgiu? platform NEC_MCR
+vrisab0 at vrgiu? platform NEC_MCCS
+vrisab0 at vrgiu? platform IBM_WORKPAD isaportoffset 0x1000000
+isa0 at vrisab0
Home |
Main Index |
Thread Index |
Old Index