Rearrange block headers

Changing block.h or blockdev.h resulted in recompiling most objects.

Move DriveInfo typedef and BlockInterfaceType enum definitions
to qemu-common.h and rearrange blockdev.h use to decrease churn.

Signed-off-by: Blue Swirl <blauwirbel@gmail.com>
This commit is contained in:
Blue Swirl
2010-08-24 15:22:24 +00:00
parent e945fb7627
commit 2446333cd5
47 changed files with 51 additions and 13 deletions
+2 -8
View File
@@ -16,15 +16,9 @@
void blockdev_mark_auto_del(BlockDriverState *bs);
void blockdev_auto_del(BlockDriverState *bs);
typedef enum {
IF_NONE,
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
IF_COUNT
} BlockInterfaceType;
#define BLOCK_SERIAL_STRLEN 20
typedef struct DriveInfo {
struct DriveInfo {
BlockDriverState *bdrv;
char *id;
const char *devaddr;
@@ -35,7 +29,7 @@ typedef struct DriveInfo {
QemuOpts *opts;
char serial[BLOCK_SERIAL_STRLEN + 1];
QTAILQ_ENTRY(DriveInfo) next;
} DriveInfo;
};
#define MAX_IDE_DEVS 2
#define MAX_SCSI_DEVS 7
+1
View File
@@ -25,6 +25,7 @@
#include "hw.h"
#include "boards.h"
#include "net.h"
#include "blockdev.h"
DriveInfo *add_init_drive(const char *optstr)
{
+1
View File
@@ -31,6 +31,7 @@
#include "loader.h"
#include "elf.h"
#include "cris-boot.h"
#include "blockdev.h"
#define FLASH_SIZE 0x2000000
#define INTMEM_SIZE (128 * 1024)
+1
View File
@@ -34,6 +34,7 @@
#include "isa.h"
#include "sysbus.h"
#include "qdev-addr.h"
#include "blockdev.h"
/********************************************************/
/* debug Floppy devices */
-1
View File
@@ -2,7 +2,6 @@
#define HW_FDC_H
/* fdc.c */
#include "blockdev.h"
#define MAX_FD 2
typedef struct FDCtrl FDCtrl;
+1
View File
@@ -38,6 +38,7 @@
#include "sysemu.h"
#include "devices.h"
#include "boards.h"
#include "blockdev.h"
static const int sector_len = 128 * 1024;
+1
View File
@@ -30,6 +30,7 @@
#include "qemu-timer.h"
#include "sysemu.h"
#include "dma.h"
#include "blockdev.h"
#include <hw/ide/internal.h>
+1
View File
@@ -20,6 +20,7 @@
#include "dma.h"
#include "qemu-error.h"
#include <hw/ide/internal.h>
#include "blockdev.h"
/* --------------------------------- */
+1
View File
@@ -17,6 +17,7 @@
#include "mainstone.h"
#include "sysemu.h"
#include "flash.h"
#include "blockdev.h"
static struct keymap map[0xE0] = {
[0 ... 0xDF] = { -1, -1 },
+1
View File
@@ -37,6 +37,7 @@
#include "elf.h"
#include "vt82c686.h"
#include "mc146818rtc.h"
#include "blockdev.h"
#define DEBUG_FULONG2E_INIT
+1
View File
@@ -36,6 +36,7 @@
#include "mips-bios.h"
#include "loader.h"
#include "mc146818rtc.h"
#include "blockdev.h"
enum jazz_model_e
{
+1
View File
@@ -45,6 +45,7 @@
#include "loader.h"
#include "elf.h"
#include "mc146818rtc.h"
#include "blockdev.h"
//#define DEBUG_BOARD_INIT
+1
View File
@@ -22,6 +22,7 @@
#include "loader.h"
#include "elf.h"
#include "mc146818rtc.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2
+1
View File
@@ -18,6 +18,7 @@
#include "flash.h"
#include "console.h"
#include "i2c.h"
#include "blockdev.h"
#define MP_MISC_BASE 0x80002000
#define MP_MISC_SIZE 0x00001000
+1
View File
@@ -25,6 +25,7 @@
#include "soc_dma.h"
/* We use pc-style serial ports. */
#include "pc.h"
#include "blockdev.h"
/* Should signal the TCMI/GPMC */
uint32_t omap_badwidth_read8(void *opaque, target_phys_addr_t addr)
+1
View File
@@ -32,6 +32,7 @@
#include "boards.h"
#include "arm-misc.h"
#include "flash.h"
#include "blockdev.h"
/*****************************************************************************/
/* Siemens SX1 Cellphone V1 */
+1
View File
@@ -39,6 +39,7 @@
#include "msix.h"
#include "sysbus.h"
#include "sysemu.h"
#include "blockdev.h"
/* output Bochs bios info messages */
//#define DEBUG_BIOS
+1
View File
@@ -34,6 +34,7 @@
#include "kvm.h"
#include "sysemu.h"
#include "sysbus.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2
+1
View File
@@ -31,6 +31,7 @@
#include "scsi.h"
#include "virtio-blk.h"
#include "qemu-config.h"
#include "blockdev.h"
#if defined(TARGET_I386)
static PCIDevice *qemu_pci_hot_add_nic(Monitor *mon,
-1
View File
@@ -1,7 +1,6 @@
/* PCMCIA/Cardbus */
#include "qemu-common.h"
#include "blockdev.h"
typedef struct {
qemu_irq irq;

Some files were not shown because too many files have changed in this diff Show More