Remove unused function declarations
[qemu.git] / include / hw / pci-host / gpex.h
blob68c93488c947adaff005c4647f1e53729f1931e8
1 /*
2 * QEMU Generic PCI Express Bridge Emulation
4 * Copyright (C) 2015 Alexander Graf <agraf@suse.de>
6 * This program is free software; you can redistribute it and/or modify
7 * it under the terms of the GNU General Public License as published by
8 * the Free Software Foundation; either version 2 of the License, or
9 * (at your option) any later version.
11 * This program is distributed in the hope that it will be useful,
12 * but WITHOUT ANY WARRANTY; without even the implied warranty of
13 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14 * GNU General Public License for more details.
16 * You should have received a copy of the GNU Lesser General Public
17 * License along with this library; if not, see <http://www.gnu.org/licenses/>
20 #ifndef HW_GPEX_H
21 #define HW_GPEX_H
23 #include "hw/hw.h"
24 #include "hw/sysbus.h"
25 #include "hw/pci/pci.h"
26 #include "hw/pci/pcie_host.h"
28 #define TYPE_GPEX_HOST "gpex-pcihost"
29 #define GPEX_HOST(obj) \
30 OBJECT_CHECK(GPEXHost, (obj), TYPE_GPEX_HOST)
32 #define TYPE_GPEX_ROOT_DEVICE "gpex-root"
33 #define MCH_PCI_DEVICE(obj) \
34 OBJECT_CHECK(GPEXRootState, (obj), TYPE_GPEX_ROOT_DEVICE)
36 #define GPEX_NUM_IRQS 4
38 typedef struct GPEXRootState {
39 /*< private >*/
40 PCIDevice parent_obj;
41 /*< public >*/
42 } GPEXRootState;
44 typedef struct GPEXHost {
45 /*< private >*/
46 PCIExpressHost parent_obj;
47 /*< public >*/
49 GPEXRootState gpex_root;
51 MemoryRegion io_ioport;
52 MemoryRegion io_mmio;
53 qemu_irq irq[GPEX_NUM_IRQS];
54 } GPEXHost;
56 #endif /* HW_GPEX_H */