Lines Matching defs:pDip

74 static int VBoxGuestSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pArg, void **ppResult);
75 static int VBoxGuestSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd);
76 static int VBoxGuestSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd);
77 static int VBoxGuestSolarisQuiesce(dev_info_t *pDip);
79 static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip);
80 static void VBoxGuestSolarisRemoveIRQ(dev_info_t *pDip);
272 * @param pDip The module structure instance.
277 static int VBoxGuestSolarisAttach(dev_info_t *pDip, ddi_attach_cmd_t enmCmd)
290 int instance = ddi_get_instance(pDip);
296 int rc = pci_config_setup(pDip, &PciHandle);
308 rc = ddi_regs_map_setup(pDip, 1, &baseAddr, 0, 0, &deviceAttr, &g_PciIOHandle);
315 rc = ddi_dev_regsize(pDip, 2, &g_cbMMIO);
318 rc = ddi_regs_map_setup(pDip, 2, &g_pMMIOBase, 0, g_cbMMIO, &deviceAttr,
325 rc = VBoxGuestSolarisAddIRQ(pDip);
340 rc = ddi_create_minor_node(pDip, DEVICE_NAME, S_IFCHR, instance, DDI_PSEUDO, 0 /* fFlags */);
343 g_pDip = pDip;
353 VBoxGuestSolarisRemoveIRQ(pDip);
390 * @param pDip The module structure instance.
395 static int VBoxGuestSolarisDetach(dev_info_t *pDip, ddi_detach_cmd_t enmCmd)
402 VBoxGuestSolarisRemoveIRQ(pDip);
405 ddi_remove_minor_node(pDip, NULL);
427 * @param pDip The module structure instance.
431 static int VBoxGuestSolarisQuiesce(dev_info_t *pDip)
449 * @param pDip The module structure instance (do not use).
456 static int VBoxGuestSolarisGetInfo(dev_info_t *pDip, ddi_info_cmd_t enmCmd, void *pvArg, void **ppvResult)
770 * @param pDip Pointer to the device info structure.
772 static int VBoxGuestSolarisAddIRQ(dev_info_t *pDip)
774 LogFlow((DEVICE_NAME "::AddIRQ: pDip=%p\n", pDip));
777 int rc = ddi_intr_get_supported_types(pDip, &IntrType);
784 rc = ddi_intr_get_nintrs(pDip, IntrType, &IntrCount);
789 rc = ddi_intr_get_navail(pDip, IntrType, &IntrAvail);
798 rc = ddi_intr_alloc(pDip, g_pIntr, IntrType, 0, IntrCount, &IntrAllocated, DDI_INTR_ALLOC_NORMAL);
864 * @param pDip Pointer to the device info structure.
866 static void VBoxGuestSolarisRemoveIRQ(dev_info_t *pDip)