summaryrefslogtreecommitdiff
path: root/include/linux/blkdev.h
diff options
context:
space:
mode:
authorJens Axboe <axboe@suse.de>2003-08-31 20:18:28 -0700
committerLinus Torvalds <torvalds@home.osdl.org>2003-08-31 20:18:28 -0700
commit62523467a77306d251a9d8855acbc7f002a9d01b (patch)
tree79d1cf6d16835503107fdc812368190d07179cab /include/linux/blkdev.h
parent3e1716972de659cda34d97fa2097326c0b08add4 (diff)
[PATCH] software hd led support
This adds support for software controlled hard drive LED activity. This is really nice on such machines as Apple Powerbooks, where there is no such LED in the first place and the sleep/suspend LED isn't used for anything when the machine is running.
Diffstat (limited to 'include/linux/blkdev.h')
-rw-r--r--include/linux/blkdev.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/linux/blkdev.h b/include/linux/blkdev.h
index a5c8772b6463..99dbf0d24eaf 100644
--- a/include/linux/blkdev.h
+++ b/include/linux/blkdev.h
@@ -243,6 +243,7 @@ typedef void (unplug_fn) (void *q);
struct bio_vec;
typedef int (merge_bvec_fn) (request_queue_t *, struct bio *, struct bio_vec *);
+typedef void (activity_fn) (void *data, int rw);
enum blk_queue_state {
Queue_down,
@@ -283,6 +284,7 @@ struct request_queue
prep_rq_fn *prep_rq_fn;
unplug_fn *unplug_fn;
merge_bvec_fn *merge_bvec_fn;
+ activity_fn *activity_fn;
/*
* Auto-unplugging state
@@ -300,6 +302,8 @@ struct request_queue
*/
void *queuedata;
+ void *activity_data;
+
/*
* queue needs bounce pages for pages above this limit
*/
@@ -504,6 +508,7 @@ extern void blk_start_queue(request_queue_t *q);
extern void blk_stop_queue(request_queue_t *q);
extern void __blk_stop_queue(request_queue_t *q);
extern void blk_run_queue(request_queue_t *q);
+extern void blk_queue_activity_fn(request_queue_t *, activity_fn *, void *);
static inline request_queue_t *bdev_get_queue(struct block_device *bdev)
{