1*87e5a4f8SBALATON Zoltan /* 2*87e5a4f8SBALATON Zoltan * QEMU Grackle PCI host (heathrow OldWorld PowerMac) 3*87e5a4f8SBALATON Zoltan * 4*87e5a4f8SBALATON Zoltan * Copyright (c) 2006-2007 Fabrice Bellard 5*87e5a4f8SBALATON Zoltan * Copyright (c) 2007 Jocelyn Mayer 6*87e5a4f8SBALATON Zoltan * 7*87e5a4f8SBALATON Zoltan * Permission is hereby granted, free of charge, to any person obtaining a copy 8*87e5a4f8SBALATON Zoltan * of this software and associated documentation files (the "Software"), to deal 9*87e5a4f8SBALATON Zoltan * in the Software without restriction, including without limitation the rights 10*87e5a4f8SBALATON Zoltan * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 11*87e5a4f8SBALATON Zoltan * copies of the Software, and to permit persons to whom the Software is 12*87e5a4f8SBALATON Zoltan * furnished to do so, subject to the following conditions: 13*87e5a4f8SBALATON Zoltan * 14*87e5a4f8SBALATON Zoltan * The above copyright notice and this permission notice shall be included in 15*87e5a4f8SBALATON Zoltan * all copies or substantial portions of the Software. 16*87e5a4f8SBALATON Zoltan * 17*87e5a4f8SBALATON Zoltan * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 18*87e5a4f8SBALATON Zoltan * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 19*87e5a4f8SBALATON Zoltan * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL 20*87e5a4f8SBALATON Zoltan * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 21*87e5a4f8SBALATON Zoltan * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 22*87e5a4f8SBALATON Zoltan * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 23*87e5a4f8SBALATON Zoltan * THE SOFTWARE. 24*87e5a4f8SBALATON Zoltan */ 25*87e5a4f8SBALATON Zoltan 26*87e5a4f8SBALATON Zoltan #ifndef GRACKLE_H 27*87e5a4f8SBALATON Zoltan #define GRACKLE_H 28*87e5a4f8SBALATON Zoltan 29*87e5a4f8SBALATON Zoltan #include "hw/pci/pci_host.h" 30*87e5a4f8SBALATON Zoltan 31*87e5a4f8SBALATON Zoltan #define TYPE_GRACKLE_PCI_HOST_BRIDGE "grackle-pcihost" 32*87e5a4f8SBALATON Zoltan OBJECT_DECLARE_SIMPLE_TYPE(GrackleState, GRACKLE_PCI_HOST_BRIDGE) 33*87e5a4f8SBALATON Zoltan 34*87e5a4f8SBALATON Zoltan struct GrackleState { 35*87e5a4f8SBALATON Zoltan PCIHostState parent_obj; 36*87e5a4f8SBALATON Zoltan 37*87e5a4f8SBALATON Zoltan uint32_t ofw_addr; 38*87e5a4f8SBALATON Zoltan qemu_irq irqs[4]; 39*87e5a4f8SBALATON Zoltan MemoryRegion pci_mmio; 40*87e5a4f8SBALATON Zoltan MemoryRegion pci_hole; 41*87e5a4f8SBALATON Zoltan MemoryRegion pci_io; 42*87e5a4f8SBALATON Zoltan }; 43*87e5a4f8SBALATON Zoltan 44*87e5a4f8SBALATON Zoltan #endif 45