Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch Support mmEye-WLF.



details:   https://anonhg.NetBSD.org/src/rev/c83255324dd8
branches:  trunk
changeset: 762322:c83255324dd8
user:      kiyohara <kiyohara%NetBSD.org@localhost>
date:      Sat Feb 19 10:46:27 2011 +0000

description:
Support mmEye-WLF.
  Also maybe support mmEye-WL, mmEye2, mmEye2-HS.

diffstat:

 sys/arch/mmeye/conf/GENERIC               |   24 +-
 sys/arch/mmeye/conf/MMEYE                 |   18 +-
 sys/arch/mmeye/conf/MMEYE_WLF             |  282 ++++++++++++++++++++++++++++++
 sys/arch/mmeye/conf/MMTA                  |   14 +-
 sys/arch/mmeye/conf/MMTAICE               |   14 +-
 sys/arch/mmeye/conf/MMTANEW               |    4 +-
 sys/arch/mmeye/conf/MMTAROMNEW            |   16 +-
 sys/arch/mmeye/conf/files.mmeye           |   18 +-
 sys/arch/mmeye/conf/std.mmeye             |    6 +-
 sys/arch/mmeye/dev/com_mainbus.c          |   12 +-
 sys/arch/mmeye/dev/if_ne_mainbus.c        |  166 +++++++++++++++++
 sys/arch/mmeye/dev/mmeyepcmcia.c          |  250 ++++++++++++++------------
 sys/arch/mmeye/dev/rtciic.c               |  264 ++++++++++++++++++++++++++++
 sys/arch/mmeye/dev/wdc_mainbus.c          |  185 +++++++++++++++++++
 sys/arch/mmeye/include/bootinfo.h         |   72 +++++++
 sys/arch/mmeye/include/intr.h             |    5 +-
 sys/arch/mmeye/include/loadfile_machdep.h |   16 +-
 sys/arch/mmeye/include/mmeye.h            |   20 +-
 sys/arch/mmeye/mmeye/autoconf.c           |   76 +++++++-
 sys/arch/mmeye/mmeye/clock_machdep.c      |    6 +-
 sys/arch/mmeye/mmeye/locore.S             |    5 +-
 sys/arch/mmeye/mmeye/machdep.c            |  282 ++++++++++++++++++++++++++---
 sys/arch/mmeye/mmeye/mainbus.c            |   85 ++++++--
 sys/arch/sh3/sh3/disksubr.c               |   13 +-
 24 files changed, 1610 insertions(+), 243 deletions(-)

diffs (truncated from 2722 to 300 lines):

diff -r 2af97266bd17 -r c83255324dd8 sys/arch/mmeye/conf/GENERIC
--- a/sys/arch/mmeye/conf/GENERIC       Sat Feb 19 09:59:12 2011 +0000
+++ b/sys/arch/mmeye/conf/GENERIC       Sat Feb 19 10:46:27 2011 +0000
@@ -1,7 +1,7 @@
-# $NetBSD: GENERIC,v 1.103 2010/11/23 11:14:02 hannken Exp $
+# $NetBSD: GENERIC,v 1.104 2011/02/19 10:46:27 kiyohara Exp $
 #
 # GENERIC machine description file
-# 
+#
 # This machine description file is used to generate the default NetBSD
 # kernel.  The generic kernel does not include all options, subsystems
 # and device drivers, but should be useful for most applications.
@@ -22,7 +22,7 @@
 
 options        INCLUDE_CONFIG_FILE     # embed config file in kernel binary
 
-#ident                 "GENERIC-$Revision: 1.103 $"
+#ident                 "GENERIC-$Revision: 1.104 $"
 
 maxusers       16              # estimated number of users
 
@@ -30,11 +30,15 @@
 options                SH3
 options        SH7708R         # 100MHz
 options        MMEYE
-options        MMEYE_NEW_INT
+options        MMEYE_NEW_INT=0xb000000e
 #options       MMEYE_NO_CACHE
 options        PCLOCK=33330000         # 33.33MHz
 options        INITTODR_ALWAYS_USE_RTC
 
