Browse Source

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>
remotes/github/stable-0.14
Blue Swirl 16 years ago
parent
commit
2446333cd5
  1. 10
      blockdev.h
  2. 1
      hw/device-hotplug.c
  3. 1
      hw/etraxfs.c
  4. 1
      hw/fdc.c
  5. 1
      hw/fdc.h
  6. 1
      hw/gumstix.c
  7. 1
      hw/ide/core.c
  8. 1
      hw/ide/qdev.c
  9. 1
      hw/mainstone.c
  10. 1
      hw/mips_fulong2e.c
  11. 1
      hw/mips_jazz.c
  12. 1
      hw/mips_malta.c
  13. 1
      hw/mips_r4k.c
  14. 1
      hw/musicpal.c
  15. 1
      hw/omap1.c
  16. 1
      hw/omap_sx1.c
  17. 1
      hw/pc.c
  18. 1
      hw/pc_piix.c
  19. 1
      hw/pci-hotplug.c
  20. 1
      hw/pcmcia.h
  21. 1
      hw/petalogix_s3adsp1800_mmu.c
  22. 1
      hw/ppc405_boards.c
  23. 1
      hw/ppc_newworld.c
  24. 1
      hw/ppc_oldworld.c
  25. 1
      hw/ppc_prep.c
  26. 1
      hw/pxa2xx.c
  27. 1
      hw/qdev-properties.c
  28. 1
      hw/qdev.c
  29. 1
      hw/qdev.h
  30. 1
      hw/r2d.c
  31. 1
      hw/realview.c
  32. 1
      hw/scsi-bus.c
  33. 1
      hw/scsi-disk.c
  34. 1
      hw/scsi-generic.c
  35. 1
      hw/spitz.c
  36. 1
      hw/sun4m.c
  37. 1
      hw/sun4u.c
  38. 1
      hw/tosa.c
  39. 1
      hw/usb-msd.c
  40. 1
      hw/versatilepb.c
  41. 1
      hw/virtio-blk.c
  42. 1
      hw/virtio-pci.c
  43. 2
      hw/xen_backend.h
  44. 2
      hw/xen_devconfig.c
  45. 1
      hw/xen_disk.c
  46. 1
      hw/xen_machine_pv.c
  47. 7
      qemu-common.h

10
blockdev.h

@ -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
hw/device-hotplug.c

