atp_readb_io
while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0x00)
k = atp_readb_io(dev, 0, 0x17);
while ((atp_readb_io(dev, 0, 0x1c) & 0x04) != 0)
if ((atp_readb_io(dev, 0, 0x1c) & 0x80) != 0) /* bsy ? */
if ((atp_readb_io(dev, 0, 0x1c) & 0x81) == 0x0081) {
if ((atp_readb_io(dev, 0, 0x1c) & 0x80) == 0x00) { /* bsy ? */
while ((atp_readb_io(dev, 0, 0x1f) & 0x80) == 0)
atp_readb_io(dev, 0, 0x17);
while ((atp_readb_io(atp, c, 0x1f) & 0x80) == 0)
atp_readb_io(atp, c, 0x17);
j = atp_readb_io(dev, c, 0x1f);
atp_readb_io(atpdev, 0, 0x1b);
atp_readb_io(atpdev, 0, 0x17);
cmdp = atp_readb_io(dev, c, 0x10);
if ((atp_readb_io(dev, c, 0x16) & 0x80) == 0)
(atp_readb_io(dev, c, 0x16) | 0x80));
atp_readb_io(atpdev, 0, 0x1b);
atp_readb_io(atpdev, 0, 0x17);
atp_readb_io(atpdev, 1, 0x1b);
atp_readb_io(atpdev, 1, 0x17);
atp_is(atpdev, 0, true, atp_readb_io(atpdev, 0, 0x1b) >> 7);
atp_is(atpdev, 1, true, atp_readb_io(atpdev, 1, 0x1b) >> 7);
i = atp_readb_io(dev, c, 0x17);
printk(" r%2x=%2x", j, atp_readb_io(dev, c, j));
printk(" r1c=%2x", atp_readb_io(dev, c, 0x1c));
printk(" r1f=%2x in_snd=%2x ", atp_readb_io(dev, c, 0x1f), dev->in_snd[c]);
target_id = atp_readb_io(dev, c, 0x15);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
while (atp_readb_io(dev, c, 0x17) != 0x8e)
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
while (atp_readb_io(dev, c, 0x17) != 0x8e)
k = atp_readb_io(dev, c, 0x1f);
mbuf[j++] = atp_readb_io(dev, c, 0x19);
j = atp_readb_io(dev, c, 0x17);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x16)
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x11 && atp_readb_io(dev, c, 0x17) != 0x8e)
while (atp_readb_io(dev, c, 0x17) != 0x8e)
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17) & 0x0f;
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
atp_readb_io(dev, c, 0x12);
j = atp_readb_io(dev, c, 0x17) & 0x0f;
j = atp_readb_io(dev, c, 0x1f);
atp_readb_io(dev, c, 0x13);
mbuf[k++] = atp_readb_io(dev, c, 0x19);
j = atp_readb_io(dev, c, 0x17) & 0x0f;
atp_readb_io(dev, c, 0x14);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00);
j = atp_readb_io(dev, c, 0x17);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x11 &&
atp_readb_io(dev, c, 0x17) != 0x8e)
while (atp_readb_io(dev, c, 0x17) != 0x8e)
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17) & 0x0f;
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0)
j = atp_readb_io(dev, c, 0x17) & 0x0f;
j = atp_readb_io(dev, c, 0x1f);
mbuf[k++] = atp_readb_io(dev, c, 0x19);
j = atp_readb_io(dev, c, 0x17) & 0x0f;
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
if (atp_readb_io(dev, c, 0x17) != 0x11 &&
atp_readb_io(dev, c, 0x17) != 0x8e)
while (atp_readb_io(dev, c, 0x17) != 0x8e)
while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01)
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0) {
while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17) & 0x0f;
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00) {
if ((atp_readb_io(dev, c, 0x1f) & 0x01) != 0x00)
j = atp_readb_io(dev, c, 0x17);
j = atp_readb_io(dev, c, 0x1f);
mbuf[k++] = atp_readb_io(dev, c, 0x19);
while ((atp_readb_io(dev, c, 0x17) & 0x80) == 0x00);
j = atp_readb_io(dev, c, 0x17);
while ((atp_readb_io(dev, c, 0x1f) & 0x80) == 0x00)
j = atp_readb_io(dev, c, 0x17);
atp_readb_io(dev, c, 0x12);
atp_readb_io(dev, c, 0x13);
atp_readb_io(dev, c, 0x14);
lun = atp_readb_io(dev, c, 0x1d) & 0x07;
atp_readb_io(dev, c, 0x12);
atp_readb_io(dev, c, 0x13);
atp_readb_io(dev, c, 0x14);
target_id = atp_readb_io(dev, c, 0x16);
atp_readb_io(dev, c, 0x14),
atp_readb_io(dev, c, 0x13),
atp_readb_io(dev, c, 0x12));
while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j)
workreq->result = atp_readb_io(dev, c, 0x0f);
while ((atp_readb_io(dev, c, 0x1b) & 0x01) != 0x01)
atp_readb_io(dev, c, 0x15) | 0x20);
dev->ioport[c], atp_readb_io(dev, c, 0x1c), c,
if ((atp_readb_io(dev, c, 0x1c) == 0) &&
if ((atp_readb_io(dev, c, 0x1f) & 0xb0) != 0 ||
atp_readb_io(dev, c, 0x1c) != 0) {
while ((atp_readb_io(dev, c, 0x1b) & 0x01) != j) {
atp_writeb_io(dev, c, 0x16, atp_readb_io(dev, c, 0x16) | 0x80);
if (atp_readb_io(dev, c, 0x1c) == 0) {
if (atp_readb_io(dev, c, 0x1c) == 0) {
if (atp_readb_io(dev, c, 0x1c) == 0) {