ide: add generic ATA/ATAPI disk driver
commit806f80a6fc203ad0bde84e5a9e94572617d2ae45
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:14 +0000 (17 18:09 +0200)
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Fri, 17 Oct 2008 16:09:14 +0000 (17 18:09 +0200)
tree20c684323e6e9f24af96df84008f06425a67ec6a
parent79cb380397c834a35952d8497651d93b543ef968
ide: add generic ATA/ATAPI disk driver

* Add struct ide_disk_ops containing protocol specific methods.

* Add 'struct ide_disk_ops *' to ide_drive_t.

* Convert ide-{disk,floppy} drivers to use struct ide_disk_ops.

* Merge ide-{disk,floppy} drivers into generic ide-gd driver.

While at it:
- ide_disk_init_capacity() -> ide_disk_get_capacity()

Acked-by: Borislav Petkov <petkovbb@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
13 files changed:
drivers/ide/Kconfig
drivers/ide/Makefile
drivers/ide/ide-disk.c
drivers/ide/ide-disk.h
drivers/ide/ide-disk_ioctl.c
drivers/ide/ide-floppy.c
drivers/ide/ide-floppy.h
drivers/ide/ide-floppy_ioctl.c
drivers/ide/ide-gd-floppy.c [deleted file]
drivers/ide/ide-gd.c
drivers/ide/ide-gd.h [new file with mode: 0644]
drivers/leds/Kconfig
include/linux/ide.h