diff options
author | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:45 -0400 |
---|---|---|
committer | Bartlomiej Zolnierkiewicz <bzolnier@gmail.com> | 2008-10-13 15:39:45 -0400 |
commit | f87904898e91923a91b925078ac933f05076c7fd (patch) | |
tree | bd4488b5510f8b67d4b2f92bd1d8616472076eee /drivers/ide/ide-disk.h | |
parent | b9103da463f72d03c513acdb18f1aebd7931ed1e (diff) |
ide-disk: move all ioctl handling to ide-disk_ioctl.c
While at it:
- idedisk_ioctl() -> ide_disk_ioctl()
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide/ide-disk.h')
-rw-r--r-- | drivers/ide/ide-disk.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/drivers/ide/ide-disk.h b/drivers/ide/ide-disk.h new file mode 100644 index 000000000000..7f007854adac --- /dev/null +++ b/drivers/ide/ide-disk.h | |||
@@ -0,0 +1,25 @@ | |||
1 | #ifndef __IDE_DISK_H | ||
2 | #define __IDE_DISK_H | ||
3 | |||
4 | struct ide_disk_obj { | ||
5 | ide_drive_t *drive; | ||
6 | ide_driver_t *driver; | ||
7 | struct gendisk *disk; | ||
8 | struct kref kref; | ||
9 | unsigned int openers; /* protected by BKL for now */ | ||
10 | }; | ||
11 | |||
12 | #define ide_disk_g(disk) \ | ||
13 | container_of((disk)->private_data, struct ide_disk_obj, driver) | ||
14 | |||
15 | /* ide-disk.c */ | ||
16 | ide_decl_devset(address); | ||
17 | ide_decl_devset(multcount); | ||
18 | ide_decl_devset(nowerr); | ||
19 | ide_decl_devset(wcache); | ||
20 | ide_decl_devset(acoustic); | ||
21 | |||
22 | /* ide-disk_ioctl.c */ | ||
23 | int ide_disk_ioctl(struct inode *, struct file *, unsigned int, unsigned long); | ||
24 | |||
25 | #endif /* __IDE_DISK_H */ | ||