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.
42 lines
1.1 KiB
Plaintext
42 lines
1.1 KiB
Plaintext
# $NetBSD: majors.mipsco,v 1.2 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# Device majors for mipsco
|
|
#
|
|
|
|
device-major cons char 0
|
|
device-major zstty char 1 zstty
|
|
device-major ctty char 2
|
|
device-major mem char 3
|
|
device-major sd char 4 block 0 sd
|
|
|
|
device-major swap char 7 block 4
|
|
device-major pts char 8 pty
|
|
device-major ptc char 9 pty
|
|
device-major md char 10 block 2 md
|
|
|
|
device-major com char 15 com
|
|
device-major st char 16 block 17 st
|
|
device-major lpt char 17 lpt
|
|
|
|
device-major bpf char 24 bpfilter
|
|
device-major tun char 25 tun
|
|
|
|
device-major log char 33
|
|
|
|
device-major lkm char 45 lkm
|
|
device-major ipl char 46 ipfilter
|
|
device-major rnd char 47 rnd
|
|
device-major filedesc char 48
|
|
device-major ccd char 49 block 7 ccd
|
|
device-major vnd char 50 block 6 vnd
|
|
|
|
device-major uk char 54 uk
|
|
device-major cd char 55 block 16 cd
|
|
device-major ss char 56 ss
|
|
device-major ch char 57 ch
|
|
|
|
device-major scsibus char 73 scsibus
|
|
device-major raid char 74 block 32 raid
|
|
device-major clockctl char 75 clockctl
|
|
device-major systrace char 76 systrace
|