77a6b82b27
This merge changes the device switch tables from static array to dynamically generated by config(8). - All device switches is defined as a constant structure in device drivers. - The new grammer ``device-major'' is introduced to ``files''. device-major <prefix> char <num> [block <num>] [<rules>] - All device major numbers must be listed up in port dependent majors.<arch> by using this grammer. - Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables. - The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa. - The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch. - In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
55 lines
1.2 KiB
Plaintext
55 lines
1.2 KiB
Plaintext
# $NetBSD: files.evbsh3,v 1.15 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# new style config file for sh3 architecture
|
|
#
|
|
|
|
# maxpartitions must be first item in files.${ARCH}.newconf
|
|
maxpartitions 8
|
|
|
|
maxusers 2 16 64
|
|
|
|
file arch/evbsh3/evbsh3/conf.c
|
|
file arch/evbsh3/evbsh3/machdep.c
|
|
file arch/evbsh3/evbsh3/autoconf.c
|
|
file arch/evbsh3/evbsh3/clock_machdep.c
|
|
file arch/sh3/sh3/disksubr.c disk
|
|
|
|
defparam opt_memsize.h IOM_ROM_BEGIN IOM_ROM_SIZE IOM_RAM_BEGIN IOM_RAM_SIZE
|
|
defparam opt_led_addr.h LED_ADDR
|
|
defparam opt_initbsc.h BSC_BCR1_VAL BSC_BCR2_VAL BSC_WCR1_VAL BSC_WCR2_VAL
|
|
BSC_WCR3_VAL BSC_MCR_VAL BSC_SDMR2_VAL BSC_SDMR3_VAL
|
|
BSC_RTCSR_VAL BSC_RTCNT_VAL BSC_RTCOR_VAL BSC_RFCR_VAL
|
|
BSC_PCR_VAL FRQCR_VAL PFC_SCPCR_VAL
|
|
|
|
#
|
|
# Machine-independent SCSI drivers
|
|
#
|
|
|
|
include "dev/scsipi/files.scsipi"
|
|
|
|
#
|
|
# Machine-independent ATA drivers
|
|
#
|
|
|
|
include "dev/ata/files.ata"
|
|
|
|
# Memory Disk for install floppy
|
|
file dev/md_root.c memory_disk_hooks
|
|
|
|
#
|
|
# System bus types
|
|
#
|
|
|
|
define mainbus { }
|
|
device mainbus: mainbus
|
|
attach mainbus at root
|
|
file arch/evbsh3/evbsh3/mainbus.c mainbus
|
|
|
|
device cpu
|
|
attach cpu at mainbus
|
|
file arch/sh3/sh3/cpu.c cpu
|
|
|
|
include "arch/sh3/conf/files.shb"
|
|
|
|
include "arch/evbsh3/conf/majors.evbsh3"
|