Revision e0e8384d hw/ide/qdev.c
b/hw/ide/qdev.c | ||
---|---|---|
31 | 31 |
.name = "IDE", |
32 | 32 |
.size = sizeof(IDEBus), |
33 | 33 |
.get_fw_dev_path = idebus_get_fw_dev_path, |
34 |
.props = (Property[]) { |
|
35 |
DEFINE_PROP_UINT32("unit", IDEDevice, unit, -1), |
|
36 |
DEFINE_PROP_END_OF_LIST(), |
|
37 |
}, |
|
34 | 38 |
}; |
35 | 39 |
|
36 | 40 |
void ide_bus_new(IDEBus *idebus, DeviceState *dev, int bus_id) |
... | ... | |
174 | 178 |
} |
175 | 179 |
|
176 | 180 |
#define DEFINE_IDE_DEV_PROPERTIES() \ |
177 |
DEFINE_PROP_UINT32("unit", IDEDrive, dev.unit, -1), \ |
|
178 | 181 |
DEFINE_BLOCK_PROPERTIES(IDEDrive, dev.conf), \ |
179 | 182 |
DEFINE_PROP_STRING("ver", IDEDrive, dev.version), \ |
180 | 183 |
DEFINE_PROP_STRING("serial", IDEDrive, dev.serial) |
Also available in: Unified diff