|
Last change
on this file since 429 was 305, checked in by Paul Smedley, 18 years ago |
|
Update source to ALSA 1.0.16 level
|
|
File size:
1.1 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 <sound/config.h>
|
|---|
| 6 | #if 0
|
|---|
| 7 | struct device {
|
|---|
| 8 | void *private_data;
|
|---|
| 9 | struct device_driver *driver;
|
|---|
| 10 | struct pm_dev *pm_dev;
|
|---|
| 11 | char bus_id[20];
|
|---|
| 12 | };
|
|---|
| 13 | #endif
|
|---|
| 14 |
|
|---|
| 15 | struct bus_type {
|
|---|
| 16 | int not_used;
|
|---|
| 17 | };
|
|---|
| 18 |
|
|---|
| 19 | struct device_driver {
|
|---|
| 20 | const char *name;
|
|---|
| 21 | struct bus_type *bus;
|
|---|
| 22 | struct module *owner;
|
|---|
| 23 | int (*probe)(struct device *dev);
|
|---|
| 24 | int (*remove)(struct device *dev);
|
|---|
| 25 | void (*shutdown)(struct device *dev);
|
|---|
| 26 | int (*suspend)(struct device *dev, pm_message_t state);
|
|---|
| 27 | int (*resume)(struct device *dev);
|
|---|
| 28 | struct list_head list;
|
|---|
| 29 | struct list_head device_list;
|
|---|
| 30 | };
|
|---|
| 31 |
|
|---|
| 32 | struct device_attribute {
|
|---|
| 33 | int not_used2;
|
|---|
| 34 | };
|
|---|
| 35 |
|
|---|
| 36 | int snd_compat_driver_register(struct device_driver *driver);
|
|---|
| 37 | void snd_compat_driver_unregister(struct device_driver *driver);
|
|---|
| 38 |
|
|---|
| 39 | #define driver_register snd_compat_driver_register
|
|---|
| 40 | #define driver_unregister snd_compat_driver_unregister
|
|---|
| 41 | #define dev_set_drvdata(dev,ptr) ((dev)->private_data = (ptr))
|
|---|
| 42 | #define dev_get_drvdata(dev) (dev)->private_data
|
|---|
| 43 |
|
|---|
| 44 |
|
|---|
| 45 | #endif /* _LINUX_DEVICE_H */
|
|---|
| 46 |
|
|---|
Note:
See
TracBrowser
for help on using the repository browser.