@@ -28,77 +28,24 @@ static inline bool dev_is_sata(struct domain_device *dev)
28
28
}
29
29
}
30
30
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 );
35
31
void 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 );
41
32
void 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 );
44
34
int 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 );
48
35
49
36
extern const struct attribute_group sas_ata_sdev_attr_group ;
50
37
51
38
#else
52
39
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
-
58
40
static inline bool dev_is_sata (struct domain_device * dev )
59
41
{
60
42
return false;
61
43
}
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
- }
77
44
78
45
static inline void sas_ata_schedule_reset (struct domain_device * dev )
79
46
{
80
47
}
81
48
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
-
102
49
static inline void sas_ata_device_link_abort (struct domain_device * dev ,
103
50
bool force_reset )
104
51
{
@@ -115,19 +62,6 @@ static inline int smp_ata_check_ready_type(struct ata_link *link)
115
62
return 0 ;
116
63
}
117
64
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
-
131
65
#define sas_ata_sdev_attr_group ((struct attribute_group) {})
132
66
133
67
#endif
0 commit comments