Revision 8aef291f
b/hw/ide/macio.c | ||
---|---|---|
55 | 55 |
s->packet_transfer_size -= s->io_buffer_size; |
56 | 56 |
|
57 | 57 |
s->io_buffer_index += s->io_buffer_size; |
58 |
s->lba += s->io_buffer_index >> 11;
|
|
58 |
s->lba += s->io_buffer_index >> 11;
|
|
59 | 59 |
s->io_buffer_index &= 0x7ff; |
60 | 60 |
} |
61 | 61 |
|
... | ... | |
97 | 97 |
if (ret < 0) { |
98 | 98 |
m->aiocb = NULL; |
99 | 99 |
qemu_sglist_destroy(&s->sg); |
100 |
ide_dma_error(s);
|
|
100 |
ide_dma_error(s);
|
|
101 | 101 |
goto done; |
102 | 102 |
} |
103 | 103 |
|
... | ... | |
136 | 136 |
switch (s->dma_cmd) { |
137 | 137 |
case IDE_DMA_READ: |
138 | 138 |
m->aiocb = dma_bdrv_read(s->bs, &s->sg, sector_num, |
139 |
pmac_ide_transfer_cb, io);
|
|
139 |
pmac_ide_transfer_cb, io);
|
|
140 | 140 |
break; |
141 | 141 |
case IDE_DMA_WRITE: |
142 | 142 |
m->aiocb = dma_bdrv_write(s->bs, &s->sg, sector_num, |
143 |
pmac_ide_transfer_cb, io);
|
|
143 |
pmac_ide_transfer_cb, io);
|
|
144 | 144 |
break; |
145 | 145 |
case IDE_DMA_TRIM: |
146 | 146 |
m->aiocb = dma_bdrv_io(s->bs, &s->sg, sector_num, |
Also available in: Unified diff