Lines Matching refs:child
255 static void make_sbus_ppd(dev_info_t *child);
258 sbusmem_initchild(dev_info_t *dip, dev_info_t *child);
261 sbus_initchild(dev_info_t *dip, dev_info_t *child);
966 make_sbus_ppd(dev_info_t *child)
977 if (ddi_get_parent_data(child) != NULL)
981 ddi_set_parent_data(child, pdptr);
992 if (get_prop(child, OBP_REG, 0, ®_prop, ®_len) != DDI_SUCCESS)
997 * Among other things, we use these to name the child node.
1006 (void) get_prop(child, "registers", DDI_PROP_NOTPROM,
1010 if (ndi_dev_is_persistent_node(child) && (reg_len != 0)) {
1039 if (get_prop(child, OBP_RANGES, 0, &rng_prop, &rng_len) ==
1053 * the child node.
1056 sbusmem_initchild(dev_info_t *dip, dev_info_t *child)
1062 slot = ddi_getprop(DDI_DEV_T_NONE, child,
1071 * so we can set the size of the child's "reg" property.
1085 child, "reg", (int *)&r,
1092 child, "size", size);
1096 child, "ident", ident);
1105 * Nexus routine to name a child.
1110 sysio_name_child(dev_info_t *child, char *name, int namelen)
1115 make_sbus_ppd(child);
1124 if (sysio_pd_getslot(child) != (uint_t)-1) {
1126 sysio_pd_getslot(child), sysio_pd_getoffset(child));
1148 sbus_initchild(dev_info_t *dip, dev_info_t *child)
1160 if (strcmp(ddi_get_name(child), "sbusmem") == 0) {
1161 if (sbusmem_initchild(dip, child) != DDI_SUCCESS)
1171 if (ndi_dev_is_persistent_node(child) == 0) {
1173 if ((ddi_getproplen(DDI_DEV_T_ANY, child, DDI_PROP_NOTPROM,
1175 ndi_merge_wildcard_node(child);
1180 /* name the child */
1181 (void) sysio_name_child(child, name, MAXNAMELEN);
1182 ddi_set_name_addr(child, name);
1191 if ((ndi_dev_is_persistent_node(child) == 0) &&
1192 (ndi_merge_node(child, sysio_name_child) == DDI_SUCCESS)) {
1193 (void) sbus_uninitchild(child);
1197 /* Figure out the child devices slot number */
1198 slot = sysio_pd_getslot(child);
1204 "device\n", slot, ddi_get_name(child));
1212 /* Get the slot configuration register for the child device. */
1226 if ((slave_burstsizes = (ulong_t)ddi_getprop(DDI_DEV_T_ANY, child,
1228 (slave_burstsizes = (ulong_t)ddi_getprop(DDI_DEV_T_ANY, child,
1577 dev_info_t *child;
1581 * look for the node that's a direct child of this Sbus node.
1583 while (rdip && (child = ddi_get_parent(rdip)) != dip) {
1584 rdip = child;
1588 * If there is one, get the slot number of *my* child
1590 if (child == dip)
1598 * installs itself as a child devices interrupt handler. It's function is
1599 * to dispatch a child devices interrupt handler, and then
1600 * reset the interrupt clear register for the child device.