diff options
author | Jeff Garzik <jgarzik@pobox.com> | 2004-08-14 07:38:01 -0400 |
---|---|---|
committer | Jeff Garzik <jgarzik@pobox.com> | 2004-08-14 07:38:01 -0400 |
commit | 815b472b87a7074bb171213aedd4c6c439e6b18d (patch) | |
tree | 816945734b4eade37a4985ee8836672deb9aa9d8 /include | |
parent | 7af09f972ad4360d99a0f9dfbbaaaa4050eb055c (diff) | |
download | history-815b472b87a7074bb171213aedd4c6c439e6b18d.tar.gz |
[libata] add ioctl infrastructure
Mainly adding the infrastructure for various ATA ioctls. Currently
only supports two ATA-specific ioctls:
HDIO_GET_32BIT and HDIO_SET_32BIT (hdparm -c)
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ata.h | 5 | ||||
-rw-r--r-- | include/linux/libata.h | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/include/linux/ata.h b/include/linux/ata.h index 61af2605817541..ce8f17ed419ce0 100644 --- a/include/linux/ata.h +++ b/include/linux/ata.h @@ -182,6 +182,11 @@ enum ata_tf_protocols { ATA_PROT_ATAPI_DMA, /* packet command with special DMA sauce */ }; +enum ata_ioctls { + ATA_IOC_GET_IO32 = 0x309, + ATA_IOC_SET_IO32 = 0x324, +}; + /* core structures */ struct ata_prd { diff --git a/include/linux/libata.h b/include/linux/libata.h index e702e96f7d98f4..efacf9293f26a3 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -371,6 +371,7 @@ extern int ata_pci_init_one (struct pci_dev *pdev, struct ata_port_info **port_i extern void ata_pci_remove_one (struct pci_dev *pdev); extern int ata_device_add(struct ata_probe_ent *ent); extern int ata_scsi_detect(Scsi_Host_Template *sht); +extern int ata_scsi_ioctl(struct scsi_device *dev, int cmd, void __user *arg); extern int ata_scsi_queuecmd(struct scsi_cmnd *cmd, void (*done)(struct scsi_cmnd *)); extern int ata_scsi_error(struct Scsi_Host *host); extern int ata_scsi_release(struct Scsi_Host *host); |