xref: /openbmc/qemu/include/hw/pci-bridge/simba.h (revision 90302ada)
1ffd9589eSMark Cave-Ayland /*
2ffd9589eSMark Cave-Ayland  * QEMU Simba PCI bridge
3ffd9589eSMark Cave-Ayland  *
4ffd9589eSMark Cave-Ayland  * Copyright (c) 2006 Fabrice Bellard
5ffd9589eSMark Cave-Ayland  * Copyright (c) 2012,2013 Artyom Tarasenko
6ffd9589eSMark Cave-Ayland  * Copyright (c) 2017 Mark Cave-Ayland
7ffd9589eSMark Cave-Ayland  *
8ffd9589eSMark Cave-Ayland  * Permission is hereby granted, free of charge, to any person obtaining a copy
9ffd9589eSMark Cave-Ayland  * of this software and associated documentation files (the "Software"), to deal
10ffd9589eSMark Cave-Ayland  * in the Software without restriction, including without limitation the rights
11ffd9589eSMark Cave-Ayland  * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12ffd9589eSMark Cave-Ayland  * copies of the Software, and to permit persons to whom the Software is
13ffd9589eSMark Cave-Ayland  * furnished to do so, subject to the following conditions:
14ffd9589eSMark Cave-Ayland  *
15ffd9589eSMark Cave-Ayland  * The above copyright notice and this permission notice shall be included in
16ffd9589eSMark Cave-Ayland  * all copies or substantial portions of the Software.
17ffd9589eSMark Cave-Ayland  *
18ffd9589eSMark Cave-Ayland  * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19ffd9589eSMark Cave-Ayland  * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20ffd9589eSMark Cave-Ayland  * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
21ffd9589eSMark Cave-Ayland  * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22ffd9589eSMark Cave-Ayland  * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23ffd9589eSMark Cave-Ayland  * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
24ffd9589eSMark Cave-Ayland  * THE SOFTWARE.
25ffd9589eSMark Cave-Ayland  */
26ffd9589eSMark Cave-Ayland 
27ffd9589eSMark Cave-Ayland #include "qemu/osdep.h"
28ffd9589eSMark Cave-Ayland #include "hw/pci/pci_bridge.h"
29ffd9589eSMark Cave-Ayland 
30ffd9589eSMark Cave-Ayland 
31*90302adaSMark Cave-Ayland typedef struct SimbaPCIBridge {
32ffd9589eSMark Cave-Ayland     /*< private >*/
33ffd9589eSMark Cave-Ayland     PCIBridge parent_obj;
34*90302adaSMark Cave-Ayland } SimbaPCIBridge;
35ffd9589eSMark Cave-Ayland 
36*90302adaSMark Cave-Ayland #define TYPE_SIMBA_PCI_BRIDGE "pbm-bridge"
37*90302adaSMark Cave-Ayland #define SIMBA_PCI_BRIDGE(obj) \
38*90302adaSMark Cave-Ayland     OBJECT_CHECK(SimbaPCIBridge, (obj), TYPE_SIMBA_PCI_BRIDGE)
39