chiark / gitweb /
c9154e46f3f410475d5a71382d9eafde29643815
[elogind.git] / etc / udev / udev.rules.devfs
1 # There are a number of modifiers that are allowed to be used in some of the
2 # fields.  See the udev man page for a full description of them.
3
4 # ide block devices
5 BUS="ide", KERNEL="hd*", PROGRAM="/etc/udev/ide-devfs.sh %k %b %n", NAME="%k", SYMLINK="%c{1} %c{2}"
6
7 # md block devices
8 KERNEL="md[0-9]*", NAME="md/%n"
9
10 # floppy devices
11 KERNEL="fd[0-9]*", NAME="floppy/%n"
12
13 # tty devices
14 KERNEL="tty[0-9]*",    NAME="vc/%n"
15 KERNEL="ttyS[0-9]*",   NAME="tts/%n"
16 KERNEL="ttyUSB[0-9]*", NAME="tts/USB%n"
17
18 # vc devices
19 KERNEL="vcs",        NAME="vcc/0"
20 KERNEL="vcs[0-9]*",  NAME="vcc/%n"
21 KERNEL="vcsa",       NAME="vcc/a0"
22 KERNEL="vcsa[0-9]*", NAME="vcc/a%n"
23
24 # v4l devices
25 KERNEL="video[0-9]*", NAME="v4l/video%n"
26 KERNEL="radio[0-9]*", NAME="v4l/radio%n"
27 KERNEL="vbi[0-9]*",   NAME="v4l/vbi%n"
28 KERNEL="vtx[0-9]*",   NAME="v4l/vtx%n"
29
30 # dm devices (ignore them)
31 KERNEL="dm-[0-9]*", NAME=""
32
33 # i2c devices
34 KERNEL="i2c-[0-9]*", NAME="i2c/%n", SYMLINK="%k"
35
36 # loop devices
37 KERNEL="loop[0-9]*", NAME="loop/%n", SYMLINK="%k"
38
39 # ramdisks
40 KERNEL="ram[0-9]*", NAME="rd/%n", SYMLINK="%k"
41
42 # framebuffer devices
43 KERNEL="fb[0-9]*", NAME="fb/%n", SYMLINK="%k"
44
45 # misc
46 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
47 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
48 KERNEL="agpgart", NAME="misc/%k", SYMLINK="%k"
49 KERNEL="rtc",     NAME="misc/%k", SYMLINK="%k"
50 KERNEL="psaux",   NAME="misc/%k", SYMLINK="%k"
51 KERNEL="uinput",  NAME="misc/%k", SYMLINK="%k"
52
53 # alsa devices
54 KERNEL="controlC[0-9]*", NAME="snd/%k"
55 KERNEL="hw[CD0-9]*",     NAME="snd/%k"
56 KERNEL="pcm[CD0-9cp]*",  NAME="snd/%k"
57 KERNEL="midi[CD0-9]*",   NAME="snd/%k"
58 KERNEL="timer",          NAME="snd/%k"
59 KERNEL="seq",            NAME="snd/%k"
60
61 # oss devices
62 KERNEL="audio*",     NAME="sound/%k", SYMLINK="%k"
63 KERNEL="dmmidi",     NAME="sound/%k", SYMLINK="%k"
64 KERNEL="dsp*",       NAME="sound/%k", SYMLINK="%k"
65 KERNEL="midi*",      NAME="sound/%k", SYMLINK="%k"
66 KERNEL="mixer*",     NAME="sound/%k", SYMLINK="%k"
67 KERNEL="sequencer*", NAME="sound/%k", SYMLINK="%k"
68
69 # input devices
70 KERNEL="mice",   NAME="input/%k"
71 KERNEL="mouse*", NAME="input/%k"
72 KERNEL="event*", NAME="input/%k"
73 KERNEL="js*",    NAME="input/%k"
74 KERNEL="ts*",    NAME="input/%k"
75
76 # USB devices
77 KERNEL="hiddev*",       NAME="usb/%k"
78 KERNEL="auer*",         NAME="usb/%k"
79 KERNEL="legousbtower*", NAME="usb/%k"
80 KERNEL="dabusb*",       NAME="usb/%k"