Revision e22cf21e hw/pc.h
b/hw/pc.h | ||
---|---|---|
17 | 17 |
qemu_irq irq, int baudbase, |
18 | 18 |
CharDriverState *chr, int ioregister, |
19 | 19 |
int be); |
20 |
SerialState *serial_isa_init(int index, CharDriverState *chr); |
|
20 |
static inline bool serial_isa_init(int index, CharDriverState *chr) |
|
21 |
{ |
|
22 |
ISADevice *dev; |
|
23 |
|
|
24 |
dev = isa_create("isa-serial"); |
|
25 |
qdev_prop_set_uint32(&dev->qdev, "index", index); |
|
26 |
qdev_prop_set_chr(&dev->qdev, "chardev", chr); |
|
27 |
if (qdev_init(&dev->qdev) < 0) { |
|
28 |
return false; |
|
29 |
} |
|
30 |
return true; |
|
31 |
} |
|
32 |
|
|
21 | 33 |
void serial_set_frequency(SerialState *s, uint32_t frequency); |
22 | 34 |
|
23 | 35 |
/* parallel.c */ |
Also available in: Unified diff