NetBSD/sys/arch/dreamcast/conf/majors.dreamcast
gehenna 77a6b82b27 Merge the gehenna-devsw branch into the trunk.
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.
2002-09-06 13:18:43 +00:00

54 lines
1.5 KiB
Plaintext

# $NetBSD: majors.dreamcast,v 1.2 2002/09/06 13:18:43 gehenna Exp $
#
# Device majors for dreamcast
#
device-major cons char 0
device-major ctty char 1
device-major mem char 2
device-major wd char 3 block 0 wd
device-major swap char 4 block 1
device-major pts char 5 pty
device-major ptc char 6 pty
device-major log char 7
device-major com char 8 com
device-major scif char 10 scif
device-major sd char 13 block 4 sd
device-major st char 14 block 5 st
device-major cd char 15 block 6 cd
device-major ch char 17 ch
device-major ccd char 18 block 16 ccd
device-major ss char 19 ss
device-major uk char 20 uk
device-major filedesc char 22
device-major bpf char 23 bpfilter
device-major md char 24 block 17 md
device-major lkm char 28 lkm
device-major tun char 40 tun
device-major vnd char 41 block 14 vnd
device-major audio char 42 audio
device-major ipl char 44 ipfilter
device-major rnd char 46 rnd
device-major vcoda char 47 vcoda
device-major scsibus char 48 scsibus
device-major raid char 49 block 18 raid
device-major esh char 50 esh
device-major wdog char 51 wdog
device-major wsdisplay char 52 wsdisplay
device-major wskbd char 53 wskbd
device-major wsmouse char 54 wsmouse
device-major svr4_net char 55 compat_svr4
device-major wsmux char 56 wsmux
device-major gdrom char 57 block 19 gdrom
device-major maple char 58 maple
device-major clockctl char 59 clockctl
device-major systrace char 60 systrace