serial.h (eeceb0849de2126185cf71860a449667fac2f0d7) serial.h (db895a1e6a97e919f9b86d60c969377357b05066)
1/*
2 * QEMU 16550A UART emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 * Copyright (c) 2008 Citrix Systems, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 69 unchanged lines hidden (view full) ---

78
79 struct QEMUTimer *modem_status_poll;
80 MemoryRegion io;
81};
82
83extern const VMStateDescription vmstate_serial;
84extern const MemoryRegionOps serial_io_ops;
85
1/*
2 * QEMU 16550A UART emulation
3 *
4 * Copyright (c) 2003-2004 Fabrice Bellard
5 * Copyright (c) 2008 Citrix Systems, Inc.
6 *
7 * Permission is hereby granted, free of charge, to any person obtaining a copy
8 * of this software and associated documentation files (the "Software"), to deal

--- 69 unchanged lines hidden (view full) ---

78
79 struct QEMUTimer *modem_status_poll;
80 MemoryRegion io;
81};
82
83extern const VMStateDescription vmstate_serial;
84extern const MemoryRegionOps serial_io_ops;
85
86void serial_init_core(SerialState *s);
86void serial_realize_core(SerialState *s, Error **errp);
87void serial_exit_core(SerialState *s);
88void serial_set_frequency(SerialState *s, uint32_t frequency);
89
90/* legacy pre qom */
91SerialState *serial_init(int base, qemu_irq irq, int baudbase,
92 CharDriverState *chr, MemoryRegion *system_io);
93SerialState *serial_mm_init(MemoryRegion *address_space,
94 hwaddr base, int it_shift,
95 qemu_irq irq, int baudbase,
96 CharDriverState *chr, enum device_endian end);
97
98/* serial-isa.c */
99#define TYPE_ISA_SERIAL "isa-serial"
100bool serial_isa_init(ISABus *bus, int index, CharDriverState *chr);
101
102#endif
87void serial_exit_core(SerialState *s);
88void serial_set_frequency(SerialState *s, uint32_t frequency);
89
90/* legacy pre qom */
91SerialState *serial_init(int base, qemu_irq irq, int baudbase,
92 CharDriverState *chr, MemoryRegion *system_io);
93SerialState *serial_mm_init(MemoryRegion *address_space,
94 hwaddr base, int it_shift,
95 qemu_irq irq, int baudbase,
96 CharDriverState *chr, enum device_endian end);
97
98/* serial-isa.c */
99#define TYPE_ISA_SERIAL "isa-serial"
100bool serial_isa_init(ISABus *bus, int index, CharDriverState *chr);
101
102#endif