biosdev.c (7c478bd9) biosdev.c (70025d76)
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 201 unchanged lines hidden (view full) ---

210
211 pbp = (pcibdf_t *)arg;
212
213 parentnode = di_parent_node(node);
214
215 len = di_prop_lookup_strings(DDI_DEV_T_ANY, parentnode,
216 "device_type", (char **)&devtype);
217
1/*
2 * CDDL HEADER START
3 *
4 * The contents of this file are subject to the terms of the
5 * Common Development and Distribution License, Version 1.0 only
6 * (the "License"). You may not use this file except in compliance
7 * with the License.
8 *

--- 201 unchanged lines hidden (view full) ---

210
211 pbp = (pcibdf_t *)arg;
212
213 parentnode = di_parent_node(node);
214
215 len = di_prop_lookup_strings(DDI_DEV_T_ANY, parentnode,
216 "device_type", (char **)&devtype);
217
218 if ((len <= 0) || (strcmp(devtype, "pci") != 0))
218 if ((len <= 0) ||
219 ((strcmp(devtype, "pci") != 0) && (strcmp(devtype, "pciex") != 0)))
219 return (DI_WALK_CONTINUE);
220
221 len = di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg",
222 (int **)&regbuf);
223
224 if (len <= 0) {
225 /* Try PROM property */
226 len = di_prom_prop_lookup_ints(prom_hdl, node, "reg",

--- 360 unchanged lines hidden ---
220 return (DI_WALK_CONTINUE);
221
222 len = di_prop_lookup_ints(DDI_DEV_T_ANY, node, "reg",
223 (int **)&regbuf);
224
225 if (len <= 0) {
226 /* Try PROM property */
227 len = di_prom_prop_lookup_ints(prom_hdl, node, "reg",

--- 360 unchanged lines hidden ---