mirror of https://gitee.com/openkylin/qemu.git
hw/pcmcia: Remove PCMCIACardState from "qemu/typedefs.h"
There is only one header file requiring this typedef (hw/arm/pxa.h), let it include "hw/pcmcia.h" directly to simplify "qemu/typedefs.h". To clean "qemu/typedefs.h", move the declaration to "hw/pcmcia.h" (removing the forward declaration). Signed-off-by: Philippe Mathieu-Daudé <f4bug@amsat.org> [thuth: slightly tweaked commit message] Signed-off-by: Thomas Huth <thuth@redhat.com>
This commit is contained in:
parent
fa9414e969
commit
2274e7ddd1
|
@ -12,6 +12,7 @@
|
|||
|
||||
#include "exec/memory.h"
|
||||
#include "target/arm/cpu-qom.h"
|
||||
#include "hw/pcmcia.h"
|
||||
|
||||
/* Interrupt numbers */
|
||||
# define PXA2XX_PIC_SSP3 0
|
||||
|
|
|
@ -18,13 +18,13 @@ typedef struct PCMCIASocket {
|
|||
#define PCMCIA_CARD_CLASS(cls) \
|
||||
OBJECT_CLASS_CHECK(PCMCIACardClass, cls, TYPE_PCMCIA_CARD)
|
||||
|
||||
struct PCMCIACardState {
|
||||
typedef struct PCMCIACardState {
|
||||
/*< private >*/
|
||||
DeviceState parent_obj;
|
||||
/*< public >*/
|
||||
|
||||
PCMCIASocket *slot;
|
||||
};
|
||||
} PCMCIACardState;
|
||||
|
||||
typedef struct PCMCIACardClass {
|
||||
/*< private >*/
|
||||
|
|
|
@ -78,7 +78,6 @@ typedef struct PCIHostDeviceAddress PCIHostDeviceAddress;
|
|||
typedef struct PCIHostState PCIHostState;
|
||||
typedef struct PCMachineClass PCMachineClass;
|
||||
typedef struct PCMachineState PCMachineState;
|
||||
typedef struct PCMCIACardState PCMCIACardState;
|
||||
typedef struct PixelFormat PixelFormat;
|
||||
typedef struct PostcopyDiscardState PostcopyDiscardState;
|
||||
typedef struct Property Property;
|
||||
|
|
Loading…
Reference in New Issue