diff options
Diffstat (limited to 'include/linux/libata.h')
| -rw-r--r-- | include/linux/libata.h | 16 | 
1 files changed, 12 insertions, 4 deletions
diff --git a/include/linux/libata.h b/include/linux/libata.h index 324d792e7c78..13fb41d25da6 100644 --- a/include/linux/libata.h +++ b/include/linux/libata.h @@ -1152,12 +1152,19 @@ extern int ata_std_bios_param(struct scsi_device *sdev,  			      sector_t capacity, int geom[]);  extern void ata_scsi_unlock_native_capacity(struct scsi_device *sdev);  extern int ata_scsi_slave_alloc(struct scsi_device *sdev); -extern int ata_scsi_slave_config(struct scsi_device *sdev); +int ata_scsi_device_configure(struct scsi_device *sdev, +		struct queue_limits *lim);  extern void ata_scsi_slave_destroy(struct scsi_device *sdev);  extern int ata_scsi_change_queue_depth(struct scsi_device *sdev,  				       int queue_depth);  extern int ata_change_queue_depth(struct ata_port *ap, struct scsi_device *sdev,  				  int queue_depth); +extern int ata_ncq_prio_supported(struct ata_port *ap, struct scsi_device *sdev, +				  bool *supported); +extern int ata_ncq_prio_enabled(struct ata_port *ap, struct scsi_device *sdev, +				bool *enabled); +extern int ata_ncq_prio_enable(struct ata_port *ap, struct scsi_device *sdev, +			       bool enable);  extern struct ata_device *ata_dev_pair(struct ata_device *adev);  extern int ata_do_set_mode(struct ata_link *link, struct ata_device **r_failed_dev);  extern void ata_scsi_port_error_handler(struct Scsi_Host *host, struct ata_port *ap); @@ -1244,7 +1251,8 @@ extern struct ata_port *ata_sas_port_alloc(struct ata_host *,  extern void ata_port_probe(struct ata_port *ap);  extern int ata_sas_tport_add(struct device *parent, struct ata_port *ap);  extern void ata_sas_tport_delete(struct ata_port *ap); -extern int ata_sas_slave_configure(struct scsi_device *, struct ata_port *); +int ata_sas_device_configure(struct scsi_device *sdev, struct queue_limits *lim, +		struct ata_port *ap);  extern int ata_sas_queuecmd(struct scsi_cmnd *cmd, struct ata_port *ap);  extern void ata_tf_to_fis(const struct ata_taskfile *tf,  			  u8 pmp, int is_cmd, u8 *fis); @@ -1410,13 +1418,13 @@ extern const struct attribute_group *ata_common_sdev_groups[];  	__ATA_BASE_SHT(drv_name),				\  	.can_queue		= ATA_DEF_QUEUE,		\  	.tag_alloc_policy	= BLK_TAG_ALLOC_RR,		\ -	.slave_configure	= ata_scsi_slave_config +	.device_configure	= ata_scsi_device_configure  #define ATA_SUBBASE_SHT_QD(drv_name, drv_qd)			\  	__ATA_BASE_SHT(drv_name),				\  	.can_queue		= drv_qd,			\  	.tag_alloc_policy	= BLK_TAG_ALLOC_RR,		\ -	.slave_configure	= ata_scsi_slave_config +	.device_configure	= ata_scsi_device_configure  #define ATA_BASE_SHT(drv_name)					\  	ATA_SUBBASE_SHT(drv_name),				\  |