Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/news68k Add news1200 support.
details: https://anonhg.NetBSD.org/src/rev/0e9f4491c849
branches: trunk
changeset: 481882:0e9f4491c849
user: tsutsui <tsutsui%NetBSD.org@localhost>
date: Tue Feb 08 16:17:28 2000 +0000
description:
Add news1200 support.
Based on a patch from Koichi NISHIWAKI <k-nis%ba2.so-net.ne.jp@localhost>
diffstat:
sys/arch/news68k/conf/GENERIC | 25 +-
sys/arch/news68k/conf/INSTALL | 26 +-
sys/arch/news68k/conf/LIBERO | 11 +-
sys/arch/news68k/conf/NEWS1200 | 151 +++++++++++
sys/arch/news68k/conf/files.news68k | 7 +-
sys/arch/news68k/conf/ioconf.incl.news68k | 8 +
sys/arch/news68k/dev/clock_hb.c | 11 +-
sys/arch/news68k/dev/hb.c | 10 +-
sys/arch/news68k/dev/hbvar.h | 28 +--
sys/arch/news68k/dev/if_le.c | 48 +--
sys/arch/news68k/dev/si.c | 32 +-
sys/arch/news68k/dev/zs.c | 52 ++-
sys/arch/news68k/include/autoconf.h | 29 +-
sys/arch/news68k/include/cpu.h | 159 ++++++-----
sys/arch/news68k/news68k/genassym.cf | 10 +-
sys/arch/news68k/news68k/locore.s | 97 +++++-
sys/arch/news68k/news68k/machdep.c | 405 ++++++++++++++++-------------
sys/arch/news68k/news68k/machid.h | 65 +----
sys/arch/news68k/news68k/mainbus.c | 74 ++---
sys/arch/news68k/stand/boot/boot.c | 5 +-
sys/arch/news68k/stand/boot/locore.S | 3 +-
21 files changed, 709 insertions(+), 547 deletions(-)
diffs (truncated from 2084 to 300 lines):
diff -r 897c27acee57 -r 0e9f4491c849 sys/arch/news68k/conf/GENERIC
--- a/sys/arch/news68k/conf/GENERIC Tue Feb 08 16:13:26 2000 +0000
+++ b/sys/arch/news68k/conf/GENERIC Tue Feb 08 16:17:28 2000 +0000
@@ -1,14 +1,15 @@
-# $NetBSD: GENERIC,v 1.3 2000/01/23 23:46:15 hubertf Exp $
+# $NetBSD: GENERIC,v 1.4 2000/02/08 16:17:28 tsutsui Exp $
# news68k GENERIC config file;
#
include "arch/news68k/conf/std.news68k"
-#ident "GENERIC-$Revision: 1.3 $"
+#ident "GENERIC-$Revision: 1.4 $"
maxusers 8
-options news1700 # only news1[4567]00 is supported
+options news1200 # news1200 support
+options news1700 # news1[4567]00 support
options CPU_SINGLE # Will IOP be supported eventually?
#options FPU_EMULATE
@@ -115,20 +116,26 @@
mainbus0 at root
# NEWS HYPER-BUS
-hb0 at mainbus0
+hb0 at mainbus0 systype NEWS1700
+hb1 at mainbus0 systype NEWS1200
# MK48T02 realtime clock
-clock0 at hb0 addr 0xe0d807f8 ipl 6
+clock0 at hb0 addr 0xe0d807f8 ipl 6 # news1700
+clock0 at hb1 addr 0xe14207f8 ipl 6 # news1200
# onboard LANCE ethernet
-le0 at hb0 addr 0xe0f00000 ipl 4
+le0 at hb0 addr 0xe0f00000 ipl 4 # news1700
+le0 at hb1 addr 0xe1a40000 ipl 4 # news1200
# keyboard/mouse; not yet
-#kb0 at hb0 addr 0xe0d00000 ipl 5
-#ms0 at hb0 addr 0xe0d00000 ipl 5
+#kb0 at hb0 addr 0xe0d00000 ipl 5 # news1700
+#ms0 at hb0 addr 0xe0d00005 ipl 5 # news1700
+#kb0 at hb1 addr 0xe1240000 ipl 5 # news1200
+#ms0 at hb1 addr 0xe1280000 ipl 5 # news1200
# onboard z8530 SCC
-zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64
+zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64 flags 0x0 # news1700
+zsc0 at hb1 addr 0xe1780000 ipl 5 vect 64 flags 0x1 # news1200
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
diff -r 897c27acee57 -r 0e9f4491c849 sys/arch/news68k/conf/INSTALL
--- a/sys/arch/news68k/conf/INSTALL Tue Feb 08 16:13:26 2000 +0000
+++ b/sys/arch/news68k/conf/INSTALL Tue Feb 08 16:17:28 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: INSTALL,v 1.2 2000/01/21 13:38:47 tsutsui Exp $
+# $NetBSD: INSTALL,v 1.3 2000/02/08 16:17:29 tsutsui Exp $
# config for bootable floppy kernel
#
@@ -6,7 +6,8 @@
maxusers 8
-options news1700 # only news1700 is supported
+options news1200 # news1200 support
+options news1700 # news1[4567]00 support
options CPU_SINGLE # Will IOP be supported eventually?
#options FPU_EMULATE
@@ -22,7 +23,7 @@
#options SYSVMSG # System V message queues
#options SYSVSEM # System V semaphores
#options SYSVSHM # System V shared memory
-#optoins SHMMAXPGS=1024 # 1024 pages is the default
+#options SHMMAXPGS=1024 # 1024 pages is the default
#options LKM # loadable kernel modules
#options NKMEMCLUSTERS=1024 # 4K pages in kernel malloc pool
#options UCONSOLE # users can redirect console (unsafe)
@@ -33,7 +34,6 @@
#options DEBUG # extra kernel debugging support
#options DIAGNOSTIC # extra kernel sanity checking
#options SCSIVERBOSE # Verbose SCSI errors
-#options SCSIDEBUG
# Compatibility options
options COMPAT_43 # compatibility with 4.3BSD binaries
@@ -73,20 +73,26 @@
mainbus0 at root
# NEWS HYPER-BUS
-hb0 at mainbus0
+hb0 at mainbus0 systype NEWS1700
+hb1 at mainbus0 systype NEWS1200
# MK48T02 realtime clock
-clock0 at hb0 addr 0xe0d807f8 ipl 6
+clock0 at hb0 addr 0xe0d807f8 ipl 6 # news1700
+clock0 at hb1 addr 0xe14207f8 ipl 6 # news1200
# onboard LANCE ethernet
-le0 at hb0 addr 0xe0f00000 ipl 4
+le0 at hb0 addr 0xe0f00000 ipl 4 # news1700
+le0 at hb1 addr 0xe1a40000 ipl 4 # news1200
# keyboard/mouse; not yet
-#kb0 at hb0 addr 0xe0d00000 ipl 5
-#ms0 at hb0 addr 0xe0d00000 ipl 5
+#kb0 at hb0 addr 0xe0d00000 ipl 5 # news1700
+#ms0 at hb0 addr 0xe0d00005 ipl 5 # news1700
+#kb0 at hb1 addr 0xe1240000 ipl 5 # news1200
+#ms0 at hb1 addr 0xe1280000 ipl 5 # news1200
# onboard z8530 SCC
-zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64
+zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64 flags 0x0 # news1700
+zsc0 at hb1 addr 0xe1780000 ipl 5 vect 64 flags 0x1 # news1200
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
diff -r 897c27acee57 -r 0e9f4491c849 sys/arch/news68k/conf/LIBERO
--- a/sys/arch/news68k/conf/LIBERO Tue Feb 08 16:13:26 2000 +0000
+++ b/sys/arch/news68k/conf/LIBERO Tue Feb 08 16:17:28 2000 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: LIBERO,v 1.1 1999/12/09 14:53:02 tsutsui Exp $
+# $NetBSD: LIBERO,v 1.2 2000/02/08 16:17:29 tsutsui Exp $
# NEWS1750 config file;
#
@@ -8,11 +8,12 @@
maxusers 8
-options news1700 # only news1700 is supported
+options news1700 # news1[4567]00 support
options CPU_SINGLE # Will IOP be supported eventually?
#options FPU_EMULATE
# Standard system options
+options NTP # NTP phase/frequency locked loop
options KTRACE # system call tracing support
options SYSVMSG # System V message queues
options SYSVSEM # System V semaphores
@@ -87,7 +88,7 @@
mainbus0 at root
# NEWS HYPER-BUS
-hb0 at mainbus0 # hyper-bus
+hb0 at mainbus0 systype NEWS1700
# MK48T02 realtime clock
clock0 at hb0 addr 0xe0d807f8 ipl 6
@@ -97,10 +98,10 @@
# keyboard/mouse; not yet
#kb0 at hb0 addr 0xe0d00000 ipl 5
-#ms0 at hb0 addr 0xe0d00000 ipl 5
+#ms0 at hb0 addr 0xe0d00005 ipl 5
# onboard z8530 SCC
-zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64
+zsc0 at hb0 addr 0xe0d40000 ipl 5 vect 64 flags 0x0
zstty0 at zsc0 channel 0
zstty1 at zsc0 channel 1
diff -r 897c27acee57 -r 0e9f4491c849 sys/arch/news68k/conf/NEWS1200
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/news68k/conf/NEWS1200 Tue Feb 08 16:17:28 2000 +0000
@@ -0,0 +1,151 @@
+# $NetBSD: NEWS1200,v 1.1 2000/02/08 16:17:29 tsutsui Exp $
+
+# news1200 config file
+#
+include "arch/news68k/conf/std.news68k"
+
+maxusers 8
+
+options news1200 # news1200 support
+options CPU_SINGLE # Will IOP be supported eventually?
+#options FPU_EMULATE
+
+# Standard system options
+#options NTP # NTP phase/frequency locked loop
+options KTRACE # system call tracing support
+options SYSVMSG # System V message queues
+options SYSVSEM # System V semaphores
+options SYSVSHM # System V shared memory
+#optoins SHMMAXPGS=1024 # 1024 pages is the default
+options LKM # loadable kernel modules
+#options NKMEMCLUSTERS=1024 # 4K pages in kernel malloc pool
+#options UCONSOLE # users can redirect console (unsafe)
+
+# Debugging options
+options DIAGNOSTIC # extra kernel sanity checking
+#options DEBUG # extra kernel debugging support
+#options KMEMSTATS # kernel memory statistics (vmstat -m)
+options DDB # kernel dynamic debugger
+#options DDB_HISTORY_SIZE=100 # enable history editing in DDB
+#options DDB_ONPANIC=1 # see also sysctl(8): `ddb.onpanic'
+#options SCSIVERBOSE # Verbose SCSI errors
+#options SCSIDEBUG # extra SCSI debugging support
+#makeoptions DEBUG="-g" # compile full symbol table
+
+# Compatibility options
+options COMPAT_43 # compatibility with 4.3BSD binaries
+options COMPAT_12 # NetBSD 1.2 binary compatibility
+options COMPAT_13 # NetBSD 1.3 binary compatibility
+options COMPAT_14 # NetBSD 1.4 binary compatibility
+
+#options COMPAT_SVR4 # binary compatibility with SVR4
+#options COMPAT_SUNOS # binary compatibility with SunOS
+#options COMPAT_LINUX # binary compatibllity with Linux/m68k
+#options EXEC_ELF32 # 32bit ELF executables (Linux, SVR4)
+
+#options TCP_COMPAT_42 # compatibility with 4.2BSD TCP/IP
+
+# Filesystem options
+file-system FFS # Berkeley Fast Filesystem
+#file-system LFS # log-structured file system
+file-system NFS # Sun NFS-compatible filesystem client
+file-system MFS # memory-based filesystem
+file-system CD9660 # ISO 9660 + Rock Ridge file system
+#file-system MSDOSFS # MS-DOS FAT file system
+file-system KERNFS # /kern
+file-system PROCFS # /proc
+file-system FDESC # /dev/fd/*
+file-system NULLFS # loopback file system
+#file-system OVERLAY # overlay file system
+#file-system PORTAL # portal filesystem (still experimental)
+#file-system UMAPFS # NULLFS + uid and gid remapping
+#file-system UNION # union file system
+#file-system CODA # Coda File System; also needs vcode (below)
+
+#options NFSSERVER # nfs server support
+#options QUOTA # ffs quotas
+#options FFS_EI # ffs endian independant support
+#options SOFTDEP # ffs soft updates support
+
+# Pull in config fragments for kernel crypto. This is required for
+# options IPSEC etc. to work. If you want to run with IPSEC, uncomment
+# one of these, based on whether you use crypto-us or crypto-intl, and
+# adjust the prefixes as necessary.
+
+#prefix ../crypto-us/sys
+#cinclude "conf/files.crypto-us"
+#prefix
+
+#prefix ../crypto-intl/sys
+#cinclude "conf/files.crypto-intl"
+#prefix
+
+# Networking options
+options INET # Internet protocols
+options INET6 # IPV6
+#options IPSEC # IP security
+#options IPSEC_ESP # IP securyty (encryption part; define w/IPSEC)
+#options IPSEC_DEBUG # debug for IP security
+#options GATEWAY # IP packet forwarding
+#options MROUTING # IP multicast routing
+#options NS # XNS
+#options NSIP # XNS tunneling over IP
+#options ISO,TPIP # OSI
+#options EON # OSI tunneling over IP
+#options CCITT,LLC,HDLC # X.25
+#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 NFS_BOOT_BOOTPARAM
+options NFS_BOOT_DHCP
+
+config netbsd root on ? type ?
+#config netbsd root on ? type nfs
+
+#
+# device declarations
+#
+
+mainbus0 at root
+
+# NEWS HYPER-BUS
+hb0 at mainbus0 systype NEWS1200
+
+# MK48T02 realtime clock
+clock0 at hb0 addr 0xe14207f8 ipl 6
+
+# onboard LANCE ethernet
+le0 at hb0 addr 0xe1a40000 ipl 4
+
+# keyboard/mouse; not yet
+#kb0 at hb0 addr 0xe1240000 ipl 5
+#ms0 at hb0 addr 0xe1280000 ipl 5
+
Home |
Main Index |
Thread Index |
Old Index