diff options
author | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-08-01 14:42:05 -0400 |
---|---|---|
committer | Martin Schwidefsky <schwidefsky@de.ibm.com> | 2008-08-01 14:42:05 -0400 |
commit | c6557e7f2b6ae76a44653d38f835174074c42e05 (patch) | |
tree | da619a76b309cb1cd259d082af768a83cfcd6d52 /include/asm-s390/ccwgroup.h | |
parent | ab4227cb2d936886069ef1056c02500d05beb15d (diff) |
[S390] move include/asm-s390 to arch/s390/include/asm
Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'include/asm-s390/ccwgroup.h')
-rw-r--r-- | include/asm-s390/ccwgroup.h | 69 |
1 files changed, 0 insertions, 69 deletions
diff --git a/include/asm-s390/ccwgroup.h b/include/asm-s390/ccwgroup.h deleted file mode 100644 index a27f68985a79..000000000000 --- a/include/asm-s390/ccwgroup.h +++ /dev/null | |||
@@ -1,69 +0,0 @@ | |||
1 | #ifndef S390_CCWGROUP_H | ||
2 | #define S390_CCWGROUP_H | ||
3 | |||
4 | struct ccw_device; | ||
5 | struct ccw_driver; | ||
6 | |||
7 | /** | ||
8 | * struct ccwgroup_device - ccw group device | ||
9 | * @creator_id: unique number of the driver | ||
10 | * @state: online/offline state | ||
11 | * @count: number of attached slave devices | ||
12 | * @dev: embedded device structure | ||
13 | * @cdev: variable number of slave devices, allocated as needed | ||
14 | */ | ||
15 | struct ccwgroup_device { | ||
16 | unsigned long creator_id; | ||
17 | enum { | ||
18 | CCWGROUP_OFFLINE, | ||
19 | CCWGROUP_ONLINE, | ||
20 | } state; | ||
21 | /* private: */ | ||
22 | atomic_t onoff; | ||
23 | struct mutex reg_mutex; | ||
24 | /* public: */ | ||
25 | unsigned int count; | ||
26 | struct device dev; | ||
27 | struct ccw_device *cdev[0]; | ||
28 | }; | ||
29 | |||
30 | /** | ||
31 | * struct ccwgroup_driver - driver for ccw group devices | ||
32 | * @owner: driver owner | ||
33 | * @name: driver name | ||
34 | * @max_slaves: maximum number of slave devices | ||
35 | * @driver_id: unique id | ||
36 | * @probe: function called on probe | ||
37 | * @remove: function called on remove | ||
38 | * @set_online: function called when device is set online | ||
39 | * @set_offline: function called when device is set offline | ||
40 | * @shutdown: function called when device is shut down | ||
41 | * @driver: embedded driver structure | ||
42 | */ | ||
43 | struct ccwgroup_driver { | ||
44 | struct module *owner; | ||
45 | char *name; | ||
46 | int max_slaves; | ||
47 | unsigned long driver_id; | ||
48 | |||
49 | int (*probe) (struct ccwgroup_device *); | ||
50 | void (*remove) (struct ccwgroup_device *); | ||
51 | int (*set_online) (struct ccwgroup_device *); | ||
52 | int (*set_offline) (struct ccwgroup_device *); | ||
53 | void (*shutdown)(struct ccwgroup_device *); | ||
54 | |||
55 | struct device_driver driver; | ||
56 | }; | ||
57 | |||
58 | extern int ccwgroup_driver_register (struct ccwgroup_driver *cdriver); | ||
59 | extern void ccwgroup_driver_unregister (struct ccwgroup_driver *cdriver); | ||
60 | int ccwgroup_create_from_string(struct device *root, unsigned int creator_id, | ||
61 | struct ccw_driver *cdrv, int num_devices, | ||
62 | const char *buf); | ||
63 | |||
64 | extern int ccwgroup_probe_ccwdev(struct ccw_device *cdev); | ||
65 | extern void ccwgroup_remove_ccwdev(struct ccw_device *cdev); | ||
66 | |||
67 | #define to_ccwgroupdev(x) container_of((x), struct ccwgroup_device, dev) | ||
68 | #define to_ccwgroupdrv(x) container_of((x), struct ccwgroup_driver, driver) | ||
69 | #endif | ||