diff options
| author | Linus Torvalds <torvalds@home.transmeta.com> | 2002-09-17 06:38:00 -0700 |
|---|---|---|
| committer | Linus Torvalds <torvalds@home.transmeta.com> | 2002-09-17 06:38:00 -0700 |
| commit | 479834117f7c4e40e2863ca61c1698a7bb8eb10c (patch) | |
| tree | 773a95be934f4116b8ef707e206cadf81ed97190 /include | |
| parent | 6b27052e83de6ca55c64571852588c2cd59e401a (diff) | |
| parent | 100c3da74724d781db6eb351c0e339b6b542fe0e (diff) | |
Merge bk://ldm.bkbits.net/linux-2.5
into home.transmeta.com:/home/torvalds/v2.5/linux
Diffstat (limited to 'include')
| -rw-r--r-- | include/linux/device.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/linux/device.h b/include/linux/device.h index 21f789350502..ea2a790723b3 100644 --- a/include/linux/device.h +++ b/include/linux/device.h @@ -65,7 +65,8 @@ struct bus_type { struct driver_dir_entry device_dir; struct driver_dir_entry driver_dir; - int (*match) (struct device * dev, struct device_driver * drv); + int (*match)(struct device * dev, struct device_driver * drv); + struct device * (*add) (struct device * parent, char * bus_id); }; @@ -281,6 +282,8 @@ struct device { void *driver_data; /* data private to the driver */ u32 class_num; /* class-enumerated value */ + void * class_data; /* class-specific data */ + void *platform_data; /* Platform specific data (e.g. ACPI, BIOS data relevant to device) */ @@ -378,6 +381,9 @@ extern void put_device(struct device * dev); extern int register_sys_device(struct device * dev); extern void unregister_sys_device(struct device * dev); +/* drivers/base/platform.c */ +extern struct bus_type platform_bus; + /* drivers/base/power.c */ extern int device_suspend(u32 state, u32 level); extern void device_resume(u32 level); |
