Changeset 6397 in vbox
- Timestamp:
- Jan 21, 2008 7:26:27 AM (17 years ago)
- svn:sync-xref-src-repo-rev:
- 27346
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c
r6354 r6397 140 140 typedef struct 141 141 { 142 /** PCI handle of VMMDev. */143 ddi_acc_handle_t PciHandle;144 142 /** IO port handle. */ 145 143 ddi_acc_handle_t PciIOHandle; … … 281 279 * Enable resources for PCI access. 282 280 */ 283 rc = pci_config_setup(pDip, &pState->PciHandle); 281 ddi_acc_handle_t PciHandle; 282 rc = pci_config_setup(pDip, &PciHandle); 284 283 if (rc == DDI_SUCCESS) 285 284 { … … 287 286 * Check vendor and device ID. 288 287 */ 289 uint16_t uVendorID = pci_config_get16( pState->PciHandle, PCI_CONF_VENID);290 uint16_t uDeviceID = pci_config_get16( pState->PciHandle, PCI_CONF_DEVID);288 uint16_t uVendorID = pci_config_get16(PciHandle, PCI_CONF_VENID); 289 uint16_t uDeviceID = pci_config_get16(PciHandle, PCI_CONF_DEVID); 291 290 if ( uVendorID == VMMDEV_VENDORID 292 291 && uDeviceID == VMMDEV_DEVICEID) … … 295 294 * Verify PCI class of the device (a bit paranoid). 296 295 */ 297 uint8_t uClass = pci_config_get8( pState->PciHandle, PCI_CONF_BASCLASS);298 uint8_t uSubClass = pci_config_get8( pState->PciHandle, PCI_CONF_SUBCLASS);296 uint8_t uClass = pci_config_get8(PciHandle, PCI_CONF_BASCLASS); 297 uint8_t uSubClass = pci_config_get8(PciHandle, PCI_CONF_SUBCLASS); 299 298 if ( uClass == PCI_CLASS_PERIPH 300 299 && uSubClass == PCI_PERIPH_OTHER) … … 341 340 g_pDip = pDip; 342 341 ddi_set_driver_private(pDip, pState); 343 pci_config_teardown(& pState->PciHandle);342 pci_config_teardown(&PciHandle); 344 343 ddi_report_dev(pDip); 345 344 return DDI_SUCCESS; … … 371 370 else 372 371 Log((DEVICE_NAME ":PCI vendorID, deviceID does not match.\n")); 373 pci_config_teardown(& pState->PciHandle);372 pci_config_teardown(&PciHandle); 374 373 } 375 374 else … … 663 662 } 664 663 665 /** @def IOCPARM_LEN666 * Gets the length from the ioctl number.667 * This is normally defined by sys/ioccom.h on BSD systems...668 */669 #ifndef IOCPARM_LEN670 # define IOCPARM_LEN(x) ( ((x) >> 16) & IOCPARM_MASK )671 #endif672 664 673 665 /**
Note:
See TracChangeset
for help on using the changeset viewer.