@ -25,6 +25,7 @@
#include "hw.h"
#include "boards.h"
#include "net.h"
#include "blockdev.h"
DriveInfo *add_init_drive(const char *optstr)
{

1
hw/etraxfs.c

@ -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
hw/fdc.c

@ -34,6 +34,7 @@
#include "isa.h"
#include "sysbus.h"
#include "qdev-addr.h"
#include "blockdev.h"
/********************************************************/
/* debug Floppy devices */

1
hw/fdc.h

@ -2,7 +2,6 @@
#define HW_FDC_H
/* fdc.c */
#include "blockdev.h"
#define MAX_FD 2
typedef struct FDCtrl FDCtrl;

1
hw/gumstix.c

@ -38,6 +38,7 @@
#include "sysemu.h"
#include "devices.h"
#include "boards.h"
#include "blockdev.h"
static const int sector_len = 128 * 1024;

1
hw/ide/core.c

@ -30,6 +30,7 @@
#include "qemu-timer.h"
#include "sysemu.h"
#include "dma.h"
#include "blockdev.h"
#include <hw/ide/internal.h>

1
hw/ide/qdev.c

@ -20,6 +20,7 @@
#include "dma.h"
#include "qemu-error.h"
#include <hw/ide/internal.h>
#include "blockdev.h"
/* --------------------------------- */

1
hw/mainstone.c

@ -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
hw/mips_fulong2e.c

@ -37,6 +37,7 @@
#include "elf.h"
#include "vt82c686.h"
#include "mc146818rtc.h"
#include "blockdev.h"
#define DEBUG_FULONG2E_INIT

1
hw/mips_jazz.c

@ -36,6 +36,7 @@
#include "mips-bios.h"
#include "loader.h"
#include "mc146818rtc.h"
#include "blockdev.h"
enum jazz_model_e
{

1
hw/mips_malta.c

@ -45,6 +45,7 @@
#include "loader.h"
#include "elf.h"
#include "mc146818rtc.h"
#include "blockdev.h"
//#define DEBUG_BOARD_INIT

1
hw/mips_r4k.c

@ -22,6 +22,7 @@
#include "loader.h"
#include "elf.h"
#include "mc146818rtc.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2

1
hw/musicpal.c

@ -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
hw/omap1.c

@ -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
hw/omap_sx1.c

@ -32,6 +32,7 @@
#include "boards.h"
#include "arm-misc.h"
#include "flash.h"
#include "blockdev.h"
/*****************************************************************************/
/* Siemens SX1 Cellphone V1 */

1
hw/pc.c

@ -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
hw/pc_piix.c

@ -34,6 +34,7 @@
#include "kvm.h"
#include "sysemu.h"
#include "sysbus.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2

1
hw/pci-hotplug.c

@ -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
hw/pcmcia.h

@ -1,7 +1,6 @@
/* PCMCIA/Cardbus */
#include "qemu-common.h"
#include "blockdev.h"
typedef struct {
qemu_irq irq;

1
hw/petalogix_s3adsp1800_mmu.c

@ -34,6 +34,7 @@
#include "xilinx.h"
#include "loader.h"
#include "elf.h"
#include "blockdev.h"
#define LMB_BRAM_SIZE (128 * 1024)
#define FLASH_SIZE (16 * 1024 * 1024)

1
hw/ppc405_boards.c

@ -31,6 +31,7 @@
#include "boards.h"
#include "qemu-log.h"
#include "loader.h"
#include "blockdev.h"
#define BIOS_FILENAME "ppc405_rom.bin"
#define BIOS_SIZE (2048 * 1024)

1
hw/ppc_newworld.c

@ -66,6 +66,7 @@
#include "kvm.h"
#include "kvm_ppc.h"
#include "hw/usb.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2
#define VGA_BIOS_SIZE 65536

1
hw/ppc_oldworld.c

@ -41,6 +41,7 @@
#include "elf.h"
#include "kvm.h"
#include "kvm_ppc.h"
#include "blockdev.h"
#define MAX_IDE_BUS 2
#define VGA_BIOS_SIZE 65536

1
hw/ppc_prep.c

@ -37,6 +37,7 @@
#include "ide.h"
#include "loader.h"
#include "mc146818rtc.h"
#include "blockdev.h"
//#define HARD_DEBUG_PPC_IO
//#define DEBUG_PPC_IO

1
hw/pxa2xx.c

@ -15,6 +15,7 @@
#include "ssi.h"
#include "qemu-timer.h"
#include "qemu-char.h"
#include "blockdev.h"
static struct {
target_phys_addr_t io_base;

1
hw/qdev-properties.c

@ -1,6 +1,7 @@
#include "net.h"
#include "qdev.h"
#include "qerror.h"
#include "blockdev.h"
void *qdev_get_prop_ptr(DeviceState *dev, Property *prop)
{

1
hw/qdev.c

@ -29,6 +29,7 @@
#include "qdev.h"
#include "sysemu.h"
#include "monitor.h"
#include "blockdev.h"
static int qdev_hotplug = 0;

1
hw/qdev.h

@ -2,7 +2,6 @@
#define QDEV_H
#include "hw.h"
#include "blockdev.h"
#include "qemu-queue.h"
#include "qemu-char.h"
#include "qemu-option.h"

1
hw/r2d.c

@ -36,6 +36,7 @@
#include "loader.h"
#include "usb.h"
#include "flash.h"
#include "blockdev.h"
#define FLASH_BASE 0x00000000
#define FLASH_SIZE 0x02000000

1
hw/realview.c

@ -18,6 +18,7 @@
#include "boards.h"
#include "bitbang_i2c.h"
#include "sysbus.h"
#include "blockdev.h"
#define SMP_BOOT_ADDR 0xe0000000

1
hw/scsi-bus.c

@ -3,6 +3,7 @@
#include "scsi.h"
#include "scsi-defs.h"
#include "qdev.h"
#include "blockdev.h"
static struct BusInfo scsi_bus_info = {
.name = "SCSI",

1
hw/scsi-disk.c

@ -36,6 +36,7 @@ do { fprintf(stderr, "scsi-disk: " fmt , ## __VA_ARGS__); } while (0)
#include "scsi.h"
#include "scsi-defs.h"
#include "sysemu.h"
#include "blockdev.h"
#define SCSI_DMA_BUF_SIZE 131072
#define SCSI_MAX_INQUIRY_LEN 256

1
hw/scsi-generic.c

@ -14,6 +14,7 @@
#include "qemu-common.h"
#include "qemu-error.h"
#include "scsi.h"
#include "blockdev.h"
#ifdef __linux__

1
hw/spitz.c

@ -22,6 +22,7 @@
#include "block.h"
#include "audio/audio.h"
#include "boards.h"
#include "blockdev.h"
#undef REG_FMT
#define REG_FMT "0x%02lx"

1
hw/sun4m.c

@ -40,6 +40,7 @@
#include "qdev-addr.h"
#include "loader.h"
#include "elf.h"
#include "blockdev.h"
//#define DEBUG_IRQ

1
hw/sun4u.c

@ -37,6 +37,7 @@
#include "ide.h"
#include "loader.h"
#include "elf.h"
#include "blockdev.h"
//#define DEBUG_IRQ
//#define DEBUG_EBUS

1
hw/tosa.c

@ -19,6 +19,7 @@
#include "boards.h"
#include "i2c.h"
#include "ssi.h"
#include "blockdev.h"
#define TOSA_RAM 0x04000000
#define TOSA_ROM 0x00800000

1
hw/usb-msd.c

@ -15,6 +15,7 @@
#include "console.h"
#include "monitor.h"
#include "sysemu.h"
#include "blockdev.h"
//#define DEBUG_MSD

1
hw/versatilepb.c

@ -16,6 +16,7 @@
#include "pci.h"
#include "usb-ohci.h"
#include "boards.h"
#include "blockdev.h"
/* Primary interrupt controller. */

1
hw/virtio-blk.c

@ -13,6 +13,7 @@
#include <qemu-common.h>
#include "qemu-error.h"
#include "blockdev.h"
#include "virtio-blk.h"
#ifdef __linux__
# include <scsi/sg.h>

1
hw/virtio-pci.c

@ -24,6 +24,7 @@
#include "net.h"
#include "loader.h"
#include "kvm.h"
#include "blockdev.h"
/* from Linux's linux/virtio_pci.h */

2
hw/xen_backend.h

@ -4,8 +4,6 @@
#include "xen_common.h"
#include "sysemu.h"
#include "net.h"
#include "block_int.h"
#include "blockdev.h"
/* ------------------------------------------------------------- */

2
hw/xen_devconfig.c

@ -1,4 +1,6 @@
#include "xen_backend.h"
#include "blockdev.h"
#include "block_int.h" /* XXX */
/* ------------------------------------------------------------- */

1
hw/xen_disk.c

@ -41,6 +41,7 @@
#include "qemu-char.h"
#include "xen_blkif.h"
#include "xen_backend.h"
#include "blockdev.h"
/* ------------------------------------------------------------- */

1
hw/xen_machine_pv.c

@ -28,6 +28,7 @@
#include "boards.h"
#include "xen_backend.h"
#include "xen_domainbuild.h"
#include "blockdev.h"
static void xen_init_pv(ram_addr_t ram_size,
const char *boot_device,

7
qemu-common.h

@ -201,6 +201,7 @@ typedef struct NICInfo NICInfo;
typedef struct HCIInfo HCIInfo;
typedef struct AudioState AudioState;
typedef struct BlockDriverState BlockDriverState;
typedef struct DriveInfo DriveInfo;
typedef struct DisplayState DisplayState;
typedef struct DisplayChangeListener DisplayChangeListener;
typedef struct DisplaySurface DisplaySurface;
@ -231,6 +232,12 @@ typedef struct VirtIODevice VirtIODevice;
typedef uint64_t pcibus_t;
typedef enum {
IF_NONE,
IF_IDE, IF_SCSI, IF_FLOPPY, IF_PFLASH, IF_MTD, IF_SD, IF_VIRTIO, IF_XEN,
IF_COUNT
} BlockInterfaceType;
void cpu_exec_init_all(unsigned long tb_size);
/* CPU save/load. */

Loading…
Cancel
Save