xref: /openbmc/qemu/include/hw/char/serial-isa.h (revision b5ab62b3c0050612c7f9b0b4baeb44ebab42775a)
1*37b724cdSBernhard Beschow /*
2*37b724cdSBernhard Beschow  * QEMU ISA 16550A UART emulation
3*37b724cdSBernhard Beschow  *
4*37b724cdSBernhard Beschow  * Copyright (c) 2003-2004 Fabrice Bellard
5*37b724cdSBernhard Beschow  * Copyright (c) 2008 Citrix Systems, Inc.
6*37b724cdSBernhard Beschow  *
7*37b724cdSBernhard Beschow  * Permission is hereby granted, free of charge, to any person obtaining a copy
8*37b724cdSBernhard Beschow  * of this software and associated documentation files (the "Software"), to deal
9*37b724cdSBernhard Beschow  * in the Software without restriction, including without limitation the rights
10*37b724cdSBernhard Beschow  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
11*37b724cdSBernhard Beschow  * copies of the Software, and to permit persons to whom the Software is
12*37b724cdSBernhard Beschow  * furnished to do so, subject to the following conditions:
13*37b724cdSBernhard Beschow  *
14*37b724cdSBernhard Beschow  * The above copyright notice and this permission notice shall be included in
15*37b724cdSBernhard Beschow  * all copies or substantial portions of the Software.
16*37b724cdSBernhard Beschow  *
17*37b724cdSBernhard Beschow  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
18*37b724cdSBernhard Beschow  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
19*37b724cdSBernhard Beschow  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
20*37b724cdSBernhard Beschow  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
21*37b724cdSBernhard Beschow  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
22*37b724cdSBernhard Beschow  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
23*37b724cdSBernhard Beschow  * THE SOFTWARE.
24*37b724cdSBernhard Beschow  */
25*37b724cdSBernhard Beschow 
26*37b724cdSBernhard Beschow #ifndef HW_SERIAL_ISA_H
27*37b724cdSBernhard Beschow #define HW_SERIAL_ISA_H
28*37b724cdSBernhard Beschow 
29*37b724cdSBernhard Beschow #include "hw/isa/isa.h"
30*37b724cdSBernhard Beschow 
31*37b724cdSBernhard Beschow #define MAX_ISA_SERIAL_PORTS 4
32*37b724cdSBernhard Beschow 
33*37b724cdSBernhard Beschow #define TYPE_ISA_SERIAL "isa-serial"
34*37b724cdSBernhard Beschow void serial_hds_isa_init(ISABus *bus, int from, int to);
35*37b724cdSBernhard Beschow void isa_serial_set_iobase(ISADevice *serial, hwaddr iobase);
36*37b724cdSBernhard Beschow void isa_serial_set_enabled(ISADevice *serial, bool enabled);
37*37b724cdSBernhard Beschow 
38*37b724cdSBernhard Beschow #endif
39