aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux/pktcdvd.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/linux/pktcdvd.h')
-rw-r--r--include/linux/pktcdvd.h18
1 files changed, 17 insertions, 1 deletions
diff --git a/include/linux/pktcdvd.h b/include/linux/pktcdvd.h
index 9b1a185fb1e5..5ea4f05683f6 100644
--- a/include/linux/pktcdvd.h
+++ b/include/linux/pktcdvd.h
@@ -111,7 +111,8 @@ struct pkt_ctrl_command {
111#include <linux/blkdev.h> 111#include <linux/blkdev.h>
112#include <linux/completion.h> 112#include <linux/completion.h>
113#include <linux/cdrom.h> 113#include <linux/cdrom.h>
114 114#include <linux/kobject.h>
115#include <linux/sysfs.h>
115 116
116/* default bio write queue congestion marks */ 117/* default bio write queue congestion marks */
117#define PKT_WRITE_CONGESTION_ON 10000 118#define PKT_WRITE_CONGESTION_ON 10000
@@ -247,6 +248,14 @@ struct packet_stacked_data
247}; 248};
248#define PSD_POOL_SIZE 64 249#define PSD_POOL_SIZE 64
249 250
251struct pktcdvd_kobj
252{
253 struct kobject kobj;
254 struct pktcdvd_device *pd;
255};
256#define to_pktcdvdkobj(_k) \
257 ((struct pktcdvd_kobj*)container_of(_k,struct pktcdvd_kobj,kobj))
258
250struct pktcdvd_device 259struct pktcdvd_device
251{ 260{
252 struct block_device *bdev; /* dev attached */ 261 struct block_device *bdev; /* dev attached */
@@ -280,6 +289,13 @@ struct pktcdvd_device
280 289
281 int write_congestion_off; 290 int write_congestion_off;
282 int write_congestion_on; 291 int write_congestion_on;
292
293 struct class_device *clsdev; /* sysfs pktcdvd[0-7] class dev */
294 struct pktcdvd_kobj *kobj_stat; /* sysfs pktcdvd[0-7]/stat/ */
295 struct pktcdvd_kobj *kobj_wqueue; /* sysfs pktcdvd[0-7]/write_queue/ */
296
297 struct dentry *dfs_d_root; /* debugfs: devname directory */
298 struct dentry *dfs_f_info; /* debugfs: info file */
283}; 299};
284 300
285#endif /* __KERNEL__ */ 301#endif /* __KERNEL__ */