From aeb14ea3d86145154ab413dcd9d215df19fe9357 Mon Sep 17 00:00:00 2001 From: Patrick Mochel Date: Mon, 23 Sep 2002 03:27:47 -0700 Subject: 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. --- include/linux/device.h | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'include/linux/device.h') 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; -- cgit v1.2.3