Please pull the following changeset that makes PCMCIA subsystem to use QBus and Qdev for managing devices. Currently the only implementation of PCMCIA host is a PXA2xx host and the only possible PCMCIA device is IDE MicroDrive (dscm1xxxx).
With this patchset I can create a microdrive device from command line: -device dscm1xxxx -device ide-drive,drive=test -drive if=none,id=test,file=/dev/null Dmitry Eremin-Solenikov (7): pxa2xx_pcmcia: qdevify PCMCIA: start qdev'ication microdrive: qdevify pcmcia: move all card callbacks to PCMCIACardInfo pcmcia: move attach and detach socket methods to PCMCIASocket pxa: change order of pcmcia devices instantiation, so that the socket 0 will be default ide-core: allocate metadata storage for CFATA drives Makefile.objs | 3 + hw/ide/core.c | 4 ++ hw/ide/internal.h | 2 + hw/ide/microdrive.c | 88 +++++++++++++++++++----------- hw/mainstone.c | 14 +++-- hw/pcmcia.c | 145 +++++++++++++++++++++++++++++++++++++++++++++++++ hw/pcmcia.h | 49 ++++++++++++----- hw/pxa.h | 9 +--- hw/pxa2xx.c | 9 ++-- hw/pxa2xx_pcmcia.c | 148 ++++++++++++++++++++++++++++++--------------------- hw/spitz.c | 26 ++++++---- hw/tosa.c | 18 ++++--- vl.c | 43 --------------- 13 files changed, 372 insertions(+), 186 deletions(-) create mode 100644 hw/pcmcia.c