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.
79 lines
2.0 KiB
Plaintext
79 lines
2.0 KiB
Plaintext
# $NetBSD: majors.sparc64,v 1.2 2002/09/06 13:18:43 gehenna Exp $
|
|
#
|
|
# Device majors for sparc64
|
|
#
|
|
# XXX KEEP THIS FILE IN SYNC WITH THE arch/sparc/conf/majors.sparc
|
|
#
|
|
|
|
device-major cons char 0
|
|
device-major kd char 1 kbd | sunkbd
|
|
device-major ctty char 2
|
|
device-major mem char 3
|
|
device-major ses char 4 ses
|
|
|
|
device-major swap char 7 block 4
|
|
|
|
device-major zstty char 12 zstty
|
|
device-major ms char 13 ms | sunms
|
|
|
|
device-major log char 16
|
|
device-major sd char 17 block 7 sd
|
|
device-major st char 18 block 11 st
|
|
device-major ch char 19 ch
|
|
device-major pts char 20 pty
|
|
device-major ptc char 21 pty
|
|
device-major fb char 22 fb
|
|
device-major ccd char 23 block 9 ccd
|
|
device-major filedesc char 24
|
|
device-major ipl char 25 ipfilter
|
|
device-major wd char 26 block 12 wd
|
|
device-major bwtwo char 27 bwtwo
|
|
|
|
device-major kbd char 29 kbd | sunkbd
|
|
|
|
device-major com char 36 com
|
|
|
|
device-major svr4_net char 43 compat_svr4
|
|
|
|
device-major vcoda char 47 vcoda
|
|
|
|
device-major fd char 54 block 16 fd
|
|
device-major cgthree char 55 cgthree
|
|
|
|
device-major cd char 58 block 18 cd
|
|
device-major ss char 59 ss
|
|
device-major uk char 60 uk
|
|
device-major md char 61 block 5 md
|
|
|
|
device-major cgsix char 67 cgsix
|
|
|
|
device-major audio char 69 audio
|
|
device-major openprom char 70
|
|
|
|
device-major isdn char 72 isdn
|
|
device-major isdnctl char 73 isdnctl
|
|
device-major isdnbchan char 74 isdnbchan
|
|
device-major isdntrc char 75 isdntrc
|
|
device-major isdntel char 76 isdntel
|
|
device-major sabtty char 77 sabtty
|
|
|
|
device-major cgfourteen char 99 cgfourteen
|
|
|
|
device-major bpf char 105 bpfilter
|
|
|
|
device-major bpp char 107 bpp
|
|
|
|
device-major tcx char 109 tcx
|
|
device-major vnd char 110 block 8 vnd
|
|
device-major tun char 111 tun
|
|
device-major lkm char 112 lkm
|
|
|
|
device-major rnd char 119 rnd
|
|
device-major scsibus char 120 scsibus
|
|
device-major raid char 121 block 25 raid
|
|
device-major pcons char 122 pcons
|
|
device-major pci char 123 pci
|
|
device-major clcd char 124 clcd
|
|
device-major clockctl char 125 clockctl
|
|
device-major systrace char 126 systrace
|