Revision d03f09cc
b/hw/wdt_i6300esb.c | ||
---|---|---|
198 | 198 |
static void i6300esb_config_write(PCIDevice *dev, uint32_t addr, |
199 | 199 |
uint32_t data, int len) |
200 | 200 |
{ |
201 |
I6300State *d = container_of(dev, I6300State, dev);
|
|
201 |
I6300State *d = DO_UPCAST(I6300State, dev, dev);
|
|
202 | 202 |
int old; |
203 | 203 |
|
204 | 204 |
i6300esb_debug("addr = %x, data = %x, len = %d\n", addr, data, len); |
... | ... | |
226 | 226 |
|
227 | 227 |
static uint32_t i6300esb_config_read(PCIDevice *dev, uint32_t addr, int len) |
228 | 228 |
{ |
229 |
I6300State *d = container_of(dev, I6300State, dev);
|
|
229 |
I6300State *d = DO_UPCAST(I6300State, dev, dev);
|
|
230 | 230 |
uint32_t data; |
231 | 231 |
|
232 | 232 |
i6300esb_debug ("addr = %x, len = %d\n", addr, len); |
... | ... | |
360 | 360 |
i6300esb_mem_writew, |
361 | 361 |
i6300esb_mem_writel, |
362 | 362 |
}; |
363 |
I6300State *d = container_of(dev, I6300State, dev);
|
|
363 |
I6300State *d = DO_UPCAST(I6300State, dev, dev);
|
|
364 | 364 |
int io_mem; |
365 | 365 |
|
366 | 366 |
i6300esb_debug("addr = %x, size = %x, type = %d\n", addr, size, type); |
... | ... | |
415 | 415 |
|
416 | 416 |
static int i6300esb_init(PCIDevice *dev) |
417 | 417 |
{ |
418 |
I6300State *d = container_of(dev, I6300State, dev);
|
|
418 |
I6300State *d = DO_UPCAST(I6300State, dev, dev);
|
|
419 | 419 |
uint8_t *pci_conf; |
420 | 420 |
|
421 | 421 |
d->reboot_enabled = 1; |
Also available in: Unified diff