USBAT_ATA
result = usbat_hp8200e_rw_block_test(us, USBAT_ATA,
result = usbat_hp8200e_rw_block_test(us, USBAT_ATA,
if (usbat_write(us, USBAT_ATA, USBAT_ATA_DEVICE, selector) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_STATUS, status) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_DEVICE, status) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_HI, status) !=
if (usbat_write(us, USBAT_ATA, USBAT_ATA_LBA_ME, 0x55) !=
if (usbat_write(us, USBAT_ATA, USBAT_ATA_LBA_HI, 0xAA) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
result = usbat_hp8200e_rw_block_test(us, USBAT_ATA,
result = usbat_write_block(us, USBAT_ATA, srb->cmnd, 12,
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_ME, status) !=
if (usbat_read(us, USBAT_ATA, USBAT_ATA_LBA_HI, status) !=
rc = usbat_read(us, USBAT_ATA, USBAT_ATA_STATUS, status);
result = usbat_read(us, USBAT_ATA, 0x10, status);
command[1] = USBAT_ATA | USBAT_CMD_READ_BLOCK;
result = usbat_read(us, USBAT_ATA,
command[1] = USBAT_ATA | USBAT_CMD_WRITE_REGS;
command[1] = USBAT_ATA | USBAT_CMD_COND_READ_BLOCK;
command[1] = USBAT_ATA | USBAT_CMD_COND_WRITE_BLOCK;
rc = usbat_write(us, USBAT_ATA, USBAT_ATA_CMD, 0xA1);