source: GPL/trunk/include/linux/device.h@ 441

Last change on this file since 441 was 441, checked in by Paul Smedley, 16 years ago

Move functions out of config.h into appropriate linux header

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 <linux/pm.h>
6#if 0
7struct 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
15struct bus_type {
16 int not_used;
17};
18
19struct 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
32struct device_attribute {
33 int not_used2;
34};
35
36int snd_compat_driver_register(struct device_driver *driver);
37void 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#define MODULE_ALIAS_CHARDEV_MAJOR(x)
45
46#endif /* _LINUX_DEVICE_H */
47
Note: See TracBrowser for help on using the repository browser.