Begin to flesh out the DNARD (aka Shark) port.
This commit is contained in:
parent
0da665182e
commit
ff7aabff92
|
@ -0,0 +1,7 @@
|
|||
# $NetBSD: Makefile,v 1.1 2001/02/26 02:49:24 matt Exp $
|
||||
|
||||
# Makefile for dnard tags file and boot blocks
|
||||
|
||||
SUBDIR= include
|
||||
|
||||
.include <bsd.subdir.mk>
|
|
@ -0,0 +1,3 @@
|
|||
$NetBSD: .keep_me,v 1.1 2001/02/26 02:49:25 matt Exp $
|
||||
|
||||
This file must remain so that 'cvs checkout' makes the compile directory.
|
|
@ -0,0 +1,218 @@
|
|||
# $NetBSD: GENERIC,v 1.1 2001/02/26 02:49:25 matt Exp $
|
||||
|
||||
include "arch/dnard/conf/std.dnard"
|
||||
|
||||
#ident "GENERIC-$Revision: 1.1 $"
|
||||
|
||||
# estimated number of users
|
||||
maxusers 32
|
||||
|
||||
# Standard system options
|
||||
|
||||
options RTC_OFFSET=0 # hardware clock is this many mins. west of GMT
|
||||
options HZ=64
|
||||
#options NTP # NTP phase/frequency locked loop
|
||||
options NMBCLUSTERS=1024 # XXX, temporarily required
|
||||
#options BOOT_QUIETLY # twiddle instead of normal boot msg output
|
||||
|
||||
# CPU options
|
||||
|
||||
options CPU_SA110 # Support the SA110 core
|
||||
|
||||
# Architecture options
|
||||
|
||||
options OFW # Enable common Open Firmware bits
|
||||
options SHARK # We are a Shark
|
||||
options NSIO # We are using the National Semi SuperIO
|
||||
makeoptions COPTS="-O2 -march=armv4 -mtune=strongarm"
|
||||
|
||||
# compatibility with old version of OFW, which may have incorrect
|
||||
# properties and/or may set up devices incorrectly.
|
||||
options COMPAT_OLD_OFW
|
||||
|
||||
# FPA options
|
||||
|
||||
#options ARMFPE # ARM Ltd FPE
|
||||
|
||||
# File systems
|
||||
|
||||
file-system FFS # UFS
|
||||
#file-system LFS # log-structured file system
|
||||
file-system MFS # memory file system
|
||||
file-system NFS # Network file system
|
||||
#file-system ADOSFS # AmigaDOS-compatible file system
|
||||
#file-system EXT2FS # second extended file system (linux)
|
||||
#file-system CD9660 # ISO 9660 + Rock Ridge file system
|
||||
file-system MSDOSFS # MS-DOS file system
|
||||
#file-system FDESC # /dev/fd
|
||||
#file-system FILECORE # Acorn filecore file system
|
||||
file-system KERNFS # /kern
|
||||
#file-system NULLFS # loopback file system
|
||||
#file-system OVERLAY # overlay filesystem
|
||||
#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
|
||||
|
||||
# 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 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
|
||||
#options PFIL_HOOKS # pfil(9) packet filter hooks (Required
|
||||
# if you enable the pseudo-device ipl).
|
||||
|
||||
#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 NFS_BOOT_DHCP # use NetBSD standard DHCP/NFS boot code
|
||||
|
||||
# Compatibility options
|
||||
|
||||
options COMPAT_43 # 4.3BSD compatibility.
|
||||
options COMPAT_14 # NetBSD 1.4 compatibility.
|
||||
options COMPAT_13 # NetBSD 1.3 compatibility.
|
||||
options COMPAT_12 # NetBSD 1.2 compatibility.
|
||||
#options COMPAT_11 # NetBSD 1.1 compatibility.
|
||||
#options COMPAT_10 # NetBSD 1.0 compatibility.
|
||||
#options COMPAT_09 # NetBSD 0.9 compatibility.
|
||||
#options TCP_COMPAT_42 # TCP bug compatibility with 4.2BSD
|
||||
|
||||
# Shared memory options
|
||||
|
||||
options SYSVMSG # System V-like message queues
|
||||
options SYSVSEM # System V-like semaphores
|
||||
options SYSVSHM # System V-like memory sharing
|
||||
#options SHMMAXPGS=1024 # 1024 pages is the default
|
||||
|
||||
# Device options
|
||||
|
||||
options MEMORY_DISK_HOOKS # boottime setup of ramdisk
|
||||
#options MEMORY_DISK_SIZE=0 # Size in blocks
|
||||
#options MINIROOTSIZE=3400 # Size in blocks
|
||||
#options MEMORY_DISK_IS_ROOT # use memory disk as root
|
||||
|
||||
options XSERVER # also need INSECURE for now
|
||||
options INSECURE # disable kernel securelevel
|
||||
|
||||
# Use the following to force the serial to always be the console
|
||||
# device. 19200 is what the serial gets set up as by the firmware
|
||||
# when it hasn't fallen back from PC. If it has fallen back then
|
||||
# the speed will be set at 9600.
|
||||
#options COMCONSOLE,CONADDR=0x3f8,CONUNIT=0,CONSPEED=19200
|
||||
|
||||
# Miscellaneous kernel options
|
||||
options KTRACE # system call tracing, a la ktrace(1)
|
||||
options IRQSTATS # manage IRQ statistics, XXX temp required
|
||||
#options LKM # loadable kernel modules
|
||||
options KMEMSTATS # kernel memory statistics, XXX temp required
|
||||
|
||||
# Development and Debugging options
|
||||
|
||||
options DIAGNOSTIC # internal consistency checks
|
||||
#options PMAP_DEBUG # Enable pmap_debug_level code
|
||||
#options IPKDB # remote kernel debugging
|
||||
options DDB # in-kernel debugger
|
||||
#options DDB_ONPANIC=0 # don't run DDB at panictime
|
||||
#options DDB_HISTORY_SIZE=100 # Enable history editing in DDB
|
||||
#options KERNEL_DEBUG # compile in kernel debuging capability
|
||||
makeoptions DEBUG="-g" # compile full symbol table
|
||||
|
||||
config netbsd root on ? type ?
|
||||
|
||||
# The main bus device
|
||||
mainbus0 at root
|
||||
|
||||
# The boot cpu
|
||||
cpu0 at mainbus?
|
||||
|
||||
# Open Firmware devices
|
||||
ofbus* at root
|
||||
ofbus* at ofbus?
|
||||
#ofdisk* at ofbus?
|
||||
#ofnet* at ofbus? # don't use with cs0
|
||||
#ofcons* at ofbus? # don't use with pc0
|
||||
ofrtc* at ofisa?
|
||||
ofrom* at ofbus?
|
||||
|
||||
ofisa* at ofbus?
|
||||
ofbus* at ofisa?
|
||||
|
||||
# IDE/ATA disk
|
||||
wdc* at ofisa?
|
||||
wd* at wdc? drive ?
|
||||
|
||||
atapibus* at wdc?
|
||||
cd* at atapibus? drive?
|
||||
sd* at atapibus? drive?
|
||||
|
||||
# WSCONS @ OFW
|
||||
ofb* at ofbus?
|
||||
wsdisplay* at ofb?
|
||||
|
||||
pckbc* at ofisa?
|
||||
pckbd* at pckbc?
|
||||
wskbd* at pckbd? console ?
|
||||
pms* at pckbc?
|
||||
wsmouse* at pms? mux 0
|
||||
pmsi* at pckbc?
|
||||
wsmouse* at pmsi? mux 0
|
||||
|
||||
# CS8900 Ethernet@OFW
|
||||
cs* at ofisa?
|
||||
|
||||
# Serial @OFW
|
||||
com* at ofisa?
|
||||
|
||||
# Parallel @OFW
|
||||
lpt* at ofisa?
|
||||
|
||||
# Smart Card
|
||||
ofisascr* at ofisa?
|
||||
scr* at ofisascr?
|
||||
|
||||
# ESS Sound@OFW
|
||||
ess* at ofisa?
|
||||
audio* at ess?
|
||||
opl* at ess?
|
||||
midi* at opl?
|
||||
|
||||
# Joystick @OFW
|
||||
joy* at ofisa?
|
||||
|
||||
pseudo-device loop 1 # network loopback
|
||||
pseudo-device bpfilter 8 # packet filter
|
||||
#pseudo-device sl 2 # CSLIP
|
||||
#pseudo-device ppp 2 # PPP
|
||||
#pseudo-device tun 2 # network tunneling over tty
|
||||
#pseudo-device ipfilter 1 # ip filter
|
||||
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 strip 4 # STarmode Radio IP (Metricon Ricochet)
|
||||
pseudo-device pty # pseudo-terminals
|
||||
#pseudo-device tb 1 # tablet line discipline
|
||||
pseudo-device vnd 4 # disk-like interface to files
|
||||
#pseudo-device ccd 2 # concatenated disk devices
|
||||
pseudo-device rnd # /dev/random and /dev/urandom
|
||||
|
||||
#pseudo-device md 1 # Ramdisk driver
|
||||
#pseudo-device profiler 1 # fiq based profiling device
|
||||
pseudo-device sequencer 1 # MIDI sequencer
|
||||
pseudo-device openfirm # /dev/openfirm
|
|
@ -0,0 +1,231 @@
|
|||
# $NetBSD: Makefile.dnard,v 1.1 2001/02/26 02:49:25 matt Exp $
|
||||
|
||||
# Makefile for NetBSD
|
||||
#
|
||||
# This makefile is constructed from a machine description:
|
||||
# config machineid
|
||||
# Most changes should be made in the machine description
|
||||
# /sys/arch/arm32/conf/``machineid''
|
||||
# after which you should do
|
||||
# config machineid
|
||||
# Machine generic makefile changes should be made in
|
||||
# /sys/arch/arm32/conf/Makefile.arm32
|
||||
# after which config should be rerun for all machines of that type.
|
||||
|
||||
# DEBUG is set to -g if debugging.
|
||||
# PROF is set to -pg if profiling.
|
||||
|
||||
AR?= ar
|
||||
AS?= as
|
||||
CC?= cc
|
||||
CPP?= cpp
|
||||
LD?= ld
|
||||
LORDER?=lorder
|
||||
MKDEP?= mkdep
|
||||
NM?= nm
|
||||
RANLIB?=ranlib
|
||||
SIZE?= size
|
||||
STRIP?= strip
|
||||
TSORT?= tsort -q
|
||||
|
||||
COPTS?= -O2
|
||||
|
||||
# source tree is located via $S relative to the compilation directory
|
||||
.ifndef S
|
||||
S!= cd ../../../..; pwd
|
||||
.endif
|
||||
ARM32= $S/arch/arm32
|
||||
|
||||
HAVE_EGCS!= ${CC} --version | egrep "^(2\.[89]|egcs)" ; echo
|
||||
INCLUDES= -I. -I$S/arch -I$S -nostdinc
|
||||
CPPFLAGS= ${INCLUDES} ${IDENT} ${PARAM} -D_KERNEL -Darm32
|
||||
CWARNFLAGS?= -Werror -Wall -Wcomment -Wpointer-arith
|
||||
# XXX Delete -Wuninitialized for now, since the compiler doesn't
|
||||
# XXX always get it right. --thorpej
|
||||
CWARNFLAGS+= -Wno-uninitialized
|
||||
.if (${HAVE_EGCS} != "")
|
||||
CWARNFLAGS+= -Wno-main
|
||||
.endif
|
||||
CFLAGS= ${DEBUG} ${COPTS} ${CWARNFLAGS}
|
||||
AFLAGS= -x assembler-with-cpp -D_LOCORE
|
||||
|
||||
LOADADDRESS= 0xF0000000
|
||||
LINKFLAGS= -Ttext ${LOADADDRESS} -e start
|
||||
STRIPFLAGS= -g
|
||||
|
||||
%INCLUDES
|
||||
|
||||
HOSTED_CC= ${CC}
|
||||
HOSTED_CPPFLAGS=${CPPFLAGS:S/^-nostdinc$//}
|
||||
HOSTED_CFLAGS= ${CFLAGS}
|
||||
|
||||
### find out what to use for libkern
|
||||
KERN_AS= obj
|
||||
.include "$S/lib/libkern/Makefile.inc"
|
||||
.ifndef PROF
|
||||
LIBKERN= ${KERNLIB}
|
||||
.else
|
||||
LIBKERN= ${KERNLIB_PROF}
|
||||
.endif
|
||||
|
||||
### find out what to use for libcompat
|
||||
.include "$S/compat/common/Makefile.inc"
|
||||
.ifndef PROF
|
||||
LIBCOMPAT= ${COMPATLIB}
|
||||
.else
|
||||
LIBCOMPAT= ${COMPATLIB_PROF}
|
||||
.endif
|
||||
|
||||
# compile rules: rules are named ${TYPE}_${SUFFIX} where TYPE is NORMAL or
|
||||
# HOSTED}, and SUFFIX is the file suffix, capitalized (e.g. C for a .c file).
|
||||
|
||||
NORMAL_C= ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c $<
|
||||
NOPROF_C= ${CC} ${CFLAGS} ${CPPFLAGS} -c $<
|
||||
NORMAL_S= ${CC} ${AFLAGS} ${CPPFLAGS} -c $<
|
||||
|
||||
HOSTED_C= ${HOSTED_CC} ${HOSTED_CFLAGS} ${HOSTED_CPPFLAGS} -c $<
|
||||
|
||||
%OBJS
|
||||
|
||||
%CFILES
|
||||
|
||||
%SFILES
|
||||
|
||||
# load lines for config "xxx" will be emitted as:
|
||||
# xxx: ${SYSTEM_DEP} swapxxx.o
|
||||
# ${SYSTEM_LD_HEAD}
|
||||
# ${SYSTEM_LD} swapxxx.o
|
||||
# ${SYSTEM_LD_TAIL}
|
||||
.ifdef MONITOR
|
||||
SYSTEM_OBJ= locore.o modedefs.o \
|
||||
param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
|
||||
.else
|
||||
SYSTEM_OBJ= locore.o \
|
||||
param.o ioconf.o ${OBJS} ${LIBCOMPAT} ${LIBKERN}
|
||||
.endif
|
||||
SYSTEM_DEP= Makefile ${SYSTEM_OBJ}
|
||||
SYSTEM_LD_HEAD= rm -f $@
|
||||
SYSTEM_LD= @echo ${LD} ${LINKFLAGS} -o $@ '$${SYSTEM_OBJ}' vers.o; \
|
||||
${LD} ${LINKFLAGS} -o $@ ${SYSTEM_OBJ} vers.o
|
||||
SYSTEM_LD_TAIL= @${SIZE} $@; chmod 755 $@
|
||||
|
||||
DEBUG?=
|
||||
.if ${DEBUG} == "-g"
|
||||
LINKFLAGS+= -X
|
||||
SYSTEM_LD_TAIL+=; \
|
||||
echo mv -f $@ $@.gdb; mv -f $@ $@.gdb; \
|
||||
echo ${STRIP} ${STRIPFLAGS} -o $@ $@.gdb; \
|
||||
${STRIP} ${STRIPFLAGS} -o $@ $@.gdb
|
||||
.else
|
||||
#LINKFLAGS+= -S
|
||||
LINKFLAGS+= -x
|
||||
.endif
|
||||
|
||||
%LOAD
|
||||
|
||||
assym.h: $S/kern/genassym.sh ${ARM32}/arm32/genassym.cf
|
||||
sh $S/kern/genassym.sh ${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} \
|
||||
< ${ARM32}/arm32/genassym.cf > assym.h.tmp && \
|
||||
mv -f assym.h.tmp assym.h
|
||||
|
||||
param.c: $S/conf/param.c
|
||||
rm -f param.c
|
||||
cp $S/conf/param.c .
|
||||
|
||||
param.o: param.c Makefile
|
||||
${NORMAL_C}
|
||||
|
||||
ioconf.o: ioconf.c
|
||||
${NORMAL_C}
|
||||
|
||||
newvers: ${SYSTEM_DEP} ${SYSTEM_SWAP_DEP}
|
||||
sh $S/conf/newvers.sh
|
||||
${CC} ${CFLAGS} ${CPPFLAGS} ${PROF} -c vers.c
|
||||
|
||||
__CLEANKERNEL: .USE
|
||||
@echo "${.TARGET}ing the kernel objects"
|
||||
rm -f eddep *netbsd netbsd.gdb tags *.[io] [a-z]*.s \
|
||||
[Ee]rrs linterrs makelinks assym.h.tmp assym.h modedefs.c
|
||||
|
||||
__CLEANDEPEND: .USE
|
||||
rm -f .depend
|
||||
|
||||
clean: __CLEANKERNEL
|
||||
|
||||
cleandir distclean: __CLEANKERNEL __CLEANDEPEND
|
||||
|
||||
lint:
|
||||
@lint -hbxncez -Dvolatile= ${CPPFLAGS} -UKGDB \
|
||||
${ARM32}/arm32/Locore.c ${CFILES} \
|
||||
ioconf.c param.c | \
|
||||
grep -v 'static function .* unused'
|
||||
|
||||
tags:
|
||||
@echo "see $S/kern/Makefile for tags"
|
||||
|
||||
links:
|
||||
egrep '#if' ${CFILES} | sed -f $S/conf/defines | \
|
||||
sed -e 's/:.*//' -e 's/\.c/.o/' | sort -u > dontlink
|
||||
echo ${CFILES} | tr -s ' ' '\12' | sed 's/\.c/.o/' | \
|
||||
sort -u | comm -23 - dontlink | \
|
||||
sed 's,../.*/\(.*.o\),rm -f \1; ln -s ../GENERIC/\1 \1,' > makelinks
|
||||
sh makelinks && rm -f dontlink
|
||||
|
||||
SRCS= ${ARM32}/arm32/locore.S param.c ioconf.c ${CFILES} ${SFILES}
|
||||
.ifdef MONITOR
|
||||
SRCS+= modedefs.c
|
||||
.endif
|
||||
depend: .depend
|
||||
.depend: ${SRCS} assym.h param.c
|
||||
${MKDEP} ${AFLAGS} ${CPPFLAGS} ${ARM32}/arm32/locore.S
|
||||
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} param.c ioconf.c ${CFILES}
|
||||
test -z "${SFILES}" || ${MKDEP} -a ${AFLAGS} ${CPPFLAGS} ${SFILES}
|
||||
sh $S/kern/genassym.sh ${MKDEP} -f assym.dep ${CFLAGS} \
|
||||
${CPPFLAGS} < ${ARM32}/arm32/genassym.cf
|
||||
@sed -e 's/.*\.o:.*\.c/assym.h:/' < assym.dep >> .depend
|
||||
@rm -f assym.dep
|
||||
.ifdef MONITOR
|
||||
${MKDEP} -a ${CFLAGS} ${CPPFLAGS} modedefs.c
|
||||
.endif
|
||||
|
||||
dependall: depend all
|
||||
|
||||
|
||||
# depend on root or device configuration
|
||||
autoconf.o conf.o: Makefile
|
||||
|
||||
# depend on network
|
||||
uipc_proto.o: Makefile
|
||||
|
||||
# depend on maxusers
|
||||
assym.h: Makefile
|
||||
|
||||
# depend on CPU configuration
|
||||
cpufunc.o cpufunc_asm.o: Makefile
|
||||
|
||||
# depend on DIAGNOSTIC etc.
|
||||
cpuswitch.o fault.o machdep.o: Makefile
|
||||
|
||||
|
||||
locore.o: ${ARM32}/arm32/locore.S assym.h
|
||||
${NORMAL_S}
|
||||
|
||||
modedefs.c: ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} Makefile
|
||||
awk -f ${ARM32}/vidc/makemodes.awk ${ARM32}/conf/monitors/${MONITOR} ${MODES} >modedefs.c
|
||||
|
||||
modedefs.o: modedefs.c
|
||||
${NORMAL_C}
|
||||
|
||||
# The install target can be redefined by putting a
|
||||
# install-kernel-${MACHINE_NAME} target into /etc/mk.conf
|
||||
MACHINE_NAME!= uname -n
|
||||
install: install-kernel-${MACHINE_NAME}
|
||||
.if !target(install-kernel-${MACHINE_NAME}})
|
||||
install-kernel-${MACHINE_NAME}:
|
||||
rm -f /onetbsd
|
||||
ln /netbsd /onetbsd
|
||||
cp netbsd /nnetbsd
|
||||
mv /nnetbsd /netbsd
|
||||
.endif
|
||||
|
||||
%RULES
|
|
@ -0,0 +1,266 @@
|
|||
# $NetBSD: files.dnard,v 1.1 2001/02/26 02:49:25 matt Exp $
|
||||
#
|
||||
# First try for arm-specific configuration info
|
||||
#
|
||||
|
||||
maxpartitions 8
|
||||
maxusers 2 8 64
|
||||
|
||||
# Floating point emulator
|
||||
defopt ARMFPE
|
||||
|
||||
# CPU types
|
||||
defopt opt_cputypes.h CPU_ARM6 CPU_ARM7 CPU_ARM7500 CPU_ARM8 CPU_SA110
|
||||
|
||||
# COMPAT_OLD_OFW for SHARKs
|
||||
defopt COMPAT_OLD_OFW
|
||||
|
||||
# Maintain Interrupt statistics
|
||||
defopt IRQSTATS
|
||||
|
||||
# PMAP_DEBUG (heavily abused option)
|
||||
defopt PMAP_DEBUG
|
||||
|
||||
# X server support in console drivers
|
||||
defopt XSERVER
|
||||
|
||||
# Bootloader options (COMPAT... to be dropped ASAP)
|
||||
defopt COMPAT_OLD_BOOTLOADER
|
||||
|
||||
# Architectures and core logic
|
||||
defopt EBSA285
|
||||
defopt FOOTBRIDGE
|
||||
|
||||
define todservice {}
|
||||
|
||||
#device mainbus { [base = -1], [dack = -1], [irq = -1] }
|
||||
#attach mainbus at root
|
||||
#file arch/arm32/mainbus/mainbus.c mainbus
|
||||
#file arch/arm32/mainbus/mainbus_io.c mainbus
|
||||
#file arch/arm32/mainbus/mainbus_io_asm.S mainbus
|
||||
|
||||
#device cpu
|
||||
#attach cpu at mainbus
|
||||
#file arch/arm32/mainbus/cpu.c cpu needs-flag
|
||||
|
||||
#
|
||||
# ISA and mixed ISA+EISA or ISA+PCI drivers
|
||||
#
|
||||
include "dev/isa/files.isa"
|
||||
|
||||
#
|
||||
# Machine-independent ATA drivers
|
||||
#
|
||||
include "dev/ata/files.ata"
|
||||
major {wd = 16}
|
||||
|
||||
# Common OFW files
|
||||
include "dev/ofw/files.ofw"
|
||||
attach ofbus at root with ofbus_root
|
||||
file arch/dnard/ofw/ofw.c ofw
|
||||
file arch/dnard/ofw/openfirm.c ofw
|
||||
file arch/dnard/ofw/oftodclock.c ofw & (shark | ofwgencfg)
|
||||
|
||||
# ISA DMA glue
|
||||
file arch/arm32/isa/isadma_machdep.c isadma
|
||||
|
||||
# XXX ISA joystick driver
|
||||
device joy
|
||||
file arch/arm32/isa/joy.c joy needs-flag
|
||||
attach joy at isa with joy_isa
|
||||
file arch/arm32/isa/joy_isa.c joy_isa
|
||||
|
||||
# OFW ISA bus driver.
|
||||
include "dev/ofisa/files.ofisa"
|
||||
file arch/dnard/ofw/ofisa_machdep.c ofisa
|
||||
file arch/dnard/ofw/com_ofisa_machdep.c com_ofisa
|
||||
file arch/dnard/ofw/com_ofisa_consolehack.c com_ofisa # XXX
|
||||
file arch/dnard/ofw/if_cs_ofisa_machdep.c cs_ofisa
|
||||
file arch/dnard/ofw/lpt_ofisa_machdep.c lpt_ofisa
|
||||
file arch/dnard/ofw/wdc_ofisa_machdep.c wdc_ofisa
|
||||
|
||||
# Glue for OFW ISA device attachment
|
||||
device ofisapc {}
|
||||
attach ofisapc at ofbus
|
||||
file arch/dnard/ofw/ofisapc.c pc & ofw
|
||||
device ofisascr {}
|
||||
attach ofisascr at ofisa
|
||||
file arch/dnard/ofw/ofisascr.c scr & ofw
|
||||
|
||||
device ofrom
|
||||
attach ofrom at ofbus
|
||||
file arch/dnard/ofw/ofrom.c ofrom needs-flag
|
||||
|
||||
# Memory disk driver
|
||||
file dev/md_root.c md & memory_disk_hooks
|
||||
major {md = 18}
|
||||
|
||||
# RAIDframe
|
||||
major {raid = 71}
|
||||
|
||||
# attribute used to represent the "keyboard controller" on the shark
|
||||
# XXX should be a real device
|
||||
define spckbd { [irq = -1], [port = -1] }
|
||||
|
||||
# PS/2 mouse device
|
||||
#device opms: tty
|
||||
#file arch/dnard/dnard/pms.c opms & ofw needs-flag
|
||||
|
||||
# Ethernet devices
|
||||
|
||||
#
|
||||
# Machine-independent SCSI drivers
|
||||
#
|
||||
|
||||
include "dev/scsipi/files.scsipi"
|
||||
major {sd = 24}
|
||||
major {cd = 26}
|
||||
|
||||
# Generic MD files
|
||||
file arch/arm32/arm32/autoconf.c
|
||||
file arch/arm32/arm32/blockio.S
|
||||
file arch/arm32/arm32/bus_dma.c
|
||||
file arch/arm32/arm32/conf.c
|
||||
file arch/arm32/arm32/cpuswitch.S
|
||||
file arch/arm32/arm32/disksubr.c disk
|
||||
file arch/arm32/arm32/disksubr_acorn.c disk
|
||||
file arch/arm32/arm32/disksubr_mbr.c disk
|
||||
file arch/arm32/arm32/stubs.c
|
||||
file arch/arm32/arm32/exception.S
|
||||
file arch/arm32/arm32/syscall.c
|
||||
file arch/arm32/arm32/ast.c
|
||||
file arch/arm32/arm32/fault.c
|
||||
file arch/arm32/arm32/undefined.c
|
||||
file arch/arm32/arm32/mem.c
|
||||
file arch/arm32/arm32/procfs_machdep.c procfs
|
||||
file arch/arm32/arm32/machdep.c
|
||||
file arch/arm32/arm32/sys_machdep.c
|
||||
file arch/arm32/arm32/vm_machdep.c
|
||||
file arch/arm32/arm32/pmap.c
|
||||
file arch/arm32/arm32/fusu.S
|
||||
file arch/arm32/arm32/cpufunc.c
|
||||
file arch/arm32/arm32/cpufunc_asm.S
|
||||
file arch/arm32/arm32/setcpsr.S
|
||||
file arch/arm32/arm32/setstack.S
|
||||
file arch/arm32/arm32/spl.S
|
||||
file arch/arm32/arm32/intr.c
|
||||
file arch/arm32/dev/bus_space_notimpl.S
|
||||
|
||||
# library functions
|
||||
file arch/arm32/arm32/strstr.c
|
||||
file arch/arm32/arm32/bcopy_page.S
|
||||
file arch/arm32/arm32/bcopyinout.S
|
||||
file arch/arm32/arm32/copystr.S
|
||||
|
||||
# files related to the shell
|
||||
#file arch/arm32/kshell/kshell_input.c kshell
|
||||
#file arch/arm32/kshell/kshell_shell.c kshell
|
||||
#file arch/arm32/kshell/kshell_disassem.c kshell
|
||||
#file arch/arm32/kshell/kshell_dumphex.c kshell
|
||||
#file arch/arm32/kshell/kshell_debug.c kshell
|
||||
|
||||
file dev/cons.c
|
||||
file dev/cninit.c !footbridge
|
||||
|
||||
# ARM FPE
|
||||
file arch/arm32/fpe-arm/armfpe_glue.S armfpe
|
||||
file arch/arm32/fpe-arm/armfpe_init.c armfpe
|
||||
file arch/arm32/fpe-arm/armfpe.s armfpe
|
||||
|
||||
# DDB
|
||||
file arch/arm32/arm32/db_interface.c ddb
|
||||
file arch/arm32/arm32/db_trace.c ddb
|
||||
file arch/arm32/arm32/db_machdep.c ddb
|
||||
|
||||
# Shark specific files
|
||||
file arch/dnard/dnard/shark_machdep.c shark
|
||||
file arch/dnard/dnard/sequoia.c shark
|
||||
file arch/dnard/dnard/fiq.S shark
|
||||
file arch/dnard/dnard/hat.c shark
|
||||
file arch/arm32/isa/isa_irqhandler.c shark
|
||||
file arch/arm32/isa/clock.c shark
|
||||
file arch/arm32/isa/isa_irq.S shark
|
||||
file arch/arm32/isa/isa_shark_machdep.c shark
|
||||
file arch/arm32/isa/isa_io.c shark | isa
|
||||
file arch/arm32/isa/isa_io_asm.S shark | isa
|
||||
|
||||
# OFWGENCFG specific files
|
||||
file arch/arm32/ofw/ofw_irq.S ofwgencfg
|
||||
file arch/arm32/ofw/ofw_irqhandler.c ofwgencfg
|
||||
file arch/arm32/ofw/ofwgencfg_clock.c ofwgencfg
|
||||
file arch/arm32/ofw/ofwgencfg_machdep.c ofwgencfg
|
||||
|
||||
# National Semiconductor PC97307VUL SuperIO chip configuration routines
|
||||
define nsio
|
||||
file arch/dnard/dnard/ns87307.c nsio & shark
|
||||
|
||||
# 8042 microcontroller routines for keyboard and mouse
|
||||
#define i8042
|
||||
#file arch/dnard/dnard/i8042.c i8042
|
||||
|
||||
defpseudo profiler: disk
|
||||
file arch/dnard/dnard/profile.c profiler needs-flag
|
||||
|
||||
device ofb: wsemuldisplaydev, rasops8
|
||||
attach ofb at ofbus
|
||||
file arch/dnard/ofw/ofb.c ofb needs-flag
|
||||
|
||||
# SHARK pc console
|
||||
#device pc: tty, spckbd, i8042
|
||||
#attach pc at ofisapc
|
||||
#file arch/dnard/dnard/pccons.c pc & ofw needs-flag
|
||||
|
||||
# Smart Card Reader
|
||||
device scr: tty
|
||||
file arch/dnard/dnard/scr.c scr needs-flag
|
||||
attach scr at ofisascr
|
||||
|
||||
# ISA Plug 'n Play autoconfiguration glue.
|
||||
#file arch/arm32/isa/isapnp_machdep.c isapnp
|
||||
|
||||
#device sysbeep
|
||||
#attach sysbeep at pcppi with sysbeep_isa
|
||||
#file arch/arm32/isa/sysbeep_isa.c sysbeep_isa
|
||||
|
||||
#attach dsrtc at isa
|
||||
#file arch/arm32/isa/dsrtc.c dsrtc
|
||||
|
||||
# PCI devices
|
||||
|
||||
#
|
||||
# Include PCI config
|
||||
#
|
||||
include "dev/i2o/files.i2o"
|
||||
include "dev/pci/files.pci"
|
||||
|
||||
# network devices MII bus
|
||||
include "dev/mii/files.mii"
|
||||
|
||||
device pcib: isabus
|
||||
attach pcib at pci
|
||||
file arch/arm32/pci/pcib.c pcib
|
||||
|
||||
# XXX THE FOLLOWING BLOCK SHOULD GO INTO dev/pci/files.pci, BUT CANNOT
|
||||
# XXX BECAUSE NOT 'lpt' IS DEFINED IN files.isa, RATHER THAN files.
|
||||
# XXX (when the conf/files and files.isa bogons are fixed, this can
|
||||
# XXX be fixed as well.)
|
||||
|
||||
attach lpt at puc with lpt_puc
|
||||
file dev/pci/lpt_puc.c lpt_puc
|
||||
|
||||
file arch/arm32/pci/pciide_machdep.c pciide
|
||||
|
||||
# Include USB stuff
|
||||
include "dev/usb/files.usb"
|
||||
|
||||
# Include WSCONS stuff
|
||||
include "dev/wscons/files.wscons"
|
||||
|
||||
include "dev/pckbc/files.pckbc"
|
||||
|
||||
#
|
||||
# Compatibility modules
|
||||
#
|
||||
|
||||
# Binary compatibility with previous NetBSD releases (COMPAT_XX)
|
||||
file arch/arm32/arm32/compat_13_machdep.c compat_13
|
|
@ -0,0 +1,12 @@
|
|||
# $NetBSD: std.dnard,v 1.1 2001/02/26 02:49:25 matt Exp $
|
||||
#
|
||||
# standard NetBSD/dnard options
|
||||
|
||||
machine dnard arm
|
||||
|
||||
options EXEC_AOUT
|
||||
options EXEC_SCRIPT
|
||||
options EXEC_ELF
|
||||
|
||||
# To support easy transit to ../arch/arm/arm32
|
||||
options ARM32
|
Loading…
Reference in New Issue