Revision c0897e0c hw/ide/qdev.c

b/hw/ide/qdev.c
88 88
    return DO_UPCAST(IDEDevice, qdev, dev);
89 89
}
90 90

  
91
void ide_get_bs(BlockDriverState *bs[], BusState *qbus)
92
{
93
    IDEBus *bus = DO_UPCAST(IDEBus, qbus, qbus);
94
    bs[0] = bus->master ? bus->master->conf.bs : NULL;
95
    bs[1] = bus->slave  ? bus->slave->conf.bs  : NULL;
96
}
97

  
91 98
/* --------------------------------- */
92 99

  
93 100
typedef struct IDEDrive {

Also available in: Unified diff