Loading drivers/ata/ahci.c +4 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,10 @@ static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg); static int ahci_pci_device_resume(struct pci_dev *pdev); #endif static struct scsi_host_template ahci_sht = { AHCI_SHT("ahci"), }; static struct ata_port_operations ahci_vt8251_ops = { .inherits = &ahci_ops, .hardreset = ahci_vt8251_hardreset, Loading drivers/ata/ahci.h +11 −1 Original line number Diff line number Diff line Loading @@ -298,7 +298,17 @@ struct ahci_host_priv { extern int ahci_ignore_sss; extern struct scsi_host_template ahci_sht; extern struct device_attribute *ahci_shost_attrs[]; extern struct device_attribute *ahci_sdev_attrs[]; #define AHCI_SHT(drv_name) \ ATA_NCQ_SHT(drv_name), \ .can_queue = AHCI_MAX_CMDS - 1, \ .sg_tablesize = AHCI_MAX_SG, \ .dma_boundary = AHCI_DMA_BOUNDARY, \ .shost_attrs = ahci_shost_attrs, \ .sdev_attrs = ahci_sdev_attrs extern struct ata_port_operations ahci_ops; void ahci_save_initial_config(struct device *dev, Loading drivers/ata/ahci_platform.c +5 −1 Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ #include <linux/ahci_platform.h> #include "ahci.h" static struct scsi_host_template ahci_platform_sht = { AHCI_SHT("ahci_platform"), }; static int __init ahci_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; Loading Loading @@ -145,7 +149,7 @@ static int __init ahci_probe(struct platform_device *pdev) ahci_print_info(host, "platform"); rc = ata_host_activate(host, irq, ahci_interrupt, IRQF_SHARED, &ahci_sht); &ahci_platform_sht); if (rc) goto err0; Loading drivers/ata/libahci.c +4 −12 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ static DEVICE_ATTR(ahci_port_cmd, S_IRUGO, ahci_show_port_cmd, NULL); static DEVICE_ATTR(em_buffer, S_IWUSR | S_IRUGO, ahci_read_em_buffer, ahci_store_em_buffer); static struct device_attribute *ahci_shost_attrs[] = { struct device_attribute *ahci_shost_attrs[] = { &dev_attr_link_power_management_policy, &dev_attr_em_message_type, &dev_attr_em_message, Loading @@ -132,22 +132,14 @@ static struct device_attribute *ahci_shost_attrs[] = { &dev_attr_em_buffer, NULL }; EXPORT_SYMBOL_GPL(ahci_shost_attrs); static struct device_attribute *ahci_sdev_attrs[] = { struct device_attribute *ahci_sdev_attrs[] = { &dev_attr_sw_activity, &dev_attr_unload_heads, NULL }; struct scsi_host_template ahci_sht = { ATA_NCQ_SHT("ahci"), .can_queue = AHCI_MAX_CMDS - 1, .sg_tablesize = AHCI_MAX_SG, .dma_boundary = AHCI_DMA_BOUNDARY, .shost_attrs = ahci_shost_attrs, .sdev_attrs = ahci_sdev_attrs, }; EXPORT_SYMBOL_GPL(ahci_sht); EXPORT_SYMBOL_GPL(ahci_sdev_attrs); struct ata_port_operations ahci_ops = { .inherits = &sata_pmp_port_ops, Loading Loading
drivers/ata/ahci.c +4 −0 Original line number Diff line number Diff line Loading @@ -90,6 +90,10 @@ static int ahci_pci_device_suspend(struct pci_dev *pdev, pm_message_t mesg); static int ahci_pci_device_resume(struct pci_dev *pdev); #endif static struct scsi_host_template ahci_sht = { AHCI_SHT("ahci"), }; static struct ata_port_operations ahci_vt8251_ops = { .inherits = &ahci_ops, .hardreset = ahci_vt8251_hardreset, Loading
drivers/ata/ahci.h +11 −1 Original line number Diff line number Diff line Loading @@ -298,7 +298,17 @@ struct ahci_host_priv { extern int ahci_ignore_sss; extern struct scsi_host_template ahci_sht; extern struct device_attribute *ahci_shost_attrs[]; extern struct device_attribute *ahci_sdev_attrs[]; #define AHCI_SHT(drv_name) \ ATA_NCQ_SHT(drv_name), \ .can_queue = AHCI_MAX_CMDS - 1, \ .sg_tablesize = AHCI_MAX_SG, \ .dma_boundary = AHCI_DMA_BOUNDARY, \ .shost_attrs = ahci_shost_attrs, \ .sdev_attrs = ahci_sdev_attrs extern struct ata_port_operations ahci_ops; void ahci_save_initial_config(struct device *dev, Loading
drivers/ata/ahci_platform.c +5 −1 Original line number Diff line number Diff line Loading @@ -23,6 +23,10 @@ #include <linux/ahci_platform.h> #include "ahci.h" static struct scsi_host_template ahci_platform_sht = { AHCI_SHT("ahci_platform"), }; static int __init ahci_probe(struct platform_device *pdev) { struct device *dev = &pdev->dev; Loading Loading @@ -145,7 +149,7 @@ static int __init ahci_probe(struct platform_device *pdev) ahci_print_info(host, "platform"); rc = ata_host_activate(host, irq, ahci_interrupt, IRQF_SHARED, &ahci_sht); &ahci_platform_sht); if (rc) goto err0; Loading
drivers/ata/libahci.c +4 −12 Original line number Diff line number Diff line Loading @@ -121,7 +121,7 @@ static DEVICE_ATTR(ahci_port_cmd, S_IRUGO, ahci_show_port_cmd, NULL); static DEVICE_ATTR(em_buffer, S_IWUSR | S_IRUGO, ahci_read_em_buffer, ahci_store_em_buffer); static struct device_attribute *ahci_shost_attrs[] = { struct device_attribute *ahci_shost_attrs[] = { &dev_attr_link_power_management_policy, &dev_attr_em_message_type, &dev_attr_em_message, Loading @@ -132,22 +132,14 @@ static struct device_attribute *ahci_shost_attrs[] = { &dev_attr_em_buffer, NULL }; EXPORT_SYMBOL_GPL(ahci_shost_attrs); static struct device_attribute *ahci_sdev_attrs[] = { struct device_attribute *ahci_sdev_attrs[] = { &dev_attr_sw_activity, &dev_attr_unload_heads, NULL }; struct scsi_host_template ahci_sht = { ATA_NCQ_SHT("ahci"), .can_queue = AHCI_MAX_CMDS - 1, .sg_tablesize = AHCI_MAX_SG, .dma_boundary = AHCI_DMA_BOUNDARY, .shost_attrs = ahci_shost_attrs, .sdev_attrs = ahci_sdev_attrs, }; EXPORT_SYMBOL_GPL(ahci_sht); EXPORT_SYMBOL_GPL(ahci_sdev_attrs); struct ata_port_operations ahci_ops = { .inherits = &sata_pmp_port_ops, Loading