diff options
31 files changed, 83 insertions, 83 deletions
diff --git a/usr/src/uts/common/cpr/cpr_driver.c b/usr/src/uts/common/cpr/cpr_driver.c index 31caa92c56..4d84637a6b 100644 --- a/usr/src/uts/common/cpr/cpr_driver.c +++ b/usr/src/uts/common/cpr/cpr_driver.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -226,7 +226,7 @@ cpr_is_real_device(dev_info_t *dip) /* * now the general case */ - rc = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, "reg", + rc = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®buf, &length); ASSERT(rc != DDI_PROP_NO_MEMORY); if (rc != DDI_PROP_SUCCESS) { diff --git a/usr/src/uts/common/io/busra.c b/usr/src/uts/common/io/busra.c index 1a060463a2..c339a8b6ed 100644 --- a/usr/src/uts/common/io/busra.c +++ b/usr/src/uts/common/io/busra.c @@ -774,7 +774,7 @@ isa_resource_setup() (void) ndi_ra_free(usedpdip, 0, 0xffff + 1, NDI_RA_TYPE_IO, 0); - if (ddi_getlongprop(DDI_DEV_T_NONE, used, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, used, DDI_PROP_DONTPASS, "io-space", (caddr_t)&iorange, &proplen) == DDI_SUCCESS) { maxrange = proplen / sizeof (struct iorange); /* remove the "used" I/O resources */ @@ -798,7 +798,7 @@ isa_resource_setup() (void) ndi_ra_free(usedpdip, 0, ((uint64_t)((uint32_t)~0)) + 1, NDI_RA_TYPE_MEM, 0); - if (ddi_getlongprop(DDI_DEV_T_NONE, used, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, used, DDI_PROP_DONTPASS, "device-memory", (caddr_t)&memrange, &proplen) == DDI_SUCCESS) { maxrange = proplen / sizeof (struct memrange); /* remove the "used" memory resources */ @@ -830,7 +830,7 @@ isa_resource_setup() NDI_RA_TYPE_INTR, 0); #endif - if (ddi_getlongprop(DDI_DEV_T_NONE, used, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, used, DDI_PROP_DONTPASS, "interrupts", (caddr_t)&irq, &proplen) == DDI_SUCCESS) { /* Initialize available interrupts by negating the used */ len = (proplen / sizeof (uint32_t)); @@ -936,7 +936,7 @@ pci_resource_setup(dev_info_t *dip) return (NDI_FAILURE); /* read the "available" property if it is available */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "available", (caddr_t)®s, &rlen) != DDI_SUCCESS) return (NDI_FAILURE); @@ -1022,7 +1022,7 @@ pci_resource_setup(dev_info_t *dip) * has available-bus-range or bus-range property. */ len = sizeof (struct bus_range); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "available-bus-range", (caddr_t)&pci_bus_range, &len) == DDI_SUCCESS) { /* @@ -1041,7 +1041,7 @@ pci_resource_setup(dev_info_t *dip) * reclaim them. */ len = sizeof (struct bus_range); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&pci_bus_range, &len) == DDI_SUCCESS) { if (pci_bus_range.lo != pci_bus_range.hi) { @@ -1113,7 +1113,7 @@ claim_pci_busnum(dev_info_t *dip, void *arg) /* look for the bus-range property */ len = sizeof (struct bus_range); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&pci_bus_range, &len) == DDI_SUCCESS) { if ((pci_bus_range.lo >= ctrl->range->lo) && (pci_bus_range.hi <= ctrl->range->hi)) { diff --git a/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c b/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c index 3c53a7077d..6a740dcf97 100644 --- a/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c +++ b/usr/src/uts/common/io/hotplug/pcicfg/pcicfg.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2004 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -549,7 +549,7 @@ pcicfg_configure(dev_info_t *devi, uint_t device) * "bus" specified. */ len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, devi, 0, "bus-range", + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, devi, 0, "bus-range", (caddr_t)&pci_bus_range, &len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -990,7 +990,7 @@ pcicfg_ntbridge_configure_done(dev_info_t *dip) range[0].child_lo = range[0].parent_lo = (uint32_t)entry->io_base; len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&bus_range, (int *)&len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -1095,7 +1095,7 @@ pcicfg_ntbridge_unconfigure_child(dev_info_t *new_device, uint_t devno) pcicfg_bus_range_t pci_bus_range; len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, new_device, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, new_device, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&pci_bus_range, &len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -1223,7 +1223,7 @@ pcicfg_ntbridge_child(dev_info_t *dip) return (rc); } len = sizeof (int); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, ddi_get_parent(anode), + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, ddi_get_parent(anode), DDI_PROP_DONTPASS, PCICFG_DEV_CONF_MAP_PROP, (caddr_t)&val, &len) != DDI_SUCCESS) { @@ -2641,7 +2641,7 @@ pcicfg_update_assigned_prop(dev_info_t *dip, pci_regspec_t *newone) caddr_t newreg; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned, &alen); switch (status) { case DDI_PROP_SUCCESS: @@ -2688,7 +2688,7 @@ pcicfg_update_ranges_prop(dev_info_t *dip, pcicfg_range_t *addition) caddr_t newreg; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "ranges", (caddr_t)&ranges, &rlen); @@ -2744,7 +2744,7 @@ pcicfg_update_reg_prop(dev_info_t *dip, uint32_t regvalue, uint_t reg_offset) uint32_t size; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®, &rlen); switch (status) { @@ -3510,7 +3510,7 @@ pcicfg_config_setup(dev_info_t *dip, ddi_acc_handle_t *handle) /* * Get the pci register spec from the node */ - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®, &rlen); switch (status) { diff --git a/usr/src/uts/common/io/hotplug/pcihp/pcihp.c b/usr/src/uts/common/io/hotplug/pcihp/pcihp.c index 91a081016c..196abddadc 100644 --- a/usr/src/uts/common/io/hotplug/pcihp/pcihp.c +++ b/usr/src/uts/common/io/hotplug/pcihp/pcihp.c @@ -3552,7 +3552,7 @@ pcihp_config_setup(dev_info_t **dip, ddi_acc_handle_t *handle, * adapter has just been hot plugged. */ len = sizeof (struct bus_range); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, pdip, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, pdip, 0, "bus-range", (caddr_t)&pci_bus_range, &len) != DDI_SUCCESS) { diff --git a/usr/src/uts/common/pcmcia/nexus/pcmcia.c b/usr/src/uts/common/pcmcia/nexus/pcmcia.c index ca4e8bddfc..58e6869ca7 100644 --- a/usr/src/uts/common/pcmcia/nexus/pcmcia.c +++ b/usr/src/uts/common/pcmcia/nexus/pcmcia.c @@ -1115,7 +1115,7 @@ pcmcia_cons_regspec(dev_info_t *dip, int type, uchar_t *buff, ra_return_t *ret) switch (ptype) { case PTYPE_PCI: /* XXX need to look at carefully */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pcireg, &len) == DDI_SUCCESS) { bus = PCI_REG_BUS_G(pcireg->pci_phys_hi); kmem_free(pcireg, len); @@ -4565,7 +4565,7 @@ pcmcia_free_resources(dev_info_t *self) dip != NULL; dip = (dev_info_t *)DEVI(dip)->devi_sibling) { len = 0; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS|DDI_PROP_CANSLEEP, "assigned-addresses", (caddr_t)&assigned, diff --git a/usr/src/uts/i86pc/io/pcplusmp/apic.c b/usr/src/uts/i86pc/io/pcplusmp/apic.c index f669b61d86..d090276b2e 100644 --- a/usr/src/uts/i86pc/io/pcplusmp/apic.c +++ b/usr/src/uts/i86pc/io/pcplusmp/apic.c @@ -3119,7 +3119,7 @@ apic_introp_xlate(dev_info_t *dip, struct intrspec *ispec, int type) goto nonpci; dev_len = sizeof (dev_type); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, ddi_get_parent(dip), + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, ddi_get_parent(dip), DDI_PROP_DONTPASS, "device_type", (caddr_t)dev_type, &dev_len) != DDI_PROP_SUCCESS) { goto nonpci; diff --git a/usr/src/uts/i86pc/io/psm/uppc.c b/usr/src/uts/i86pc/io/psm/uppc.c index 523abf8660..8d040928fa 100644 --- a/usr/src/uts/i86pc/io/psm/uppc.c +++ b/usr/src/uts/i86pc/io/psm/uppc.c @@ -742,7 +742,7 @@ uppc_translate_irq(dev_info_t *dip, int irqno) } dev_len = sizeof (dev_type); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, ddi_get_parent(dip), + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, ddi_get_parent(dip), DDI_PROP_DONTPASS, "device_type", (caddr_t)dev_type, &dev_len) != DDI_PROP_SUCCESS) { UPPC_VERBOSE_IRQ((CE_CONT, "!uppc: irqno %d" diff --git a/usr/src/uts/sun/io/sbusmem.c b/usr/src/uts/sun/io/sbusmem.c index 67157a7bb6..8681146105 100644 --- a/usr/src/uts/sun/io/sbusmem.c +++ b/usr/src/uts/sun/io/sbusmem.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 1991-2002 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -186,7 +186,7 @@ sbmem_attach(dev_info_t *devi, ddi_attach_cmd_t cmd) } #endif /* SBUSMEM_DEBUG */ - if (ddi_getlongprop(DDI_DEV_T_NONE, devi, + if (ddi_getlongprop(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "ident", (caddr_t)&ident, &ilen) != DDI_PROP_SUCCESS) { #ifdef SBUSMEM_DEBUG diff --git a/usr/src/uts/sun4/io/ebus.c b/usr/src/uts/sun4/io/ebus.c index 5a9e230884..42630f1f48 100644 --- a/usr/src/uts/sun4/io/ebus.c +++ b/usr/src/uts/sun4/io/ebus.c @@ -90,7 +90,7 @@ static int febus_apply_range(ebus_devstate_t *ebus_p, dev_info_t *rdip, int get_ranges_prop(ebus_devstate_t *ebus_p); #define getprop(dip, name, addr, intp) \ - ddi_getlongprop(DDI_DEV_T_NONE, (dip), DDI_PROP_DONTPASS, \ + ddi_getlongprop(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, \ (name), (caddr_t)(addr), (intp)) static int ebus_open(dev_t *devp, int flags, int otyp, cred_t *credp); @@ -784,7 +784,7 @@ ebus_name_child(dev_info_t *child, char *name, int namelen) * Get the address portion of the node name based on the * address/offset. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&ebus_rp, ®len) != DDI_SUCCESS) { return (DDI_FAILURE); } @@ -970,7 +970,7 @@ ebus_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, } } - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "device_type", (caddr_t)&device_type_p, &len) == DDI_SUCCESS) { max_device_types = sizeof (ebus_device_type_to_pil) / diff --git a/usr/src/uts/sun4/io/efcode/fcpci.c b/usr/src/uts/sun4/io/efcode/fcpci.c index ed18a971b5..849643b4bf 100644 --- a/usr/src/uts/sun4/io/efcode/fcpci.c +++ b/usr/src/uts/sun4/io/efcode/fcpci.c @@ -20,7 +20,7 @@ * CDDL HEADER END */ /* - * Copyright 2000-2003 Sun Microsystems, Inc. All rights reserved. + * Copyright 2005 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -1756,7 +1756,7 @@ pfc_update_assigned_prop(dev_info_t *dip, pci_regspec_t *newone) caddr_t newreg; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned, &alen); switch (status) { case DDI_PROP_SUCCESS: @@ -1799,7 +1799,7 @@ pfc_remove_assigned_prop(dev_info_t *dip, pci_regspec_t *oldone) pci_regspec_t *assigned; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned, &alen); switch (status) { case DDI_PROP_SUCCESS: diff --git a/usr/src/uts/sun4/io/px/px.c b/usr/src/uts/sun4/io/px/px.c index 78cd5f6512..9d6195cde2 100644 --- a/usr/src/uts/sun4/io/px/px.c +++ b/usr/src/uts/sun4/io/px/px.c @@ -642,7 +642,7 @@ px_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, r_no = mp->map_obj.rnumber; DBG(DBG_MAP | DBG_CONT, dip, " r#=%x", r_no); - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&rp, ®len) != DDI_SUCCESS) return (DDI_ME_RNUMBER_RANGE); diff --git a/usr/src/uts/sun4/io/px/px_pci.c b/usr/src/uts/sun4/io/px/px_pci.c index b04e57c484..c394326802 100644 --- a/usr/src/uts/sun4/io/px/px_pci.c +++ b/usr/src/uts/sun4/io/px/px_pci.c @@ -586,7 +586,7 @@ pxb_ctlops(dev_info_t *dip, dev_info_t *rdip, } *(int *)result = 0; - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "reg", (caddr_t)&drv_regp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); @@ -650,7 +650,7 @@ pxb_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, * Use the devices reg property to determine its * PCI bus number and device number. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, cdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); diff --git a/usr/src/uts/sun4/os/ddi_impl.c b/usr/src/uts/sun4/os/ddi_impl.c index 7ee59c5d29..54254e8aed 100644 --- a/usr/src/uts/sun4/os/ddi_impl.c +++ b/usr/src/uts/sun4/os/ddi_impl.c @@ -630,7 +630,7 @@ i_ddi_alloc_ispec(dev_info_t *dip, uint_t inumber, ddi_intrspec_t *intrspecp) ddi_ispec_t **ispecp = (ddi_ispec_t **)intrspecp; *ispecp = NULL; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS | + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "interrupts", (caddr_t)&ip, &intrlen) == DDI_SUCCESS) { @@ -1492,7 +1492,7 @@ get_intr_parent(dev_info_t *pdip, dev_info_t *dip, * and apply the imap mask. match_req will hold this when we're * through. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, "reg", + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®_p, ®_len) != DDI_SUCCESS) { ASSERT(intr_parent_dip == NULL); goto exit3; @@ -1678,7 +1678,7 @@ i_ddi_get_nintrs(dev_info_t *dip) prop_1275_cell_t *ip; int32_t ret = 0; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS | + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "interrupts", (caddr_t)&ip, &intrlen) == DDI_SUCCESS) { diff --git a/usr/src/uts/sun4/sys/ebus.h b/usr/src/uts/sun4/sys/ebus.h index dcf5f7547c..a1b8fbc4bb 100644 --- a/usr/src/uts/sun4/sys/ebus.h +++ b/usr/src/uts/sun4/sys/ebus.h @@ -155,7 +155,7 @@ struct febus_rangespec { #define getprop(dip, name, addr, intp) \ - ddi_getlongprop(DDI_DEV_T_NONE, (dip), DDI_PROP_DONTPASS, \ + ddi_getlongprop(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, \ (name), (caddr_t)(addr), (intp)) #define IS_RIO(dip) \ diff --git a/usr/src/uts/sun4u/io/isadma.c b/usr/src/uts/sun4u/io/isadma.c index 49673dd9f3..ac09f064db 100644 --- a/usr/src/uts/sun4u/io/isadma.c +++ b/usr/src/uts/sun4u/io/isadma.c @@ -239,7 +239,7 @@ isadma_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) isadmap->isadma_dip = dip; /* Cache our register property */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)&isadmap->isadma_regp, &isadmap->isadma_reglen) != DDI_SUCCESS) { ret = DDI_FAILURE; @@ -630,7 +630,7 @@ isadma_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, /* * Get child regspec since the mapping struct may not have it yet */ - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)®p, ®len) != DDI_SUCCESS) { return (DDI_FAILURE); } diff --git a/usr/src/uts/sun4u/io/pci/db21554.c b/usr/src/uts/sun4u/io/pci/db21554.c index 68ad2a5046..aa761a72cb 100644 --- a/usr/src/uts/sun4u/io/pci/db21554.c +++ b/usr/src/uts/sun4u/io/pci/db21554.c @@ -647,7 +647,7 @@ db_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) db_enable_io(dbp); range_size = sizeof (dbp->range); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&dbp->range, &range_size) != DDI_SUCCESS) { @@ -2171,7 +2171,7 @@ db_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, * Use the devices reg property to determine it's * PCI bus number and device number. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, cdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); @@ -2407,7 +2407,7 @@ db_create_pci_prop(dev_info_t *child) int value; /* get child "reg" property */ - value = ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_CANSLEEP, + value = ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_CANSLEEP, "reg", (caddr_t)&pci_rp, &length); if (value != DDI_SUCCESS) return (value); diff --git a/usr/src/uts/sun4u/io/pci/pci.c b/usr/src/uts/sun4u/io/pci/pci.c index 64ec8af61a..da7ff40b14 100644 --- a/usr/src/uts/sun4u/io/pci/pci.c +++ b/usr/src/uts/sun4u/io/pci/pci.c @@ -513,7 +513,7 @@ pci_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, r_no = mp->map_obj.rnumber; DEBUG1(DBG_MAP | DBG_CONT, dip, " r#=%x", r_no); - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&rp, ®len) != DDI_SUCCESS) return (DDI_ME_RNUMBER_RANGE); diff --git a/usr/src/uts/sun4u/io/pci/pci_fm.c b/usr/src/uts/sun4u/io/pci/pci_fm.c index e96d2cf175..3b03cd825c 100644 --- a/usr/src/uts/sun4u/io/pci/pci_fm.c +++ b/usr/src/uts/sun4u/io/pci/pci_fm.c @@ -352,7 +352,7 @@ pci_check_regs(dev_info_t *dip, void *arg) pci_regspec_t *drv_regp; pci_target_err_t *tgt_err = (pci_target_err_t *)arg; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&drv_regp, ®len) != DDI_SUCCESS) return (DDI_WALK_CONTINUE); diff --git a/usr/src/uts/sun4u/io/pci/pci_iommu.c b/usr/src/uts/sun4u/io/pci/pci_iommu.c index e6dfa0da33..c29ea0dca4 100644 --- a/usr/src/uts/sun4u/io/pci/pci_iommu.c +++ b/usr/src/uts/sun4u/io/pci/pci_iommu.c @@ -247,7 +247,7 @@ iommu_configure(iommu_t *iommu_p) for (; cdip; cdip = ddi_get_next_sibling(cdip)) { uint32_t *reg_p; int reg_len; - if (ddi_getlongprop(DDI_DEV_T_NONE, cdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, "reg", (caddr_t)®_p, ®_len) != DDI_PROP_SUCCESS) continue; cfgpa += (*reg_p) & (PCI_CONF_ADDR_MASK ^ PCI_REG_REG_M); diff --git a/usr/src/uts/sun4u/io/pci/pci_pci.c b/usr/src/uts/sun4u/io/pci/pci_pci.c index 3176a073da..37d0795ef8 100644 --- a/usr/src/uts/sun4u/io/pci/pci_pci.c +++ b/usr/src/uts/sun4u/io/pci/pci_pci.c @@ -203,7 +203,7 @@ struct dev_ops ppb_ops = { static struct modldrv modldrv = { &mod_driverops, /* Type of module */ - "Standard PCI to PCI bridge nexus driver 1.74", + "Standard PCI to PCI bridge nexus driver %I%", &ppb_ops, /* driver ops */ }; @@ -591,7 +591,7 @@ ppb_ctlops(dev_info_t *dip, dev_info_t *rdip, } *(int *)result = 0; - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "reg", (caddr_t)&drv_regp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); @@ -655,7 +655,7 @@ ppb_intr_ops(dev_info_t *dip, dev_info_t *rdip, ddi_intr_op_t intr_op, * Use the devices reg property to determine its * PCI bus number and device number. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, cdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pci_rp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); diff --git a/usr/src/uts/sun4u/io/pci/pcipsy.c b/usr/src/uts/sun4u/io/pci/pcipsy.c index c3317e3f3d..a655f0e170 100644 --- a/usr/src/uts/sun4u/io/pci/pcipsy.c +++ b/usr/src/uts/sun4u/io/pci/pcipsy.c @@ -248,7 +248,7 @@ pci_intr_setup(pci_t *pci_p) /* * Get the interrupts property. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "interrupts", (caddr_t)&pci_p->pci_inos, &pci_p->pci_inos_len) != DDI_SUCCESS) cmn_err(CE_PANIC, "%s%d: no interrupts property\n", diff --git a/usr/src/uts/sun4u/io/pci/pcisch.c b/usr/src/uts/sun4u/io/pci/pcisch.c index 6aca41b6ef..b71dfd4bc4 100644 --- a/usr/src/uts/sun4u/io/pci/pcisch.c +++ b/usr/src/uts/sun4u/io/pci/pcisch.c @@ -262,7 +262,7 @@ pci_intr_setup(pci_t *pci_p) uint32_t *intr_buf, *new_intr_buf; int intr_len, intr_cnt, ret; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "interrupts", (caddr_t)&intr_buf, &intr_len) != DDI_SUCCESS) cmn_err(CE_PANIC, "%s%d: no interrupts property\n", ddi_driver_name(dip), ddi_get_instance(dip)); @@ -501,7 +501,7 @@ map_pci_registers(pci_t *pci_p, dev_info_t *dip) goto fail; } - if (ddi_getproplen(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getproplen(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", &len) || (len / sizeof (pci_nexus_regspec_t) < 4)) goto done; @@ -3241,7 +3241,7 @@ pci_setup_cfgpa(pci_t *pci_p) for (cdip = ddi_get_child(dip); cdip != NULL; cdip = ddi_get_next_sibling(cdip)) { - if (ddi_getlongprop(DDI_DEV_T_NONE, cdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, cdip, DDI_PROP_DONTPASS, "reg", (caddr_t)®_p, ®_len) != DDI_PROP_SUCCESS) continue; cfgpa += (*reg_p) & (PCI_CONF_ADDR_MASK ^ PCI_REG_REG_M); diff --git a/usr/src/uts/sun4u/io/pci/simba.c b/usr/src/uts/sun4u/io/pci/simba.c index ba12b832be..65d26cc84f 100644 --- a/usr/src/uts/sun4u/io/pci/simba.c +++ b/usr/src/uts/sun4u/io/pci/simba.c @@ -633,7 +633,7 @@ simba_ctlops(dev_info_t *dip, dev_info_t *rdip, ddi_ctl_enum_t ctlop, } *(int *)result = 0; - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS | DDI_PROP_CANSLEEP, "reg", (caddr_t)&drv_regp, ®len) != DDI_SUCCESS) return (DDI_FAILURE); diff --git a/usr/src/uts/sun4u/io/pcicfg.e.c b/usr/src/uts/sun4u/io/pcicfg.e.c index f6f7f2dde3..83397fe6a2 100644 --- a/usr/src/uts/sun4u/io/pcicfg.e.c +++ b/usr/src/uts/sun4u/io/pcicfg.e.c @@ -570,7 +570,7 @@ pcicfg_configure(dev_info_t *devi, uint_t device) * "bus" specified. */ len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, devi, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, devi, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&pci_bus_range, &len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -997,7 +997,7 @@ pcicfg_ntbridge_configure_done(dev_info_t *dip) range[0].child_lo = range[0].parent_lo = (uint32_t)entry->io_base; len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&bus_range, (int *)&len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -1073,7 +1073,7 @@ pcicfg_ntbridge_unconfigure_child(dev_info_t *new_device, uint_t devno) pcicfg_bus_range_t pci_bus_range; len = sizeof (pcicfg_bus_range_t); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, new_device, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, new_device, DDI_PROP_DONTPASS, "bus-range", (caddr_t)&pci_bus_range, &len) != DDI_SUCCESS) { DEBUG0("no bus-range property\n"); return (PCICFG_FAILURE); @@ -2580,7 +2580,7 @@ pcicfg_update_assigned_prop(dev_info_t *dip, pci_regspec_t *newone) uint_t status; DEBUG0("pcicfg_update_assigned_prop()\n"); - status = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned, &alen); switch (status) { case DDI_PROP_SUCCESS: @@ -2635,7 +2635,7 @@ pcicfg_update_ranges_prop(dev_info_t *dip, pcicfg_range_t *addition) caddr_t newreg; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "ranges", (caddr_t)&ranges, &rlen); @@ -2691,7 +2691,7 @@ pcicfg_update_reg_prop(dev_info_t *dip, uint32_t regvalue, uint_t reg_offset) uint32_t size; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®, &rlen); switch (status) { @@ -4384,7 +4384,7 @@ pcicfg_config_setup(dev_info_t *dip, ddi_acc_handle_t *handle) /* * Get the pci register spec from the node */ - status = ddi_getlongprop(DDI_DEV_T_NONE, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®, &rlen); switch (status) { @@ -5423,7 +5423,7 @@ pcicfg_remove_assigned_prop(dev_info_t *dip, pci_regspec_t *oldone) pci_regspec_t *assigned, *assigned_copy; uint_t status; - status = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + status = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "assigned-addresses", (caddr_t)&assigned, &alen); switch (status) { case DDI_PROP_SUCCESS: diff --git a/usr/src/uts/sun4u/io/pmubus.c b/usr/src/uts/sun4u/io/pmubus.c index a764b5a8b0..247e31fb53 100644 --- a/usr/src/uts/sun4u/io/pmubus.c +++ b/usr/src/uts/sun4u/io/pmubus.c @@ -239,7 +239,7 @@ pmubus_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) pmubusp->pmubus_dip = dip; /* Cache our register property */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pmubusp->pmubus_regp, &pmubusp->pmubus_reglen) != DDI_SUCCESS) { cmn_err(CE_WARN, "pmubus_attach: Can't acquire reg " @@ -248,7 +248,7 @@ pmubus_attach(dev_info_t *dip, ddi_attach_cmd_t cmd) } /* Cache our ranges property */ - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "ranges", (caddr_t)&pmubusp->pmubus_rangep, &pmubusp->pmubus_rnglen) != DDI_SUCCESS) { cmn_err(CE_WARN, "pmubus_attach: Can't acquire the " @@ -687,7 +687,7 @@ pmubus_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, "handlep=%x\n", ddi_get_name(rdip), ddi_get_instance(rdip), rnumber, mp->map_handlep)); - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&pmubus_regs, &pmubus_regs_size) != DDI_SUCCESS) { DPRINTF(PMUBUS_MAP_DEBUG, ("can't get reg " @@ -708,7 +708,7 @@ pmubus_map(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, (uint64_t)pmubus_regs[rnumber].reg_addr_lo; pmubus_rp.reg_size = pmubus_regs[rnumber].reg_size; - (void) ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + (void) ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "register-mask", (caddr_t)&pmubus_regmask, &pmubus_regmask_size); @@ -857,7 +857,7 @@ pmubus_ctlops(dev_info_t *dip, dev_info_t *rdip, switch (op) { case DDI_CTLOPS_INITCHILD: - if (ddi_getlongprop(DDI_DEV_T_NONE, child, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&pmubus_rp, ®len) != DDI_SUCCESS) { diff --git a/usr/src/uts/sun4u/io/sbbc.c b/usr/src/uts/sun4u/io/sbbc.c index 290798395a..9b8dce1142 100644 --- a/usr/src/uts/sun4u/io/sbbc.c +++ b/usr/src/uts/sun4u/io/sbbc.c @@ -59,7 +59,7 @@ #define getprop(dip, name, addr, intp) \ - ddi_getlongprop(DDI_DEV_T_NONE, (dip), DDI_PROP_DONTPASS, \ + ddi_getlongprop(DDI_DEV_T_ANY, (dip), DDI_PROP_DONTPASS, \ (name), (caddr_t)(addr), (intp)) /* driver entry point fn definitions */ @@ -561,7 +561,7 @@ sbbc_busmap(dev_info_t *dip, dev_info_t *rdip, ddi_map_req_t *mp, rnumber = mp->map_obj.rnumber; /* get the requester's reg property */ - if (ddi_getlongprop(DDI_DEV_T_NONE, rdip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)&child_regs, &i) != DDI_SUCCESS) { cmn_err(CE_WARN, "SBBC: couldn't get %s ranges property %d", @@ -955,7 +955,7 @@ sbbc_get_ranges(struct sbbcsoft *sbbcsoftp) struct sbbc_pci_rangespec *rangep; int range_len, nrange; - if (ddi_getlongprop(DDI_DEV_T_NONE, sbbcsoftp->dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, sbbcsoftp->dip, DDI_PROP_DONTPASS, "ranges", (caddr_t)&rangep, &range_len) != DDI_SUCCESS) { cmn_err(CE_WARN, "SBBC: couldn't get %s ranges property %d", ddi_get_name(sbbcsoftp->dip), sbbcsoftp->instance); @@ -1268,7 +1268,7 @@ sbbc_initchild(dev_info_t *dip, dev_info_t *rdip, dev_info_t *child) * Set the address portion of the node name based on the * address/offset. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&child_rp, ®len) != DDI_SUCCESS) { if (strcmp(ddi_node_name(child), "hotplug-controller") == 0) { slot = 1; diff --git a/usr/src/uts/sun4u/io/sbd.c b/usr/src/uts/sun4u/io/sbd.c index 933dbb5af1..177c16e628 100644 --- a/usr/src/uts/sun4u/io/sbd.c +++ b/usr/src/uts/sun4u/io/sbd.c @@ -5131,7 +5131,7 @@ sbd_get_comp_cond(dev_info_t *dip) } status_buf = kmem_zalloc(sizeof (char) * OBP_MAXPROPNAME, KM_SLEEP); - if (ddi_getlongprop_buf(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop_buf(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, (char *)status, status_buf, &len) != DDI_PROP_SUCCESS) { PR_CPU("status in sbd is unknown\n"); return (SBD_COND_UNKNOWN); diff --git a/usr/src/uts/sun4u/io/upa64s.c b/usr/src/uts/sun4u/io/upa64s.c index f6c66c09f0..1f122af7a0 100644 --- a/usr/src/uts/sun4u/io/upa64s.c +++ b/usr/src/uts/sun4u/io/upa64s.c @@ -947,7 +947,7 @@ get_reg_set(dev_info_t *dip, dev_info_t *child, int rnumber, /* * Get child device "reg" property */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, "reg", + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&upa64s_rp, &i) != DDI_SUCCESS) return (DDI_ME_RNUMBER_RANGE); @@ -1010,7 +1010,7 @@ xlate_reg_prop(dev_info_t *dip, upa64s_regspec_t *child_rp, off_t off, if (child_rp->upa64s_size >= (1ull << 32)) panic("upa64s: reg size must be less than 4 Gb"); - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "ranges", (caddr_t)&range_p, &ranges_len) != DDI_SUCCESS) { ranges_len = 0; cmn_err(CE_WARN, "%s%d: no ranges property", @@ -1095,7 +1095,7 @@ init_child(dev_info_t *child) * Set the address portion of the node name based on * the function and device number. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, "reg", + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&child_rp, &i) != DDI_SUCCESS) { return (DDI_FAILURE); } @@ -1132,7 +1132,7 @@ get_reg_set_size(dev_info_t *child, int rnumber) /* * Get the reg property for the device. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, "reg", + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&upa64s_rp, &i) != DDI_SUCCESS) return (-1); @@ -1167,7 +1167,7 @@ get_nreg_set(dev_info_t *child) /* * Get the reg property for the device. */ - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, "reg", + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&upa64s_rp, &i) != DDI_SUCCESS) return (0); diff --git a/usr/src/uts/sun4u/ngdr/io/dr_quiesce.c b/usr/src/uts/sun4u/ngdr/io/dr_quiesce.c index 478f92de04..c997a2cfac 100644 --- a/usr/src/uts/sun4u/ngdr/io/dr_quiesce.c +++ b/usr/src/uts/sun4u/ngdr/io/dr_quiesce.c @@ -189,7 +189,7 @@ dr_is_real_device(dev_info_t *dip) /* * now the general case */ - rc = ddi_getlongprop(DDI_DEV_T_NONE, dip, DDI_PROP_DONTPASS, "reg", + rc = ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®buf, &length); ASSERT(rc != DDI_PROP_NO_MEMORY); if (rc != DDI_PROP_SUCCESS) { diff --git a/usr/src/uts/sun4v/io/px/px_lib4v.c b/usr/src/uts/sun4v/io/px/px_lib4v.c index 8bb03b3fdc..06b1efffa4 100644 --- a/usr/src/uts/sun4v/io/px/px_lib4v.c +++ b/usr/src/uts/sun4v/io/px/px_lib4v.c @@ -1421,14 +1421,14 @@ px_lib_bdf_from_dip(dev_info_t *rdip, uint32_t *bdf) boolean_t kmalloced = B_FALSE; int status; - status = ddi_getlongprop_buf(DDI_DEV_T_NONE, rdip, + status = ddi_getlongprop_buf(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)regspec, &buflen); /* If need more space, fallback to kmem_alloc. */ if (status == DDI_PROP_BUF_TOO_SMALL) { regspec = kmem_alloc(buflen, KM_SLEEP); - status = ddi_getlongprop_buf(DDI_DEV_T_NONE, rdip, + status = ddi_getlongprop_buf(DDI_DEV_T_ANY, rdip, DDI_PROP_DONTPASS, "reg", (caddr_t)regspec, &buflen); kmalloced = B_TRUE; diff --git a/usr/src/uts/sun4v/io/vnex.c b/usr/src/uts/sun4v/io/vnex.c index 5d281c5502..3c2367e090 100644 --- a/usr/src/uts/sun4v/io/vnex.c +++ b/usr/src/uts/sun4v/io/vnex.c @@ -302,7 +302,7 @@ vnex_ctl(dev_info_t *dip, dev_info_t *rdip, { dev_info_t *child = (dev_info_t *)arg; - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&vnex_regspec, ®len) != DDI_SUCCESS) return (DDI_FAILURE); @@ -337,7 +337,7 @@ vnex_ctl(dev_info_t *dip, dev_info_t *rdip, case DDI_CTLOPS_NREGS: { dev_info_t *child = (dev_info_t *)arg; - if (ddi_getlongprop(DDI_DEV_T_NONE, child, DDI_PROP_DONTPASS, + if (ddi_getlongprop(DDI_DEV_T_ANY, child, DDI_PROP_DONTPASS, "reg", (caddr_t)&vnex_regspec, ®len) != DDI_SUCCESS) return (DDI_FAILURE); *((uint_t *)result) = reglen / sizeof (uint32_t); @@ -439,7 +439,7 @@ vnex_add_intr(dev_info_t *dip, dev_info_t *rdip, uint64_t ihdl; vnex_regspec_t *reg_p; - if (ddi_getlongprop(DDI_DEV_T_NONE, dip, + if (ddi_getlongprop(DDI_DEV_T_ANY, dip, DDI_PROP_DONTPASS, "reg", (caddr_t)®_p, ®len) != DDI_SUCCESS) { return (DDI_FAILURE); |