/titanic_41/usr/src/psm/promif/ieee1275/common/ |
H A D | prom_node.c | 35 pnode_t 36 prom_nextnode(pnode_t nodeid) in prom_nextnode() 53 pnode_t 54 prom_childnode(pnode_t nodeid) in prom_childnode() 77 prom_walk_devs(pnode_t node, int (*cb)(pnode_t, void *, void *), void *arg, in prom_walk_devs() argument 80 pnode_t stack[OBP_STACKDEPTH]; in prom_walk_devs() 90 pnode_t curnode = stack[stackidx]; in prom_walk_devs() 91 pnode_t child; in prom_walk_devs() 140 bytype_cb(pnode_t node, void *arg, void *result) in bytype_cb() 143 *((pnode_t *)result) = node; in bytype_cb() [all …]
|
/titanic_41/usr/src/uts/intel/sys/ |
H A D | prom_emul.h | 52 pnode_t pn_nodeid; 65 extern pnode_t promif_findnode_byname(pnode_t n, char *name); 66 extern pnode_t promif_nextnode(pnode_t n); 67 extern pnode_t promif_childnode(pnode_t n); 69 extern int promif_getproplen(pnode_t n, char *name); 70 extern int promif_getprop(pnode_t n, char *name, void *value); 71 extern int promif_bounded_getprop(pnode_t, char *name, void *value, int len); 72 char *promif_nextprop(pnode_t n, char *previous, char *next); 79 extern pnode_t promif_add_child(pnode_t parent, pnode_t child, char *name); 80 extern void promif_create_prop_external(pnode_t, char *name, void *, int);
|
H A D | promif.h | 67 extern pnode_t prom_childnode(pnode_t nodeid); 68 extern pnode_t prom_nextnode(pnode_t nodeid); 69 extern pnode_t prom_optionsnode(void); 70 extern pnode_t prom_alias_node(void); 71 extern pnode_t prom_rootnode(void); 73 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 74 extern int prom_getprop(pnode_t nodeid, caddr_t name, 76 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 85 extern pnode_t prom_finddevice(char *path); 87 extern int prom_bounded_getprop(pnode_t nodeid, [all …]
|
H A D | obpdefs.h | 43 typedef phandle_t pnode_t; typedef 49 #define OBP_NONODE ((pnode_t)0) 50 #define OBP_BADNODE ((pnode_t)-1)
|
/titanic_41/usr/src/uts/sun/sys/ |
H A D | promif.h | 89 extern pnode_t prom_childnode(pnode_t nodeid); 90 extern pnode_t prom_nextnode(pnode_t nodeid); 91 extern pnode_t prom_parentnode(pnode_t nodeid); 92 extern pnode_t prom_rootnode(void); 93 extern pnode_t prom_chosennode(void); 94 extern pnode_t prom_alias_node(void); 95 extern pnode_t prom_optionsnode(void); 105 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 106 extern int prom_getprop(pnode_t nodeid, caddr_t name, 108 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, [all …]
|
/titanic_41/usr/src/uts/intel/promif/ |
H A D | prom_node.c | 44 pnode_t 47 static pnode_t rootnode; in prom_rootnode() 52 pnode_t 53 prom_nextnode(pnode_t nodeid) in prom_nextnode() 58 pnode_t 59 prom_childnode(pnode_t nodeid) in prom_childnode() 69 pnode_t 70 prom_findnode_byname(pnode_t n, char *name) in prom_findnode_byname() 75 pnode_t 81 pnode_t [all …]
|
H A D | prom_emul.c | 37 static prom_node_t *promif_find_node(pnode_t nodeid); 140 find_node_work(prom_node_t *pnp, pnode_t n) in find_node_work() 159 promif_find_node(pnode_t nodeid) in promif_find_node() 170 pnode_t 171 promif_nextnode(pnode_t nodeid) in promif_nextnode() 187 pnode_t 188 promif_childnode(pnode_t nodeid) in promif_childnode() 216 promif_getproplen(pnode_t nodeid, char *name) in promif_getproplen() 240 promif_getprop(pnode_t nodeid, char *name, void *value) in promif_getprop() 279 promif_nextprop(pnode_t nodeid, char *name, char *next) in promif_nextprop()
|
H A D | prom_prop.c | 38 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() 44 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() 50 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() 73 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop()
|
/titanic_41/usr/src/uts/sun4v/sys/ |
H A D | promif_impl.h | 82 extern pnode_t promif_stree_nextnode(pnode_t nodeid); 83 extern pnode_t promif_stree_childnode(pnode_t nodeid); 84 extern pnode_t promif_stree_parentnode(pnode_t nodeid); 85 extern int promif_stree_getproplen(pnode_t, char *name); 86 extern int promif_stree_getprop(pnode_t, char *name, void *value); 87 extern int promif_stree_setprop(pnode_t, char *name, void *value, int len); 88 extern char *promif_stree_nextprop(pnode_t nodeid, char *name, char *next); 110 phandle_t, phandle_t, pnode_t, pnode_t); 112 extern void promif_set_nodes(pnode_t, pnode_t);
|
/titanic_41/usr/src/psm/stand/boot/sparc/common/ |
H A D | machdep.c | 52 static pnode_t 53 visit(pnode_t node) in visit() 65 return ((pnode_t)0); in visit() 68 return ((pnode_t)0); in visit() 71 return ((pnode_t)0); in visit() 75 return ((pnode_t)0); in visit() 78 return ((pnode_t)0); in visit() 82 return ((pnode_t)0); in visit() 90 static pnode_t 91 walk(pnode_t node) in walk() [all …]
|
/titanic_41/usr/src/psm/promif/ieee1275/sun4/ |
H A D | prom_vercheck.c | 164 static pnode_t flashprom_node; 201 static pnode_t 202 visit(pnode_t node) in visit() 206 static pnode_t openprom_node; in visit() 215 return ((pnode_t)0); in visit() 218 return ((pnode_t)0); in visit() 222 return ((pnode_t)0); in visit() 228 return ((pnode_t)0); in visit() 232 return ((pnode_t)0); in visit() 241 return ((pnode_t)0); in visit() [all …]
|
/titanic_41/usr/src/uts/sun4v/promif/ |
H A D | promif_stree.c | 49 pnode_t pn_nodeid; 58 static prom_node_t *find_node(pnode_t nodeid); 59 static prom_node_t *find_node_work(prom_node_t *np, pnode_t node); 66 static prom_node_t *create_node(prom_node_t *parent, pnode_t node); 67 static void create_peers(prom_node_t *pnp, pnode_t node); 68 static void create_children(prom_node_t *pnp, pnode_t parent); 98 pnode_t 99 promif_stree_parentnode(pnode_t nodeid) in promif_stree_parentnode() 111 pnode_t 112 promif_stree_childnode(pnode_t nodeid) in promif_stree_childnode() [all …]
|
H A D | promif_node.c | 32 static pnode_t chosennode; 33 static pnode_t optionsnode; 36 static pnode_t finddevice(char *path); 46 promif_set_nodes(pnode_t chosen, pnode_t options) in promif_set_nodes() 80 pnode_t node; in promif_finddevice() 106 pnode_t next; in promif_nextnode() 121 pnode_t child; in promif_childnode() 136 pnode_t parent; in promif_parentnode() 183 get_unit_addr(pnode_t np, char *paddr) in get_unit_addr() 207 static pnode_t [all …]
|
/titanic_41/usr/src/cmd/mdb/sparc/kmdb/ |
H A D | kmdb_promif_isadep.c | 76 pnode_t node; in kmdb_prom_get_ddi_prop() 104 kmdb_prom_getprop(pnode_t node, char *name, caddr_t value) in kmdb_prom_getprop() 110 int (*wcd_cb)(pnode_t, void *, void *); 115 walk_cpus_cb(pnode_t node, void *arg, void *result) in walk_cpus_cb() 146 kmdb_prom_walk_cpus(int (*cb)(pnode_t, void *, void *), void *arg, void *result) in kmdb_prom_walk_cpus() argument 163 pnode_t 164 kmdb_prom_getcpu_propnode(pnode_t node) in kmdb_prom_getcpu_propnode() 167 pnode_t pnode; in kmdb_prom_getcpu_propnode() 230 pnode_t pnode; in kmdb_prom_preserve_kctx_init() 233 pnode = (pnode_t)prom_getphandle(prom_mmu_ihandle()); in kmdb_prom_preserve_kctx_init()
|
H A D | kmdb_promif_isadep.h | 41 extern void kmdb_prom_walk_cpus(int (*)(pnode_t, void *, void *), 46 extern int kmdb_prom_getprop(pnode_t, char *, caddr_t); 49 extern pnode_t kmdb_prom_getcpu_propnode(pnode_t);
|
/titanic_41/usr/src/uts/sun4u/os/ |
H A D | fillsysinfo.c | 104 static void fill_address(pnode_t, char *); 105 void fill_cpu(pnode_t); 108 void plat_fill_mc(pnode_t); 133 static pnode_t chosen_eeprom; 163 static void have_sbus(pnode_t); 164 static void have_pci(pnode_t); 165 static void have_eeprom(pnode_t); 166 static void have_auxio(pnode_t); 167 static void have_rtc(pnode_t); 168 static void have_tod(pnode_t); [all …]
|
H A D | mach_ddi_impl.c | 143 if (prom_getprop((pnode_t)nid, OBP_BOARDNUM, in get_boardnum() 154 if (prom_getprop((pnode_t)nid, OBP_BOARDNUM, in get_boardnum() 172 size = prom_getproplen((pnode_t)id, name); in getlongprop_buf() 176 if (-1 == prom_getprop((pnode_t)id, name, buf)) in getlongprop_buf() 385 pnode_t nodeid; in dip_to_cpu_id() 388 nodeid = (pnode_t)ddi_get_nodeid(dip); in dip_to_cpu_id()
|
/titanic_41/usr/src/uts/sun4u/serengeti/sys/ |
H A D | sbdp_priv.h | 158 pnode_t nodes[SBDP_MAX_MEM_NODES_PER_BOARD]; 217 pnode_t nodes[SBDP_MAX_NODES]; 232 int sbdp_is_node_bad(pnode_t); 233 void sbdp_walk_prom_tree(pnode_t, int(*)(pnode_t, void *, uint_t), void *); 236 int sbdp_get_bd_and_wnode_num(pnode_t, int *, int *); 240 sbd_cond_t sbdp_get_comp_status(pnode_t); 256 int sbdp_select_top_nodes(pnode_t, void *, uint_t); 257 pnode_t sbdp_find_nearby_cpu_by_portid(pnode_t, processorid_t);
|
/titanic_41/usr/src/uts/common/os/ |
H A D | autoconf.c | 222 size = prom_getproplen((pnode_t)id, name); in getlongprop_buf() 226 if (-1 == prom_getprop((pnode_t)id, name, buf)) in getlongprop_buf() 260 cnid = (int)prom_childnode((pnode_t)nid); in get_neighbors() 263 snid = (int)prom_nextnode((pnode_t)nid); in get_neighbors() 266 snid = (int)prom_nextnode((pnode_t)nid); in get_neighbors() 267 cnid = (int)prom_childnode((pnode_t)nid); in get_neighbors() 279 snid = (int)prom_nextnode((pnode_t)snid)) { in get_neighbors() 300 for (cnid = (int)prom_nextnode((pnode_t)cnid); in get_neighbors() 302 cnid = (int)prom_nextnode((pnode_t)cnid)) { in get_neighbors() 366 pnode_t nodeid; in create_devinfo_tree()
|
/titanic_41/usr/src/uts/sun4u/serengeti/io/ |
H A D | sbdp_dr.c | 58 pnode_t node, in sbdp_walk_prom_tree_worker() 59 int(*f)(pnode_t, void *, uint_t), in sbdp_walk_prom_tree_worker() argument 75 pnode_t node; 76 int (*f)(pnode_t, void *, uint_t); 91 sbdp_walk_prom_tree(pnode_t node, int(*f)(pnode_t, void *, uint_t), void *arg) in sbdp_walk_prom_tree() argument 102 sbdp_attach_branch(dev_info_t *pdip, pnode_t node, void *arg) in sbdp_attach_branch() 105 pnode_t child; in sbdp_attach_branch() 188 sbdp_select_top_nodes(pnode_t node, void *arg, uint_t flags) in sbdp_select_top_nodes()
|
H A D | sbdp_cpu.c | 94 extern int prom_serengeti_wakeupcpu(pnode_t); 95 extern int prom_serengeti_cpu_off(pnode_t); 104 pnode_t nodeid; in sbdp_disconnect_cpu() 185 pnode_t nodeid; in sbdp_connect_cpu() 288 pnode_t nodeid; in sbdp_cpu_poweron() 300 ASSERT(nodeid != (pnode_t)0); in sbdp_cpu_poweron() 363 pnode_t nodeid; in sbdp_cpu_poweroff() 379 ASSERT(nodeid != (pnode_t)0); in sbdp_cpu_poweroff() 486 pnode_t nodeid; in sbdp_get_cpuid() 528 pnode_t nodeid; in sbdp_cpu_get_impl() [all …]
|
H A D | sbdp_mem.c | 55 static int sbdp_get_meminfo(pnode_t, int, uint64_t *, uint64_t *); 56 int mc_read_regs(pnode_t, mc_regs_t *); 57 uint64_t mc_get_addr(pnode_t, int, uint_t *); 58 static pnode_t mc_get_sibling_cpu(pnode_t nodeid); 59 static int mc_get_sibling_cpu_impl(pnode_t nodeid); 60 static sbd_cond_t mc_check_sibling_cpu(pnode_t nodeid); 65 static int sbdp_get_lowest_addr_in_node(pnode_t, uint64_t *); 73 int sbdp_add_nodes_banks(pnode_t node, sbdp_bank_t **banks); 136 sbdp_get_mem_dip(pnode_t node, void *arg, uint_t flags) in sbdp_get_mem_dip() 141 pnode_t nodeid; in sbdp_get_mem_dip() [all …]
|
/titanic_41/usr/src/uts/sun4u/starfire/io/ |
H A D | memctrl.c | 88 mc_get_asr_addr(pnode_t nodeid) in mc_get_asr_addr() 108 mc_get_idle_addr(pnode_t nodeid) in mc_get_idle_addr() 128 mc_get_dimm_size(pnode_t nodeid) in mc_get_dimm_size() 160 mc_get_alignment_mask(pnode_t nodeid) in mc_get_alignment_mask() 202 mc_read_asr(pnode_t nodeid, uint_t *mcregp) in mc_read_asr() 218 mc_write_asr(pnode_t nodeid, uint_t mcreg) in mc_write_asr()
|
/titanic_41/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 69 static char *cpr_build_nodename(pnode_t); 75 cpr_get_options_node(pnode_t *nodep) in cpr_get_options_node() 95 pnode_t node; in cpr_get_bool_prop() 118 pnode_t node; in cpr_update_nvram() 259 pnode_t node; in cpr_default_setup() 358 static pnode_t cur_node; in cpr_abbreviate_devpath() 366 pnode_t long_match = NULL; in cpr_abbreviate_devpath() 367 pnode_t short_match = NULL; in cpr_abbreviate_devpath() 471 cpr_build_nodename(pnode_t node) in cpr_build_nodename()
|
/titanic_41/usr/src/uts/common/io/ |
H A D | openprom.c | 74 pnode_t current_id; /* node we're fetching props from */ 94 static int oprom_checknodeid(pnode_t, pnode_t); 96 static int oprom_copynode(pnode_t, uint_t, char **, size_t *); 185 static pnode_t options_nodeid; 272 st->current_id = (pnode_t)0; in opromopen() 366 pnode_t node_id; in opromioctl_cb() 649 userbufsize < sizeof (pnode_t)) { in opromioctl_cb() 658 opp->oprom_array, sizeof (pnode_t)) != 0) { in opromioctl_cb() 667 node_id = *(pnode_t *)opp->oprom_array; in opromioctl_cb() 685 opp->oprom_size = sizeof (pnode_t); in opromioctl_cb() [all …]
|