|
Last change
on this file since 596 was 463, checked in by Paul Smedley, 16 years ago |
|
Update headers for ALSA 1.0.21
|
|
File size:
1.2 KB
|
| Line | |
|---|
| 1 | /* $Id: pm.h,v 1.1.1.1 2003/07/02 13:57:00 eleph Exp $ */
|
|---|
| 2 |
|
|---|
| 3 | #ifndef _LINUX_DEVICE_H
|
|---|
| 4 | #define _LINUX_DEVICE_H
|
|---|
| 5 | #include <linux/pm.h>
|
|---|
| 6 | #if 0
|
|---|
| 7 | struct device {
|
|---|
| 8 | void *private_data;
|
|---|
| 9 | void *platform_data;
|
|---|
| 10 |
|
|---|
| 11 | struct device_driver *driver;
|
|---|
| 12 | struct pm_dev *pm_dev;
|
|---|
| 13 | char bus_id[20];
|
|---|
| 14 | };
|
|---|
| 15 | #endif
|
|---|
| 16 |
|
|---|
| 17 | struct bus_type {
|
|---|
| 18 | int not_used;
|
|---|
| 19 | };
|
|---|
| 20 |
|
|---|
| 21 | struct device_driver {
|
|---|
| 22 | const char *name;
|
|---|
| 23 | struct bus_type *bus;
|
|---|
| 24 | struct module *owner;
|
|---|
| 25 | int (*probe)(struct device *dev);
|
|---|
| 26 | int (*remove)(struct device *dev);
|
|---|
| 27 | void (*shutdown)(struct device *dev);
|
|---|
| 28 | int (*suspend)(struct device *dev, pm_message_t state);
|
|---|
| 29 | int (*resume)(struct device *dev);
|
|---|
| 30 | struct list_head list;
|
|---|
| 31 | struct list_head device_list;
|
|---|
| 32 | };
|
|---|
| 33 |
|
|---|
| 34 | struct device_attribute {
|
|---|
| 35 | int not_used2;
|
|---|
| 36 | };
|
|---|
| 37 |
|
|---|
| 38 | int snd_compat_driver_register(struct device_driver *driver);
|
|---|
| 39 | void snd_compat_driver_unregister(struct device_driver *driver);
|
|---|
| 40 |
|
|---|
| 41 | #define driver_register snd_compat_driver_register
|
|---|
| 42 | #define driver_unregister snd_compat_driver_unregister
|
|---|
| 43 | #define dev_set_drvdata(dev,ptr) ((dev)->private_data = (ptr))
|
|---|
| 44 | #define dev_get_drvdata(dev) (dev)->private_data
|
|---|
| 45 |
|
|---|
| 46 | #define MODULE_ALIAS_CHARDEV_MAJOR(x)
|
|---|
| 47 |
|
|---|
| 48 | #endif /* _LINUX_DEVICE_H */
|
|---|
| 49 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.