aboutsummaryrefslogtreecommitdiffstats
path: root/include/linux
diff options
context:
space:
mode:
authorThomas Maier <balagi@justmail.de>2006-12-08 05:36:12 -0500
committerLinus Torvalds <torvalds@woody.osdl.org>2006-12-08 11:28:38 -0500
commit32694850a91bd4fedcdd4a46292f870588be81d1 (patch)
tree370e1f97c9dff8f4feb71b8a1cf03cfe37b15d8b /include/linux
parent0a0fc9601dd1024ec7171993bf075a789246e1ed (diff)
[PATCH] pktcdvd: add sysfs and debugfs interface
Add a sysfs and debugfs interface to the pktcdvd driver. Look into the Documentation/ABI/testing/* files in the patch for more info. Signed-off-by: Thomas Maier <balagi@justmail.de> Signed-off-by: Peter Osterlund <petero2@telia.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'include/linux')
-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__ */