Changeset 50752 in vbox for trunk/src/VBox
- Timestamp:
- Mar 12, 2014 5:15:55 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/VBox/Additions/common/VBoxGuest/VBoxGuest-solaris.c
r50348 r50752 75 75 static int VBoxGuestSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd); 76 76 static int VBoxGuestSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd); 77 static int VBoxGuestSolarisQuiesce(dev_info_t *pDip); 77 78 78 79 static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip); … … 123 124 (struct bus_ops *)0, 124 125 nodev, /* power */ 125 ddi_quiesce_not_needed126 VBoxGuestSolarisQuiesce 126 127 }; 127 128 … … 421 422 422 423 /** 424 * Quiesce entry point, called by solaris kernel for disabling the device from 425 * generating any interrupts or doing in-bound DMA. 426 * 427 * @param pDip The module structure instance. 428 * 429 * @return corresponding solaris error code. 430 */ 431 static int VBoxGuestSolarisQuiesce(dev_info_t *pDip) 432 { 433 for (int i = 0; i < g_cIntrAllocated; i++) 434 { 435 int rc = ddi_intr_disable(g_pIntr[i]); 436 if (rc != DDI_SUCCESS) 437 return DDI_FAILURE; 438 } 439 440 /** @todo What about HGCM/HGSMI touching guest-memory? */ 441 442 return DDI_SUCCESS; 443 } 444 445 446 /** 423 447 * Info entry point, called by solaris kernel for obtaining driver info. 424 448 *
Note:
See TracChangeset
for help on using the changeset viewer.