Changeset 36203 in vbox
- Timestamp:
- Mar 8, 2011 1:02:03 PM (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r36153 r36203 1 1 /* $Id$ */ 2 2 /** @file 3 * DevPCI - ICH9 southbridge PCI bus emulation Device.3 * DevPCI - ICH9 southbridge PCI bus emulation device. 4 4 */ 5 5 6 6 /* 7 * Copyright (C) 2010 Oracle Corporation7 * Copyright (C) 2010-2011 Oracle Corporation 8 8 * 9 9 * This file is part of VirtualBox Open Source Edition (OSE), as … … 17 17 18 18 /******************************************************************************* 19 * Header Files*20 19 * Header Files * 20 *******************************************************************************/ 21 21 #define LOG_GROUP LOG_GROUP_DEV_PCI 22 22 /* Hack to get PCIDEVICEINT declare at the right point - include "PCIInternal.h". */ … … 36 36 #include "MsiCommon.h" 37 37 38 39 /******************************************************************************* 40 * Structures and Typedefs * 41 *******************************************************************************/ 38 42 /** 39 43 * PCI Bus instance. … … 118 122 119 123 120 typedef struct { 124 typedef struct 125 { 121 126 uint8_t iBus; 122 127 uint8_t iDeviceFunc; … … 124 129 } PciAddress; 125 130 131 126 132 /******************************************************************************* 127 * Defined Constants And Macros*128 133 * Defined Constants And Macros * 134 *******************************************************************************/ 129 135 130 136 /** @def VBOX_ICH9PCI_SAVED_STATE_VERSION … … 141 147 /** Converts a device instance pointer to a PCIBUS pointer. */ 142 148 #define DEVINS_2_PCIBUS(pDevIns) ((PPCIBUS)(&PDMINS_2_DATA(pDevIns, PPCIGLOBALS)->aPciBus)) 143 /** Converts a pointer to a PCI root bus instance to a PCIGLOBALS pointer. 144 */ 149 /** Converts a pointer to a PCI root bus instance to a PCIGLOBALS pointer. */ 145 150 #define PCIROOTBUS_2_PCIGLOBALS(pPciBus) ( (PPCIGLOBALS)((uintptr_t)(pPciBus) - RT_OFFSETOF(PCIGLOBALS, aPciBus)) ) 146 151 … … 553 558 if ((iLevel & PDM_IRQ_LEVEL_FLIP_FLOP) == PDM_IRQ_LEVEL_FLIP_FLOP) 554 559 { 555 /* *560 /* 556 561 * we raised it few lines above, as PDM_IRQ_LEVEL_FLIP_FLOP has 557 562 * PDM_IRQ_LEVEL_HIGH bit set … … 1850 1855 pGlobals->uBus = 0; 1851 1856 1852 /* *1857 /* 1853 1858 * Assign bridge topology, for further routing to work. 1854 1859 */ … … 1856 1861 ich9pciInitBridgeTopology(pGlobals, pBus); 1857 1862 1858 /* *1863 /* 1859 1864 * Init the devices. 1860 1865 */ … … 1941 1946 PCIDevSetByte(aDev, uAddr, u8Val); 1942 1947 } 1948 1943 1949 /** 1944 1950 * See paragraph 7.5 of PCI Express specification (p. 349) for definition of … … 2278 2284 printIndent(pHlp, iIndent); 2279 2285 2280 /* *2286 /* 2281 2287 * For passthrough devices MSI/MSI-X mostly reflects the way interrupts delivered to the guest, 2282 2288 * as host driver handles real devices interrupts. … … 2493 2499 */ 2494 2500 2495 /* *2501 /* 2496 2502 * We emulate 82801IB ICH9 IO chip used in Q35, 2497 2503 * see http://ark.intel.com/Product.aspx?id=31892
Note:
See TracChangeset
for help on using the changeset viewer.