+options        IOM_RAM_SIZE=0x01000000 # 16MB
+options        IOM_RAM_BEGIN=0x0c000000
+makeoptions    DEFTEXTADDR="0x8c010000"
+
 # Standard system options
 #options       INSECURE        # disable kernel security levels
 
@@ -148,11 +152,7 @@
 
 # These options enable verbose messages for several subsystems.
 # Warning, these may compile large string tables into the kernel!
-#options       PCIVERBOSE      # verbose PCI device autoconfig messages
-#options       PCI_CONFIG_DUMP # verbosely dump PCI config space
 options        PCMCIAVERBOSE   # verbose PCMCIA configuration messages
-options        SCSIVERBOSE     # human readable SCSI error messages
-#options       USBVERBOSE      # verbose USB device autoconfig messages
 
 # Kernel root file system and dump configuration.
 config         netbsd  root on ? type ?
@@ -167,12 +167,12 @@
 
 rtc*   at shb?
 
-com0   at mainbus?
-com1   at mainbus?
+com0   at mainbus? addr1 0xa4000000 irq1 11
+com1   at mainbus? addr1 0xa4000008 irq1 12
 
 # SH PCMCIA controllers
-mmeyepcmcia0   at mainbus?
-mmeyepcmcia1   at mainbus?
+mmeyepcmcia0 at mainbus? addr1 0xb000000a addr2 0xb8000000 irq1 3 irq2 10
+mmeyepcmcia1 at mainbus? addr1 0xb000000c addr2 0xb9000000 irq1 4 irq2 9
 
 # PCMCIA bus support
 pcmcia*        at mmeyepcmcia? controller ? socket ?
diff -r 2af97266bd17 -r c83255324dd8 sys/arch/mmeye/conf/MMEYE
--- a/sys/arch/mmeye/conf/MMEYE Sat Feb 19 09:59:12 2011 +0000
+++ b/sys/arch/mmeye/conf/MMEYE Sat Feb 19 10:46:27 2011 +0000
@@ -1,4 +1,4 @@
-#      $NetBSD: MMEYE,v 1.40 2010/11/23 11:14:02 hannken Exp $
+#      $NetBSD: MMEYE,v 1.41 2011/02/19 10:46:27 kiyohara Exp $
 #
 #      GENERIC -- everything that's currently supported
 #
@@ -13,11 +13,15 @@
 options                SH3
 options        SH7708R         # 100MHz
 options        MMEYE
-options        MMEYE_NEW_INT
+options        MMEYE_NEW_INT=0xb000000e
 #options       MMEYE_NO_CACHE
 options        PCLOCK=33330000         # 33.33MHz
 options        INITTODR_ALWAYS_USE_RTC
 
+options        IOM_RAM_SIZE=0x01000000 # 16MB
+options        IOM_RAM_BEGIN=0x0c000000
+makeoptions    DEFTEXTADDR="0x8c010000"
+
 # Standard system options
 #options       INSECURE        # disable kernel security levels
 
@@ -64,8 +68,6 @@
 options        INET            # IP + ICMP + TCP + UDP
 options        NFS_BOOT_DHCP   # Support DHCP NFS root
 
-#options       PCIVERBOSE      # verbose PCI device autoconfig messages
-#options       PCI_CONFIG_DUMP # verbosely dump PCI config space
 options        PCMCIAVERBOSE   # verbose PCMCIA configuration messages
 
 # Kernel root file system and dump configuration.
@@ -82,12 +84,12 @@
 
 rtc*   at shb?
 
-com0   at mainbus?
-com1   at mainbus?
+com0   at mainbus? addr1 0xa4000000 irq1 11
+com1   at mainbus? addr1 0xa4000008 irq1 12
 
 # SH PCMCIA controllers
-mmeyepcmcia0   at mainbus?
-mmeyepcmcia1   at mainbus?
+mmeyepcmcia0 at mainbus? addr1 0xb000000a addr2 0xb8000000 irq1 3 irq2 10
+mmeyepcmcia1 at mainbus? addr1 0xb000000c addr2 0xb9000000 irq1 4 irq2 9
 
 # PCMCIA bus support
 pcmcia*        at mmeyepcmcia? controller ? socket ?
