Lines Matching defs:dip

51 int	pciide_attach(dev_info_t *dip, ddi_attach_cmd_t cmd);
52 int pciide_detach(dev_info_t *dip, ddi_detach_cmd_t cmd);
54 #define PCIIDE_NATIVE_MODE(dip) \
55 (!ddi_prop_exists(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, \
58 #define PCIIDE_PRE26(dip) \
59 ddi_prop_exists(DDI_DEV_T_ANY, (dip), 0, "ignore-hardware-nodes")
87 static int pciide_bus_map(dev_info_t *dip, dev_info_t *rdip,
91 static int pciide_ddi_ctlops(dev_info_t *dip, dev_info_t *rdip,
95 static int pciide_get_pri(dev_info_t *dip, dev_info_t *rdip,
98 static int pciide_intr_ops(dev_info_t *dip, dev_info_t *rdip,
102 static struct intrspec *pciide_get_ispec(dev_info_t *dip, dev_info_t *rdip,
210 pciide_attach(dev_info_t *dip, ddi_attach_cmd_t cmd)
222 rc = pci_config_setup(dip, &conf_hdl);
241 if (pci_restore_config_regs(dip) != DDI_SUCCESS) {
253 ddi_node_name(dip), (void *) dip);
257 if (pci_config_setup(dip, &conf_hdl) != DDI_SUCCESS)
271 pciide_detach(dev_info_t *dip, ddi_detach_cmd_t cmd)
278 if (pci_save_config_regs(dip) != DDI_SUCCESS) {
289 pciide_ddi_ctlops(dev_info_t *dip, dev_info_t *rdip, ddi_ctl_enum_t ctlop,
304 return (pciide_initchild(dip, cdip));
343 if (PCIIDE_PRE26(dip)) {
349 = pciide_pre26_rnumber_map(dip, old_rnumber);
364 return (ddi_ctlops(dip, dip, ctlop, &rnumber, result));
374 rc = ddi_ctlops(dip, dip, ctlop, &rnumber, &tmp);
400 return (ddi_ctlops(dip, rdip, ctlop, arg, result));
541 pciide_bus_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp,
584 if (PCIIDE_PRE26(dip)) {
589 new_rnumber = pciide_pre26_rnumber_map(dip, old_rnumber);
604 pdip = ddi_get_parent(dip);
606 (pdip, dip, mp, offset, len, vaddrp));
615 pciide_get_ispec(dev_info_t *dip, dev_info_t *rdip, int inumber)
632 is = pci_intx_get_ispec(dip, dip, inumber);
655 pciide_get_pri(dev_info_t *dip, dev_info_t *rdip,
664 if ((ispecp = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) == NULL) {
704 pciide_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op,
711 PDBG(("pciide_intr_ops: dip %p rdip %p op %x hdlp %p\n",
712 (void *)dip, (void *)rdip, intr_op, (void *)hdlp));
727 return (pciide_alloc_intr(dip, rdip, hdlp, result));
729 return (pciide_free_intr(dip, rdip, hdlp));
731 if (pciide_get_pri(dip, rdip, hdlp, &pri) != DDI_SUCCESS) {
738 if ((ispecp = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) ==
745 if ((ispecp = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) ==
754 rdip = dip;
755 dip = ddi_get_parent(dip);
757 dip = ddi_root_node();
760 rc = (*(DEVI(dip)->devi_ops->devo_bus_ops->bus_intr_op))(dip,
778 pciide_alloc_intr(dev_info_t *dip, dev_info_t *rdip,
790 if ((ispec = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) == NULL)
807 rdip = dip;
808 dip = ddi_get_parent(dip);
810 dip = ddi_root_node();
831 pciide_free_intr(dev_info_t *dip, dev_info_t *rdip,
849 if ((ispec = pciide_get_ispec(dip, rdip, hdlp->ih_inum)) ==
854 rdip = dip;
855 dip = ddi_get_parent(dip);
857 dip = ddi_root_node();