diff options
author | Tejun Heo <htejun@gmail.com> | 2006-05-15 08:03:48 -0400 |
---|---|---|
committer | Tejun Heo <htejun@gmail.com> | 2006-05-15 08:03:48 -0400 |
commit | a6e6ce8e8dc907a2cf2b994b0ea4099423f046bf (patch) | |
tree | cc308c45c0d2df9e52be69959b9fd189371ad5d7 /include | |
parent | e8ee84518c159a663c07bf691ace187527380f61 (diff) |
[PATCH] libata-ncq: implement NCQ device configuration
Now that all NCQ related stuff are in place, implement NCQ device
configuration and bump ATA_MAX_QUEUE to 32 thus activating NCQ
support.
Original implementation is from Jens Axboe.
Signed-off-by: Tejun Heo <htejun@gmail.com>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/libata.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index dd0db2d21bc5..fcdd798bb086 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h | |||
@@ -109,7 +109,7 @@ enum { | |||
109 | ATA_MAX_PORTS = 8, | 109 | ATA_MAX_PORTS = 8, |
110 | ATA_DEF_QUEUE = 1, | 110 | ATA_DEF_QUEUE = 1, |
111 | /* tag ATA_MAX_QUEUE - 1 is reserved for internal commands */ | 111 | /* tag ATA_MAX_QUEUE - 1 is reserved for internal commands */ |
112 | ATA_MAX_QUEUE = 2, | 112 | ATA_MAX_QUEUE = 32, |
113 | ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1, | 113 | ATA_TAG_INTERNAL = ATA_MAX_QUEUE - 1, |
114 | ATA_MAX_SECTORS = 200, /* FIXME */ | 114 | ATA_MAX_SECTORS = 200, /* FIXME */ |
115 | ATA_MAX_BUS = 2, | 115 | ATA_MAX_BUS = 2, |
@@ -679,6 +679,8 @@ extern int ata_std_bios_param(struct scsi_device *sdev, | |||
679 | struct block_device *bdev, | 679 | struct block_device *bdev, |
680 | sector_t capacity, int geom[]); | 680 | sector_t capacity, int geom[]); |
681 | extern int ata_scsi_slave_config(struct scsi_device *sdev); | 681 | extern int ata_scsi_slave_config(struct scsi_device *sdev); |
682 | extern int ata_scsi_change_queue_depth(struct scsi_device *sdev, | ||
683 | int queue_depth); | ||
682 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); | 684 | extern struct ata_device *ata_dev_pair(struct ata_device *adev); |
683 | 685 | ||
684 | /* | 686 | /* |