diff options
| author | Patrick Mochel <mochel@osdl.org> | 2002-09-23 03:27:47 -0700 |
|---|---|---|
| committer | Patrick Mochel <mochel@osdl.org> | 2002-09-23 03:27:47 -0700 |
| commit | aeb14ea3d86145154ab413dcd9d215df19fe9357 (patch) | |
| tree | 0f0caa035f3a52b300624d2c9c483db5ddf2fd3c /include/linux | |
| parent | 2a833213479439dea833ff89a993eefc537a326c (diff) | |
driver model: add support for multi-board systems.
- device struct sys_root for describing the individual boards of a multi-board
system.
- allow for registration of alternate device roots.
- check if struct sys_device::root is set on registration, and add it as a child of
an alternative root, if it's set.
Diffstat (limited to 'include/linux')
| -rw-r--r-- | include/linux/device.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 7abeead7bfe1..53a71f85ae59 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -379,6 +379,16 @@ extern void put_device(struct device * dev); /* drivers/base/sys.c */ +struct sys_root { + u32 id; + struct device dev; + struct device sysdev; +}; + +extern int sys_register_root(struct sys_root *); +extern void sys_unregister_root(struct sys_root *); + + struct sys_device { char * name; u32 id; |