diff -r 2af97266bd17 -r c83255324dd8 sys/arch/mmeye/conf/MMEYE_WLF
--- /dev/null   Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/mmeye/conf/MMEYE_WLF     Sat Feb 19 10:46:27 2011 +0000
@@ -0,0 +1,282 @@
+# $NetBSD: MMEYE_WLF,v 1.1 2011/02/19 10:46:27 kiyohara Exp $
+#
+# MMEYE_WLF -- Brains Inc. MMEYE-WLF platforms kernel
+#
+# This machine description file is used to generate the default NetBSD
+# kernel.  The generic kernel does not include all options, subsystems
+# and device drivers, but should be useful for most applications.
+#
+# The machine description file can be customised for your specific
+# machine to reduce the kernel size and improve its performance.
+#
+# For further information on compiling NetBSD kernels, see the config(8)
+# man page.
+#
+# For further information on hardware support for this architecture, see
+# the intro(4) man page.  For further information about kernel options
+# for this architecture, see the options(4) man page.  For an explanation
+# of each device driver in this file see the section 4 man page for the
+# device.
+
+include        "arch/mmeye/conf/std.mmeye"
+
+#options       INCLUDE_CONFIG_FILE     # embed config file in kernel binary
+
+#ident                 "GENERIC-$Revision: 1.1 $"
+
+maxusers       16              # estimated number of users
+
+# CPU support
+options                SH4
+options        SH7750R
+options        MMEYE
+options        MMEYE_NEW_INT=0xb2000000
+options        MMEYE_EPC_WDT
+options        PCLOCK=60000000         # 60.00MHz
+
+options        IOM_RAM_SIZE=0x04000000         # 64MB
+options        IOM_RAM_BEGIN=0x08000000        # Area2
+makeoptions    DEFTEXTADDR="0x88010000"
+
+# Standard system options
+#options       INSECURE        # disable kernel security levels
+
+options        HZ=50           # clock interrupt generates every 1/HZ sec
+options        NTP             # NTP phase/frequency locked loop
+options        KTRACE          # system call tracing via ktrace(1)
+
+options        SYSVMSG         # System V-like message queues
+options        SYSVSEM         # System V-like semaphores
+options        SYSVSHM         # System V-like memory sharing
+options        P1003_1B_SEMAPHORE # p1003.1b semaphore support
+
+options        MODULAR         # new style module(7) framework
+
+options        USERCONF        # userconf(4) support
+#options       PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+options        SYSCTL_INCLUDE_DESCR    # Include sysctl descriptions in kernel
+
+# Diagnostic/debugging support options
+#options       DIAGNOSTIC      # cheap kernel consistency checks
+#options       DEBUG           # expensive debugging checks/support
+#options       KMEMSTATS       # kernel memory statistics (vmstat -m)
+#options       DDB             # in-kernel debugger
+#options       SYSCALL_DEBUG
+#makeoptions   DEBUG="-g"      # compile full symbol table
+
+# Compatibility options
+options        COMPAT_14       # NetBSD 1.4,
+options        COMPAT_15       # NetBSD 1.5,
+options        COMPAT_16       # NetBSD 1.6,
+options        COMPAT_20       # NetBSD 2.0,
+options        COMPAT_30       # NetBSD 3.0,
+options        COMPAT_40       # NetBSD 4.0 compatibility.
+options        COMPAT_50       # NetBSD 5.0 compatibility.
+options        COMPAT_43       # and 4.3BSD
+#options       TCP_COMPAT_42   # 4.2BSD TCP/IP bug compat. Not recommended.
+options        BSDDISKLABEL_EI # endian independent disklabel support
+options        COMPAT_MMEYE_OLDLABEL   # old mmeye's disklabel support
+options        COMPAT_MMEYE_OLDLABEL_BROKEN    # Also checksum broken support
+options        COMPAT_BSDPTY   # /dev/[pt]ty?? ptys.
+
+# Executable format options
+options        EXEC_COFF       # COFF executables
+
+# File systems
+file-system    FFS             # UFS
+#file-system   EXT2FS          # second extended file system (linux)
+#file-system   LFS             # log-structured file system
+file-system    MFS             # memory file system
+file-system    NFS             # Network File System client
+#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
+file-system    NULLFS          # loopback file system
+file-system    OVERLAY         # overlay file system
+file-system    PUFFS           # Userspace file systems (e.g. ntfs-3g & sshfs)
+file-system    PROCFS          # /proc
+file-system    UMAPFS          # NULLFS + uid and gid remapping
+file-system    UNION           # union file system
+file-system    CODA            # Coda File System; also needs vcoda (below)
+file-system    PTYFS           # /dev/pts/N support
+file-system    TMPFS           # Efficient memory file-system
+#file-system   UDF             # experimental - OSTA UDF CD/DVD file-system
+
+# File system options
+#options       QUOTA           # UFS quotas
+#options       FFS_EI          # FFS Endian Independant support
+options        WAPBL           # File system journaling support - Experimental
+#options       UFS_DIRHASH     # UFS Large Directory Hashing - Experimental
+options        NFSSERVER       # Network File System server
+#options       FFS_NO_SNAPSHOT # No FFS snapshot support
+#options       EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+                               # immutable) behave as system flags.
+
+# Networking options
+#options       GATEWAY         # 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_NAT_T     # IPsec NAT traversal (NAT-T)
+#options       IPSEC_DEBUG     # debug for IP security
+#options       MROUTING        # IP multicast routing
+#options       PIM             # Protocol Independent Multicast
+#options       ISO,TPIP        # OSI
+#options       EON             # OSI tunneling over IP
+#options       NETATALK        # AppleTalk networking protocols
+#options       PPP_BSDCOMP     # BSD-Compress compression support for PPP
+#options       PPP_DEFLATE     # Deflate compression support for PPP
+#options       PPP_FILTER      # Active filter support for PPP (requires bpf)
+#options       PFIL_HOOKS      # pfil(9) packet filter hooks
+#options       IPFILTER_LOG    # ipmon(8) log support
+#options       IPFILTER_LOOKUP # ippool(8) support
+options        IPFILTER_COMPAT # Compat for IP-Filter
+#options       IPFILTER_DEFAULT_BLOCK  # block all packets by default
+#options       TCP_DEBUG       # Record last TCP_NDEBUG packets with SO_DEBUG
+
+#options       ALTQ            # Manipulate network interfaces' output queues
+#options       ALTQ_BLUE       # Stochastic Fair Blue
+#options       ALTQ_CBQ        # Class-Based Queueing
+#options       ALTQ_CDNR       # Diffserv Traffic Conditioner
+#options       ALTQ_FIFOQ      # First-In First-Out Queue
+#options       ALTQ_FLOWVALVE  # RED/flow-valve (red-penalty-box)
+#options       ALTQ_HFSC       # Hierarchical Fair Service Curve
+#options       ALTQ_LOCALQ     # Local queueing discipline
+#options       ALTQ_PRIQ       # Priority Queueing
+#options       ALTQ_RED        # Random Early Detection
+#options       ALTQ_RIO        # RED with IN/OUT
+#options       ALTQ_WFQ        # Weighted Fair Queueing
+
+options        NFS_BOOT_DHCP   # Support DHCP NFS root
+
+# These options enable verbose messages for several subsystems.
+# Warning, these may compile large string tables into the kernel!
+#options       PCMCIAVERBOSE   # verbose PCMCIA configuration messages
+
+# Kernel root file system and dump configuration.
+config         netbsd  root on ? type ?
+
+#
+# Device configuration
+#
+
+mainbus0 at root
+
+cpu*   at mainbus?
+shb*   at mainbus?
+options SCIFCONSOLE
+options SCIFCN_SPEED=19200
+scif0  at shb?
+sci0   at shb?
+
+rtciic0        at mainbus? addr1 0xb100000e
+iic* at rtciic?
+rs5c372rtc* at iic? addr 0x32



Home | Main Index | Thread Index | Old Index