pci.c (b87dcdd0746dc110fa5a3353cbc257818e618930) pci.c (a71754e5b03fd3b8b8c6d3bc2a39f75bead729de)
1/*
2 * QEMU IDE Emulation: PCI Bus support.
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 221 unchanged lines hidden (view full) ---

230 } else if (error_status & IDE_RETRY_PIO) {
231 if (is_read) {
232 ide_sector_read(bmdma_active_if(bm));
233 } else {
234 ide_sector_write(bmdma_active_if(bm));
235 }
236 } else if (error_status & IDE_RETRY_FLUSH) {
237 ide_flush_cache(bmdma_active_if(bm));
1/*
2 * QEMU IDE Emulation: PCI Bus support.
3 *
4 * Copyright (c) 2003 Fabrice Bellard
5 * Copyright (c) 2006 Openedhand Ltd.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 221 unchanged lines hidden (view full) ---

230 } else if (error_status & IDE_RETRY_PIO) {
231 if (is_read) {
232 ide_sector_read(bmdma_active_if(bm));
233 } else {
234 ide_sector_write(bmdma_active_if(bm));
235 }
236 } else if (error_status & IDE_RETRY_FLUSH) {
237 ide_flush_cache(bmdma_active_if(bm));
238 } else {
239 IDEState *s = bmdma_active_if(bm);
240
241 /*
242 * We've not got any bits to tell us about ATAPI - but
243 * we do have the end_transfer_func that tells us what
244 * we're trying to do.
245 */
246 if (s->end_transfer_func == ide_atapi_cmd) {
247 ide_atapi_dma_restart(s);
248 }
238 }
239}
240
241static void bmdma_restart_cb(void *opaque, int running, RunState state)
242{
243 IDEDMA *dma = opaque;
244 BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma);
245

--- 304 unchanged lines hidden ---
249 }
250}
251
252static void bmdma_restart_cb(void *opaque, int running, RunState state)
253{
254 IDEDMA *dma = opaque;
255 BMDMAState *bm = DO_UPCAST(BMDMAState, dma, dma);
256

--- 304 unchanged lines hidden ---