@@ -28,77 +28,24 @@ static inline bool dev_is_sata(struct domain_device *dev)
2828 }
2929}
3030
31- int sas_ata_init (struct domain_device * dev );
32- void sas_ata_task_abort (struct sas_task * task );
33- void sas_ata_strategy_handler (struct Scsi_Host * shost );
34- void sas_ata_eh (struct Scsi_Host * shost , struct list_head * work_q );
3531void sas_ata_schedule_reset (struct domain_device * dev );
36- void sas_ata_wait_eh (struct domain_device * dev );
37- void sas_probe_sata (struct asd_sas_port * port );
38- void sas_suspend_sata (struct asd_sas_port * port );
39- void sas_resume_sata (struct asd_sas_port * port );
40- void sas_ata_end_eh (struct ata_port * ap );
4132void sas_ata_device_link_abort (struct domain_device * dev , bool force_reset );
42- int sas_execute_ata_cmd (struct domain_device * device , u8 * fis ,
43- int force_phy_id );
33+ int sas_execute_ata_cmd (struct domain_device * device , u8 * fis , int force_phy_id );
4434int smp_ata_check_ready_type (struct ata_link * link );
45- int sas_discover_sata (struct domain_device * dev );
46- int sas_ata_add_dev (struct domain_device * parent , struct ex_phy * phy ,
47- struct domain_device * child , int phy_id );
4835
4936extern const struct attribute_group sas_ata_sdev_attr_group ;
5037
5138#else
5239
53- static inline void sas_ata_disabled_notice (void )
54- {
55- pr_notice_once ("ATA device seen but CONFIG_SCSI_SAS_ATA=N\n" );
56- }
57-
5840static inline bool dev_is_sata (struct domain_device * dev )
5941{
6042 return false;
6143}
62- static inline int sas_ata_init (struct domain_device * dev )
63- {
64- return 0 ;
65- }
66- static inline void sas_ata_task_abort (struct sas_task * task )
67- {
68- }
69-
70- static inline void sas_ata_strategy_handler (struct Scsi_Host * shost )
71- {
72- }
73-
74- static inline void sas_ata_eh (struct Scsi_Host * shost , struct list_head * work_q )
75- {
76- }
7744
7845static inline void sas_ata_schedule_reset (struct domain_device * dev )
7946{
8047}
8148
82- static inline void sas_ata_wait_eh (struct domain_device * dev )
83- {
84- }
85-
86- static inline void sas_probe_sata (struct asd_sas_port * port )
87- {
88- }
89-
90- static inline void sas_suspend_sata (struct asd_sas_port * port )
91- {
92- }
93-
94- static inline void sas_resume_sata (struct asd_sas_port * port )
95- {
96- }
97-
98- static inline void sas_ata_end_eh (struct ata_port * ap )
99- {
100- }
101-
10249static inline void sas_ata_device_link_abort (struct domain_device * dev ,
10350 bool force_reset )
10451{
@@ -115,19 +62,6 @@ static inline int smp_ata_check_ready_type(struct ata_link *link)
11562 return 0 ;
11663}
11764
118- static inline int sas_discover_sata (struct domain_device * dev )
119- {
120- sas_ata_disabled_notice ();
121- return - ENXIO ;
122- }
123-
124- static inline int sas_ata_add_dev (struct domain_device * parent , struct ex_phy * phy ,
125- struct domain_device * child , int phy_id )
126- {
127- sas_ata_disabled_notice ();
128- return - ENODEV ;
129- }
130-
13165#define sas_ata_sdev_attr_group ((struct attribute_group) {})
13266
13367#endif
0 commit comments