Lines Matching defs:dip
115 static int pcitool_get_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p);
116 static int pcitool_set_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p);
253 pcitool_intr_info(dev_info_t *dip, void *arg, int mode)
290 pcitool_get_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p)
412 pcitool_set_intr(dev_info_t *dip, void *arg, int mode, pci_t *pci_p)
515 dev_info_t *dip = pci_p->pci_dip;
522 rval = pcitool_intr_info(dip, arg, mode);
527 rval = pcitool_get_intr(dip, arg, mode, pci_p);
532 rval = pcitool_set_intr(dip, arg, mode, pci_p);
562 dev_info_t *dip = pci_p->pci_dip;
566 DEBUG2(DBG_TOOLS, dip,
575 DEBUG0(DBG_TOOLS, dip, "not aligned.\n");
583 DEBUG3(DBG_PHYS_ACC, dip,
589 DEBUG3(DBG_PHYS_ACC, dip,
600 DEBUG3(DBG_PHYS_ACC, dip,
606 DEBUG3(DBG_PHYS_ACC, dip,
626 dev_info_t *dip = pci_p->pci_dip;
639 DEBUG0(DBG_TOOLS, dip, "pcitool_bus_reg_ops nexus set/get reg\n");
644 DEBUG0(DBG_TOOLS, dip, "Error reading arguments\n");
650 DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS,
654 DEBUG0(DBG_TOOLS, dip, "reg prop not well-formed");
674 DEBUG4(DBG_TOOLS, dip,
691 DEBUG0(DBG_TOOLS, dip, "Copyout failed.\n");
729 dev_info_t *dip = pci_p->pci_dip;
740 DEBUG2(DBG_TOOLS, dip, "barnum:%d, bar_offset:0x%x\n",
757 DEBUG1(DBG_TOOLS, dip, "bar returned is 0x%llx\n", *bar);
813 dev_info_t *dip = pci_p->pci_dip;
818 DEBUG4(DBG_TOOLS, dip, "config access: base:0x%llx, "
827 DEBUG1(DBG_TOOLS, dip, "config access: data:0x%llx\n", prg->data);
837 dev_info_t *dip = pci_p->pci_dip;
853 DEBUG0(DBG_TOOLS, dip, "pcitool_dev_reg_ops set/get reg\n");
856 DEBUG0(DBG_TOOLS, dip, "Error reading arguments\n");
860 DEBUG3(DBG_TOOLS, dip, "raw bus:0x%x, dev:0x%x, func:0x%x\n",
889 DEBUG5(DBG_TOOLS, dip, "range_prop:0x%llx, shifted: bus:0x%x, dev:0x%x "
909 DEBUG0(DBG_TOOLS, dip, "IO space\n");
919 DEBUG1(DBG_TOOLS, dip,
930 DEBUG0(DBG_TOOLS, dip, "32 bit mem space\n");
934 DEBUG0(DBG_TOOLS, dip,
960 DEBUG3(DBG_TOOLS, dip,
979 DEBUG0(DBG_TOOLS, dip, "Error returning arguments.\n");
986 pcitool_init(dev_info_t *dip)
988 int instance = ddi_get_instance(dip);
990 if (ddi_create_minor_node(dip, PCI_MINOR_REG, S_IFCHR,
995 if (ddi_create_minor_node(dip, PCI_MINOR_INTR, S_IFCHR,
998 ddi_remove_minor_node(dip, PCI_MINOR_REG);
1006 pcitool_uninit(dev_info_t *dip)
1008 ddi_remove_minor_node(dip, PCI_MINOR_REG);
1009 ddi_remove_minor_node(dip, PCI_MINOR_INTR);