Skip to contentSkip to conversation

Block patches

GIT PULL New Kevin Wolf 1 participant 2 messages Apr 27, 2011 Kbuild

lore
Share & tools
lore

Kevin Wolf

author
#0 lore raw

configure: reenable opengl by default (2011-04-26 23:26:49 +0200)

are available in the git repository at:
git://repo.or.cz/qemu/kevin.git for-anthony

Amit Shah (1):
atapi: Add 'medium ready' to 'medium not ready' transition on cd change

Anthony Liguori (1):
qemu-img: allow rebase to a NULL backing file when unsafe

Avishay Traeger (1):
Improve accuracy of block migration bandwidth calculation

Jes Sorensen (2):
Add dd-style SIGUSR1 progress reporting Remove obsolete 'enabled' variable from progress state

Kevin Wolf (5):
ide: Split atapi.c out
ide/atapi: Factor commands out
ide/atapi: Use table instead of switch for commands ide/atapi: Replace bdrv_get_geometry calls by s->nb_sectors ide/atapi: Introduce CHECK_READY flag for commands

Stefan Hajnoczi (1):
qed: Fix consistency check on 32-bit hosts

 Makefile.objs     |    2 +-
 block-migration.c |   23 +-
 block/qed-check.c |    4 +-
 block/qed.h       |    2 +-
 hw/ide/atapi.c    | 1134 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/core.c     | 1067 +-------------------------------------------------
 hw/ide/internal.h |   10 +
 qemu-img.c        |    2 +-
 qemu-progress.c   |   61 +++-
 9 files changed, 1221 insertions(+), 1084 deletions(-)
 create mode 100644 hw/ide/atapi.c
author
#1 lore raw

PATCH v2 4/11 ide: Split atapi.c out

Besides moving code, this patch only fixes some whitespace issues in the moved code and makes all functions in atapi.c static which can be static.

---

v2:
- Build fix (v1 actually made too many functions static...)

 Makefile.objs     |    2 +-
 hw/ide/atapi.c    | 1083 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 hw/ide/core.c     | 1065 +---------------------------------------------------
 hw/ide/internal.h |   10 +
 4 files changed, 1098 insertions(+), 1062 deletions(-)
 create mode 100644 hw/ide/atapi.c
Makefile.objs +1 -1
index 44ce368..1b44695 100644
@@ -242,7 +242,7 @@ hw-obj-$(CONFIG_LAN9118) += lan9118.o
 hw-obj-$(CONFIG_NE2000_ISA) += ne2000-isa.o
 
 # IDE
-hw-obj-$(CONFIG_IDE_CORE) += ide/core.o
+hw-obj-$(CONFIG_IDE_CORE) += ide/core.o ide/atapi.o
 hw-obj-$(CONFIG_IDE_QDEV) += ide/qdev.o
 hw-obj-$(CONFIG_IDE_PCI) += ide/pci.o
 hw-obj-$(CONFIG_IDE_ISA) += ide/isa.o
hw/ide/atapi.c new file +1083 -0

1,083 lines not on this page · raw message

hw/ide/core.c +4 -1061

1,113 lines not on this page · raw message

hw/ide/internal.h +10 -0
index ba7e9a8..aa198b6 100644
@@ -9,6 +9,7 @@
 #include <hw/ide.h>
 #include "block_int.h"
 #include "iorange.h"
+#include "dma.h"
 
 /* debug IDE devices */
 //#define DEBUG_IDE
@@ -570,6 +571,15 @@ void ide_sector_write(IDEState *s);
 void ide_sector_read(IDEState *s);
 void ide_flush_cache(IDEState *s);
 
+void ide_transfer_start(IDEState *s, uint8_t *buf, int size,
+                        EndTransferFunc *end_transfer_func);
+void ide_transfer_stop(IDEState *s);
+void ide_set_inactive(IDEState *s);
+
+/* hw/ide/atapi.c */
+void ide_atapi_cmd(IDEState *s);
+void ide_atapi_cmd_reply_end(IDEState *s);
+
 /* hw/ide/qdev.c */
 void ide_bus_new(IDEBus *idebus, DeviceState *dev, int bus_id);
 IDEDevice *ide_create_drive(IDEBus *bus, int unit, DriveInfo *drive);
Signature · 1 line
1.7.2.3