xref: /titanic_44/usr/src/cmd/hal/fdi/README (revision 0bb073995ac5a95bd35f2dd790df1ea3d8c2d507)
1
2This file describe the layout of device information files in the hal
3source tree and their three different applications. It should serve as
4a brief guide for IHV's and third party open source projects on how to
5integrate with hal.
6
7Said third parties need to name their files in a unique manner using
8the following format: <organization>-[<model>]-[<purpose>].fdi. As a
9device information file can be used to match several models the model
10field may be omitted (the <purpose> field may be useful if the <model>
11field is omitted). The filename of a device information file must
12contain only lowercase alphanumeric characters, the '-' and '_'
13characters, and not any whitespace.
14
15Device information files are processed in the following order:
16
171. Preprobing
18-------------
19
20Contains device information files that are used to handle exceptional
21conditions such as telling hal to ignore a device and all children
22(using info.ignore), run programs to upload firmware or configure
23the device in an otherwise non-standard way that is incompatible with
24probing routines in hal (using info.callouts.preprobing) [1].
25
26These files are processed BEFORE the device have been been probed.
27
28Subdirs are installed in $(sysconfdir)/hal/preprobe (e.g. /etc/hal/preprobe)
29
30  preprobe
31  |-- 10osvendor    # From the hal tarball and/or supplied by the os vendor
32  |                 # -> installs into /usr/share/hal/fdi/preprobe/10osvendor
33  |-- 20thirdparty  # 3rd party projects and IHV's install here
34  |                 # -> installs into /usr/share/hal/fdi/preprobe/20thirdparty
35  `-- 30user        # Installed by the user/admin
36                    # -> installs into /etc/hal/fdi/preprobe/
37
38[1] : http://lists.freedesktop.org/archives/hal/2004-August/000858.html
39
402. Information
41--------------
42
43Contains device information files that describe hardware such as what
44kind of media a card reader uses (compact flash, memorystick etc),
45what out-of-tree kernel drivers are needed, whether the device is a
46camera and not just a harddrive.
47
48These files are processed AFTER the device have been probed but before
49any policy device information files.
50
51Subdirs are installed in $(datadir)/hal/fdi (e.g. /usr/share/hal/fdi)
52
53  information
54  |-- 10freedesktop # From the hal tarball
55  |                 # -> installs into /usr/share/hal/fdi/information/10freedesktop
56  |-- 20thirdparty  # 3rd party projects and IHV's install here
57  |                 # -> installs into /usr/share/hal/fdi/information/20thirdparty
58  `-- 30user        # Installed by the user/admin
59                    # -> installs into /etc/hal/fdi/information
60
61
623. Policy
63---------
64
65Contains device information files that describe policy for hardware
66such as what callouts and addons to run for a device.
67
68These files are processed AFTER the device have been been probed and
69also AFTER the information device files have been processed
70
71Subdirs are installed in $(sysconfdir)/hal/policy (e.g. /etc/hal/policy)
72
73  policy
74  |-- 10osvendor    # From the hal tarball and/or supplied by the os vendor
75  |                 # -> installs into /usr/share/hal/fdi/policy/10freedesktop
76  |-- 20thirdparty  # 3rd party projects and IHV's install here
77  |                 # -> installs into /usr/share/hal/fdi/policy/20thirdparty
78  `-- 30user        # Installed by the user/admin
79                    # -> installs into /etc/hal/fdi/policy
80
81