Changeset 32037 in vbox for trunk/src/VBox
- Timestamp:
- Aug 27, 2010 10:23:14 AM (14 years ago)
- Location:
- trunk/src/VBox/Devices
- Files:
-
- 1 edited
- 1 moved
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Devices/Bus/DevPciIch9.cpp
r31992 r32037 1 1 /* $Id$ */ 2 2 /** @file 3 * DevPCI - PCI BUSDevice.3 * DevPCI - ICH9 southbridge PCI bus emulation Device. 4 4 */ 5 5 … … 65 65 } PCIBUS, *PPCIBUS; 66 66 67 /**68 * PIIX3 ISA Bridge state.69 */70 typedef struct71 {72 /** The PCI device of the bridge. */73 PCIDEVICE dev;74 } PIIX3, *PPIIX3;75 76 67 77 68 /** @def PCI_IRQ_PINS … … 104 95 #endif 105 96 106 /** ISA bridge state. */107 PIIX3 PIIX3State;108 97 /** PCI bus which is attached to the host-to-PCI bridge. */ 109 98 PCIBUS PciBus; … … 128 117 #ifdef IN_RING3 129 118 130 static DECLCALLBACK(int) pciConstruct(PPDMDEVINS pDevIns,131 int iInstance,132 PCFGMNODE pCfg)119 static DECLCALLBACK(int) ich9pciConstruct(PPDMDEVINS pDevIns, 120 int iInstance, 121 PCFGMNODE pCfg) 133 122 { 134 123 int rc; 135 124 Assert(iInstance == 0); 136 125 137 126 /* 138 127 * Validate and read configuration. … … 147 136 return PDMDEV_SET_ERROR(pDevIns, rc, 148 137 N_("Configuration error: Failed to query boolean value \"IOAPIC\"")); 149 138 150 139 /* check if RC code is enabled. */ 151 140 bool fGCEnabled; … … 166 155 * Init data and register the PCI bus. 167 156 */ 168 PPCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PPCIGLOBALS); 157 PPCIGLOBALS pGlobals = PDMINS_2_DATA(pDevIns, PPCIGLOBALS); 169 158 pGlobals->fUseIoApic = fUseIoApic; 170 159 171 160 return VINF_SUCCESS; 172 161 } … … 175 164 * @copydoc FNPDMDEVRELOCATE 176 165 */ 177 static DECLCALLBACK(void) pciRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)166 static DECLCALLBACK(void) ich9pciRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 178 167 { 179 168 } … … 182 171 * @interface_method_impl{PDMDEVREG,pfnConstruct} 183 172 */ 184 static DECLCALLBACK(int) pcibridgeConstruct(PPDMDEVINS pDevIns, int iInstance, PCFGMNODE pCfg) 173 static DECLCALLBACK(int) ich9pcibridgeConstruct(PPDMDEVINS pDevIns, 174 int iInstance, 175 PCFGMNODE pCfg) 185 176 { 186 177 int rc; … … 213 204 * @copydoc FNPDMDEVRESET 214 205 */ 215 static DECLCALLBACK(void) pcibridgeReset(PPDMDEVINS pDevIns)206 static DECLCALLBACK(void) ich9pcibridgeReset(PPDMDEVINS pDevIns) 216 207 { 217 208 } … … 221 212 * @copydoc FNPDMDEVRELOCATE 222 213 */ 223 static DECLCALLBACK(void) pcibridgeRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta)214 static DECLCALLBACK(void) ich9pcibridgeRelocate(PPDMDEVINS pDevIns, RTGCINTPTR offDelta) 224 215 { 225 216 } … … 228 219 * The PCI bus device registration structure. 229 220 */ 230 const PDMDEVREG g_DeviceP CI=221 const PDMDEVREG g_DevicePciIch9 = 231 222 { 232 223 /* u32Version */ 233 224 PDM_DEVREG_VERSION, 234 225 /* szName */ 235 " pci",226 "ich9pci", 236 227 /* szRCMod */ 237 228 "VBoxDDGC.gc", … … 239 230 "VBoxDDR0.r0", 240 231 /* pszDescription */ 241 " i440FX PCI bridge and PIIX3 ISA bridge.",232 "ICH9 PCI bridge", 242 233 /* fFlags */ 243 234 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0, … … 249 240 sizeof(PCIGLOBALS), 250 241 /* pfnConstruct */ 251 pciConstruct,242 ich9pciConstruct, 252 243 /* pfnDestruct */ 253 244 NULL, 254 245 /* pfnRelocate */ 255 pciRelocate,246 ich9pciRelocate, 256 247 /* pfnIOCtl */ 257 248 NULL, … … 284 275 * for the PCI-to-PCI bridge. 285 276 */ 286 const PDMDEVREG g_DeviceP CIBridge =277 const PDMDEVREG g_DevicePciIch9Bridge = 287 278 { 288 279 /* u32Version */ 289 280 PDM_DEVREG_VERSION, 290 281 /* szName */ 291 " pcibridge",282 "ich9pcibridge", 292 283 /* szRCMod */ 293 284 "VBoxDDGC.gc", … … 295 286 "VBoxDDR0.r0", 296 287 /* pszDescription */ 297 " 82801 MobilePCI to PCI bridge",288 "ICH9 PCI to PCI bridge", 298 289 /* fFlags */ 299 290 PDM_DEVREG_FLAGS_DEFAULT_BITS | PDM_DEVREG_FLAGS_RC | PDM_DEVREG_FLAGS_R0, … … 305 296 sizeof(PCIBUS), 306 297 /* pfnConstruct */ 307 pcibridgeConstruct,298 ich9pcibridgeConstruct, 308 299 /* pfnDestruct */ 309 300 NULL, 310 301 /* pfnRelocate */ 311 pcibridgeRelocate,302 ich9pcibridgeRelocate, 312 303 /* pfnIOCtl */ 313 304 NULL, … … 315 306 NULL, 316 307 /* pfnReset */ 317 pcibridgeReset,308 ich9pcibridgeReset, 318 309 /* pfnSuspend */ 319 310 NULL, -
trunk/src/VBox/Devices/Makefile.kmk
r31911 r32037 187 187 endif 188 188 189 ifdef VBOX_WITH_NEWPCI190 DevPCI.cpp := Bus/DevPCI-new.cpp191 else192 DevPCI.cpp := Bus/DevPCI.cpp193 endif194 195 196 189 VBoxDD_LIBS = \ 197 190 $(PATH_LIB)/DevicesR3$(VBOX_SUFF_LIB) \ … … 304 297 Input/UsbKbd.cpp \ 305 298 Input/UsbMouse.cpp \ 306 $(DevPCI.cpp) \ 299 Bus/DevPCI.cpp \ 300 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \ 307 301 Graphics/DevVGA.cpp \ 308 302 Storage/DevATA.cpp \ … … 537 531 538 532 # For finding PCIInternal.h from VBox/pci.h. 539 $(DevPCI.cpp)_INCS = Bus 533 Bus/DevPCI.cpp_INCS = Bus 534 Bus/DevPciIch9.cpp_INCS = Bus 540 535 541 536 # For finding and generating vbetables.h (see Graphics/BIOS/Makefile.kmk). … … 556 551 $(PATH_SUB_CURRENT) 557 552 VBoxDDGC_SOURCES = \ 558 $(DevPCI.cpp) \ 553 Bus/DevPCI.cpp \ 554 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \ 559 555 Graphics/DevVGA.cpp \ 560 556 Input/DevPS2.cpp \ … … 667 663 $(PATH_SUB_CURRENT) 668 664 VBoxDDR0_SOURCES = \ 669 $(DevPCI.cpp) \ 665 Bus/DevPCI.cpp \ 666 $(if $(VBOX_WITH_NEWPCI),Bus/DevPciIch9.cpp,) \ 670 667 Graphics/DevVGA.cpp \ 671 668 Input/DevPS2.cpp \
Note:
See TracChangeset
for help on using the changeset viewer.