ata_port_operationsRegular
4.4: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_device *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
4.8: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_device *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
4.10: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_device *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
4.13: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
4.15: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
4.18: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.0: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.3: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.4: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.8: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.11: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.13: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.15: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
5.19: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, __le16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
6.2: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
unsigned int (*mode_filter)(struct ata_device *, unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, __le16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
6.5: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
void (*qc_fill_rtf)(struct ata_queued_cmd *);
void (*qc_ncq_fill_rtf)(struct ata_port *, u64);
int (*cable_detect)(struct ata_port *);
unsigned int (*mode_filter)(struct ata_device *, unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, __le16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
6.8: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
void (*qc_fill_rtf)(struct ata_queued_cmd *);
void (*qc_ncq_fill_rtf)(struct ata_port *, u64);
int (*cable_detect)(struct ata_port *);
unsigned int (*mode_filter)(struct ata_device *, unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, __le16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
const struct ata_port_operations *inherits;
};
arm64: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
armhf: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
ppc64el: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
riscv64: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
aws: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
azure: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
gcp: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
lowlatency: ✅struct ata_port_operations {
int (*qc_defer)(struct ata_queued_cmd *);
int (*check_atapi_dma)(struct ata_queued_cmd *);
void (*qc_prep)(struct ata_queued_cmd *);
unsigned int (*qc_issue)(struct ata_queued_cmd *);
bool (*qc_fill_rtf)(struct ata_queued_cmd *);
int (*cable_detect)(struct ata_port *);
long unsigned int (*mode_filter)(struct ata_device *, long unsigned int);
void (*set_piomode)(struct ata_port *, struct ata_device *);
void (*set_dmamode)(struct ata_port *, struct ata_device *);
int (*set_mode)(struct ata_link *, struct ata_device **);
unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *);
void (*dev_config)(struct ata_device *);
void (*freeze)(struct ata_port *);
void (*thaw)(struct ata_port *);
ata_prereset_fn_t prereset;
ata_reset_fn_t softreset;
ata_reset_fn_t hardreset;
ata_postreset_fn_t postreset;
ata_prereset_fn_t pmp_prereset;
ata_reset_fn_t pmp_softreset;
ata_reset_fn_t pmp_hardreset;
ata_postreset_fn_t pmp_postreset;
void (*error_handler)(struct ata_port *);
void (*lost_interrupt)(struct ata_port *);
void (*post_internal_cmd)(struct ata_queued_cmd *);
void (*sched_eh)(struct ata_port *);
void (*end_eh)(struct ata_port *);
int (*scr_read)(struct ata_link *, unsigned int, u32 *);
int (*scr_write)(struct ata_link *, unsigned int, u32);
void (*pmp_attach)(struct ata_port *);
void (*pmp_detach)(struct ata_port *);
int (*set_lpm)(struct ata_link *, enum ata_lpm_policy, unsigned int);
int (*port_suspend)(struct ata_port *, pm_message_t);
int (*port_resume)(struct ata_port *);
int (*port_start)(struct ata_port *);
void (*port_stop)(struct ata_port *);
void (*host_stop)(struct ata_host *);
void (*sff_dev_select)(struct ata_port *, unsigned int);
void (*sff_set_devctl)(struct ata_port *, u8);
u8 (*sff_check_status)(struct ata_port *);
u8 (*sff_check_altstatus)(struct ata_port *);
void (*sff_tf_load)(struct ata_port *, const struct ata_taskfile *);
void (*sff_tf_read)(struct ata_port *, struct ata_taskfile *);
void (*sff_exec_command)(struct ata_port *, const struct ata_taskfile *);
unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int);
void (*sff_irq_on)(struct ata_port *);
bool (*sff_irq_check)(struct ata_port *);
void (*sff_irq_clear)(struct ata_port *);
void (*sff_drain_fifo)(struct ata_queued_cmd *);
void (*bmdma_setup)(struct ata_queued_cmd *);
void (*bmdma_start)(struct ata_queued_cmd *);
void (*bmdma_stop)(struct ata_queued_cmd *);
u8 (*bmdma_status)(struct ata_port *);
ssize_t (*em_show)(struct ata_port *, char *);
ssize_t (*em_store)(struct ata_port *, const char *, size_t);
ssize_t (*sw_activity_show)(struct ata_device *, char *);
ssize_t (*sw_activity_store)(struct ata_device *, enum sw_activity);
ssize_t (*transmit_led_message)(struct ata_port *, u32, ssize_t);
void (*phy_reset)(struct ata_port *);
void (*eng_timeout)(struct ata_port *);
const struct ata_port_operations *inherits;
};
Regular
4.4 and 4.8 ✅
4.8 and 4.10 ✅
4.10 and 4.13 ⚠️unsigned int (*sff_data_xfer)(struct ata_device *, unsigned char *, unsigned int, int) ➡️ unsigned int (*sff_data_xfer)(struct ata_queued_cmd *, unsigned char *, unsigned int, int)
4.13 and 4.15 ✅
4.15 and 4.18 ✅
4.18 and 5.0 ✅
5.0 and 5.3 ✅
5.3 and 5.4 ✅
5.4 and 5.8 ⚠️void (*qc_prep)(struct ata_queued_cmd *) ➡️ enum ata_completion_errors (*qc_prep)(struct ata_queued_cmd *)
5.8 and 5.11 ✅
5.11 and 5.13 ✅
5.13 and 5.15 ✅
5.15 and 5.19 ⚠️unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, u16 *) ➡️ unsigned int (*read_id)(struct ata_device *, struct ata_taskfile *, __le16 *)
5.19 and 6.2 ⚠️long unsigned int (*mode_filter)(struct ata_device *, long unsigned int) ➡️ unsigned int (*mode_filter)(struct ata_device *, unsigned int)
6.2 and 6.5 ⚠️void (*qc_ncq_fill_rtf)(struct ata_port *, u64)
bool (*qc_fill_rtf)(struct ata_queued_cmd *) ➡️ void (*qc_fill_rtf)(struct ata_queued_cmd *)
6.5 and 6.8 ⚠️void (*phy_reset)(struct ata_port *)
void (*eng_timeout)(struct ata_port *)
amd64 and arm64 ✅
amd64 and armhf ✅
amd64 and ppc64el ✅
amd64 and riscv64 ✅
generic and aws ✅
generic and azure ✅
generic and gcp ✅
generic and lowlatency ✅