Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/evbppc Add new evbppc port.
details: https://anonhg.NetBSD.org/src/rev/e77f898fcfa2
branches: trunk
changeset: 552318:e77f898fcfa2
user: shige <shige%NetBSD.org@localhost>
date: Tue Sep 23 14:45:12 2003 +0000
description:
Add new evbppc port.
This port is for OpenBlockS266.
OpenBlockS266: IBM405GPr OpenBIOS.
X1226 is a rtc chip connected with IIC bus.
diffstat:
sys/arch/evbppc/conf/Makefile.obs405.inc | 21 ++
sys/arch/evbppc/conf/OPENBLOCKS266 | 210 ++++++++++++++++++++++
sys/arch/evbppc/conf/files.obs405 | 47 ++++
sys/arch/evbppc/conf/std.obs405 | 28 ++
sys/arch/evbppc/obs405/consinit.c | 139 ++++++++++++++
sys/arch/evbppc/obs405/dev/x1226.c | 266 ++++++++++++++++++++++++++++
sys/arch/evbppc/obs405/dev/x1226reg.h | 78 ++++++++
sys/arch/evbppc/obs405/machdep.c | 293 +++++++++++++++++++++++++++++++
8 files changed, 1082 insertions(+), 0 deletions(-)
diffs (truncated from 1114 to 300 lines):
diff -r ecd598f96aaa -r e77f898fcfa2 sys/arch/evbppc/conf/Makefile.obs405.inc
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/Makefile.obs405.inc Tue Sep 23 14:45:12 2003 +0000
@@ -0,0 +1,21 @@
+# $NetBSD: Makefile.obs405.inc,v 1.1 2003/09/23 14:45:12 shige Exp $
+
+MKIMG?= ${THISPPC}/compile/walnut-mkimg.sh
+
+CFLAGS+=-mcpu=403
+AFLAGS+=-mcpu=403
+TEXTADDR?= 25000
+
+SYSTEM_FIRST_OBJ= locore.o
+SYSTEM_FIRST_SFILE= ${POWERPC}/${PPCDIR}/openbios/locore.S
+
+.ifdef DBSYM
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo "${DBSYM} $@ || true"; \
+ ${DBSYM} $@ || true
+.endif
+
+SYSTEM_LD_TAIL_EXTRA+=; \
+ echo ${MKIMG} netbsd netbsd.img ; \
+ OBJDUMP=${OBJDUMP}; OBJCOPY=${OBJCOPY}; export OBJDUMP OBJCOPY; \
+ ${MKIMG} $@ $@.img
diff -r ecd598f96aaa -r e77f898fcfa2 sys/arch/evbppc/conf/OPENBLOCKS266
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/OPENBLOCKS266 Tue Sep 23 14:45:12 2003 +0000
@@ -0,0 +1,210 @@
+# $NetBSD: OPENBLOCKS266,v 1.1 2003/09/23 14:45:13 shige Exp $
+#
+# GENERIC -- everything that's currently supported
+#
+
+include "arch/evbppc/conf/std.obs405"
+
+#options INCLUDE_CONFIG_FILE # embed config file in kernel binary
+
+#ident "OPENBLOCKS266"
+
+maxusers 32
+
+#options UVMHIST
+#options UVMHIST_PRINT
+
+# Options for necessary to use MD
+#options MEMORY_DISK_HOOKS
+#options MEMORY_DISK_IS_ROOT # force root on memory disk
+#options MEMORY_DISK_SERVER=0 # no userspace memory disk support
+#options MEMORY_DISK_ROOT_SIZE=16384 # size of memory disk, in blocks
+
+
+#options INSECURE # disable kernel security levels
+#options NTP # NTP phase/frequency locked loop
+#options KTRACE # system call tracing via ktrace(1)
+
+options SYSVMSG # System V message queues
+options SYSVSEM # System V semaphores
+options SYSVSHM # System V shared memory
+#options SHMMAXPGS=1024 # 1024 pages is the default
+
+#options LKM # loadable kernel modules
+
+#options USERCONF # userconf(4) support
+#options PIPE_SOCKETPAIR # smaller, but slower pipe(2)
+
+# Diagnostic/debugging support options
+#options DIAGNOSTIC # cheap kernel consistency checks
+options DEBUG # expensive debugging checks/support
+options DDB # in-kernel debugger
+options DDB_HISTORY_SIZE=512 # enable history editing in DDB
+options TRAP_PANICWAIT
+options SYMTAB_SPACE=300000 # size for embedded symbol table
+
+makeoptions DEBUG="-g" # compile full symbol table
+
+# Compatibility options
+#options COMPAT_09 # NetBSD 0.9,
+#options COMPAT_10 # NetBSD 1.0,
+#options COMPAT_11 # NetBSD 1.1,
+#options COMPAT_12 # NetBSD 1.2,
+options COMPAT_13 # NetBSD 1.3,
+options COMPAT_14 # NetBSD 1.4,
+options COMPAT_43 # and 4.3BSD
+#options COMPAT_386BSD_MBRPART # recognize old partition ID
+#options TCP_COMPAT_42 # 4.2BSD TCP/IP bug compat. Not recommended.
+
+# 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 PORTAL # portal filesystem (still experimental)
+file-system PROCFS # /proc
+file-system UMAPFS # NULLFS + uid and gid remapping
+file-system UNION # union file system
+
+# File system options
+options QUOTA # UFS quotas
+options FFS_EI # FFS Endian Independant support
+options SOFTDEP # FFS soft updates support.
+options NFSSERVER # Network File System server
+options EXT2FS_SYSTEM_FLAGS # makes ext2fs file flags (append and
+ # immutable) behave as system flags.
+
+options NFS_BOOT_DHCP # Support DHCP NFS root
+
+# 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_DEBUG # debug for IP security
+#options MROUTING # IP multicast routing
+#options DIRECTED_BROADCAST # allow broadcasts through routers
+#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 TCP_DEBUG # Record last TCP_NDEBUG packets with SO_DEBUG
+options NMBCLUSTERS=1024
+
+# 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 MIIVERBOSE # verbose PHY autoconfig messages
+#options PCI_CONFIG_DUMP # verbosely dump PCI config space
+options SCSIVERBOSE # human readable SCSI error messages
+options PCI_NETBSD_CONFIGURE # Do not rely on BIOS/whatever to configure PCI devices
+#options PCI_CONFIGURE_VERBOSE # Show PCI config information
+
+# wscons options
+#options WSEMUL_SUN # sun terminal emulation
+#options WSEMUL_VT100 # VT100 / VT220 emulation
+
+# Kernel root file system and dump configuration.
+config netbsd root on ? type ?
+
+#
+# Device configuration
+#
+
+plb0 at root # Processor Local Bus
+
+cpu0 at plb?
+
+ecc0 at plb? irq 16 # On-chip ECC controller
+
+opb* at plb? # On-chip Peripheral Bus
+
+wdog* at opb? # Watchdog timer
+
+com* at opb? addr ? irq ? # UARTs
+
+emac0 at opb? addr ? irq ? # Ethernet Media Access Controller
+options EMAC_EVENT_COUNTERS
+
+iic0 at opb? addr ? irq ? # IIC
+rtc0 at iic? addr ? # RTC
+todclock0 at rtc? # time-of-day device via rtc device
+
+pchb0 at plb? # PCI-Host bridges
+
+pci* at pchb?
+ppb* at pci? dev ? function ? # PCI-PCI bridges
+pciide* at pci? dev ? function ?
+
+tlp* at pci? dev ? function ? # DECchip 21x4x and clones
+
+lxtphy* at mii? phy ? # Level One LXT-970 PHYs
+ukphy* at mii? phy ? # generic unknown PHYs
+
+#cardslot* at cbb?
+#cardbus* at cardslot?
+#pcmcia* at cardslot?
+
+#com* at pcmcia? function ? # Modems and serial cards
+#wdc* at pcmcia? function ? # PCMCIA IDE controllers
+#ep* at pcmcia? function ? # 3Com 3c589 and 3c562 Ethernet
+#mbe* at pcmcia? function ? # MB8696x based Ethernet
+#ne* at pcmcia? function ? # NE2000-compatible Ethernet
+#ex* at cardbus? dev ? function ? # 3Com 3C575TX
+#tlp* at cardbus? dev ? function ? # DECchip 21143
+#rtk* at cardbus? dev ? function ? # Realtek 8129/8139
+
+wd* at pciide? channel ? drive ?
+
+atapibus* at pciide? channel ?
+
+cd* at atapibus? drive ? flags 0x0000 # ATAPI CD-ROM drives
+sd* at atapibus? drive ? flags 0x0000 # ATAPI disk drives
+uk* at atapibus? drive ? flags 0x0000 # ATAPI unknown
+
+#pckbc0 at pbus?
+#pckbd* at pckbc?
+#wskbd* at pckbd? console ?
+#pms* at pckbc?
+#wsmouse* at pms? mux 0
+
+#vga* at pci? dev ? function ?
+#wsdisplay* at vga? console ?
+
+pseudo-device vnd 4 # disk-like interface to files
+pseudo-device ccd 4 # concatenated/striped disk devices
+#pseudo-device cgd 4 # cryptographic disk devices
+#pseudo-device raid 4 # RAIDframe disk driver
+#options RAID_AUTOCONFIG # auto-configuration of RAID components
+pseudo-device md 1 # memory disk device
+pseudo-device loop # network loopback
+pseudo-device bpfilter 8 # packet filter
+pseudo-device ipfilter # IP filter (firewall) and NAT
+pseudo-device ppp 2 # Point-to-Point Protocol
+pseudo-device sl 2 # Serial Line IP
+pseudo-device tun 4 # network tunneling over tty
+#pseudo-device gre 2 # generic L3 over IP tunnel
+pseudo-device gif 4 # IPv[46] over IPv[46] tunnel (RFC1933)
+#pseudo-device faith 1 # IPv[46] tcp relay translation i/f
+#pseudo-device stf 1 # 6to4 IPv6 over IPv4 encapsulation
+pseudo-device vlan # IEEE 802.1q encapsulation
+pseudo-device pty # pseudo-terminals
+pseudo-device rnd # /dev/random and in-kernel generator
+#pseudo-device wsmux # ick
+pseudo-device clockctl # user control of clock subsystem
+pseudo-device kttcp # kernel ttcp
diff -r ecd598f96aaa -r e77f898fcfa2 sys/arch/evbppc/conf/files.obs405
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/files.obs405 Tue Sep 23 14:45:12 2003 +0000
@@ -0,0 +1,47 @@
+# $NetBSD: files.obs405,v 1.1 2003/09/23 14:45:13 shige Exp $
+#
+# obs405-specific configuration info
+
+file arch/powerpc/ibm4xx/ibm4xxGPx_autoconf.c
+file arch/powerpc/ibm4xx/ibm40x_machdep.c
+file arch/evbppc/obs405/consinit.c
+file arch/evbppc/obs405/machdep.c
+
+# Memory Disk for install kernel
+file dev/md_root.c memory_disk_hooks
+
+# Machine-independent SCSI drivers
+include "dev/scsipi/files.scsipi"
+
+# Machine-independent ATA drivers
+include "dev/ata/files.ata"
+
+# Workstation Console
+include "dev/wscons/files.wscons"
+
+# Raster operations
+include "dev/rasops/files.rasops"
+include "dev/wsfont/files.wsfont"
+
+define todservice {}
+
+device todclock
+attach todclock at todservice
+file arch/powerpc/ibm4xx/dev/todclock.c todclock needs-count
+#file arch/evbppc/obs405/dev/todclock.c todclock needs-count
+
+device rtc: todservice
+attach rtc at iic
+file arch/evbppc/obs405/dev/x1226.c rtc
+
+#
+# Machine-independent CardBus drivers
+#
+
+# XXX dev/pcmcia needs fdc
+device fdc {drive = -1}
+
+include "dev/cardbus/files.cardbus"
+include "dev/pcmcia/files.pcmcia"
+
+file arch/macppc/macppc/rbus_machdep.c cardbus
diff -r ecd598f96aaa -r e77f898fcfa2 sys/arch/evbppc/conf/std.obs405
--- /dev/null Thu Jan 01 00:00:00 1970 +0000
+++ b/sys/arch/evbppc/conf/std.obs405 Tue Sep 23 14:45:12 2003 +0000
@@ -0,0 +1,28 @@
+# $NetBSD: std.obs405,v 1.1 2003/09/23 14:45:13 shige Exp $
+#
+# Standard/required options for NetBSD/obs405.
+
+machine evbppc powerpc
+
Home |
Main Index |
Thread Index |
Old Index