ata_exec_internal — execute libata internal command
unsigned ata_exec_internal
(struct ata_device * dev, struct ata_taskfile * tf, const u8 * cdb, int dma_dir, void * buf, unsigned int buflen, unsigned long timeout);
Device to which the command is sent
Taskfile registers for the command and the result
CDB for packet command
Data tranfer direction of the command
Data buffer of the command
Length of data buffer
Timeout in msecs (0 for default)
Wrapper around ata_exec_internal_sg which takes simple buffer instead of sg list.
None. Should be called with kernel context, might sleep.
Zero on success, AC_ERR_* mask on failure