/illumos-gate/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 …]
|
H A D | prom_prop.c | 182 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() 202 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() 238 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop() 259 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() 280 prom_setprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_setprop()
|
H A D | prom_fb.c | 47 remember = prom_devicetype((pnode_t)prom_stdout_node(), in prom_stdout_is_framebuffer() 51 remember = prom_devicetype((pnode_t)prom_stdout_node(), in prom_stdout_is_framebuffer() 138 pnode_t node; in prom_get_tem_size()
|
/illumos-gate/usr/src/uts/intel/sys/ |
H A D | prom_emul.h | 50 pnode_t pn_nodeid; 63 extern pnode_t promif_findnode_byname(pnode_t n, char *name); 64 extern pnode_t promif_nextnode(pnode_t n); 65 extern pnode_t promif_childnode(pnode_t n); 67 extern int promif_getproplen(pnode_t n, char *name); 68 extern int promif_getprop(pnode_t n, char *name, void *value); 69 extern int promif_bounded_getprop(pnode_t, char *name, void *value, int len); 70 char *promif_nextprop(pnode_t n, char *previous, char *next); 77 extern pnode_t promif_add_child(pnode_t parent, pnode_t child, char *name); 78 extern void promif_create_prop_external(pnode_t, char *name, void *, int);
|
H A D | promif.h | 65 extern pnode_t prom_childnode(pnode_t nodeid); 66 extern pnode_t prom_nextnode(pnode_t nodeid); 67 extern pnode_t prom_optionsnode(void); 68 extern pnode_t prom_alias_node(void); 69 extern pnode_t prom_rootnode(void); 71 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 72 extern int prom_getprop(pnode_t nodeid, caddr_t name, 74 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, 83 extern pnode_t prom_finddevice(char *path); 85 extern int prom_bounded_getprop(pnode_t nodeid, [all …]
|
H A D | obpdefs.h | 41 typedef phandle_t pnode_t; typedef 47 #define OBP_NONODE ((pnode_t)0) 48 #define OBP_BADNODE ((pnode_t)-1)
|
/illumos-gate/usr/src/uts/sun/sys/ |
H A D | promif.h | 88 extern pnode_t prom_childnode(pnode_t nodeid); 89 extern pnode_t prom_nextnode(pnode_t nodeid); 90 extern pnode_t prom_parentnode(pnode_t nodeid); 91 extern pnode_t prom_rootnode(void); 92 extern pnode_t prom_chosennode(void); 93 extern pnode_t prom_alias_node(void); 94 extern pnode_t prom_optionsnode(void); 104 extern int prom_getproplen(pnode_t nodeid, caddr_t name); 105 extern int prom_getprop(pnode_t nodeid, caddr_t name, 107 extern caddr_t prom_nextprop(pnode_t nodeid, caddr_t previous, [all …]
|
H A D | obpdefs.h | 37 typedef phandle_t pnode_t; typedef 43 #define OBP_NONODE ((pnode_t)0) 44 #define OBP_BADNODE ((pnode_t)-1)
|
/illumos-gate/usr/src/uts/intel/promif/ |
H A D | prom_node.c | 42 pnode_t 45 static pnode_t rootnode; in prom_rootnode() 50 pnode_t 51 prom_nextnode(pnode_t nodeid) in prom_nextnode() 56 pnode_t 57 prom_childnode(pnode_t nodeid) in prom_childnode() 67 pnode_t 68 prom_findnode_byname(pnode_t n, char *name) in prom_findnode_byname() 73 pnode_t 79 pnode_t [all …]
|
H A D | prom_emul.c | 41 static prom_node_t *promif_find_node(pnode_t nodeid); 144 promif_find_node(pnode_t nodeid) in promif_find_node() 184 pnode_t 185 promif_nextnode(pnode_t nodeid) in promif_nextnode() 201 pnode_t 202 promif_childnode(pnode_t nodeid) in promif_childnode() 230 promif_getproplen(pnode_t nodeid, char *name) in promif_getproplen() 254 promif_getprop(pnode_t nodeid, char *name, void *value) in promif_getprop() 293 promif_nextprop(pnode_t nodeid, char *name, char *next) in promif_nextprop()
|
H A D | prom_prop.c | 36 prom_getproplen(pnode_t nodeid, caddr_t name) in prom_getproplen() 42 prom_getprop(pnode_t nodeid, caddr_t name, caddr_t value) in prom_getprop() 48 prom_nextprop(pnode_t nodeid, caddr_t previous, caddr_t next) in prom_nextprop() 71 prom_bounded_getprop(pnode_t nodeid, caddr_t name, caddr_t value, int len) in prom_bounded_getprop()
|
/illumos-gate/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);
|
/illumos-gate/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 …]
|
/illumos-gate/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()
|
/illumos-gate/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);
|
/illumos-gate/usr/src/uts/common/os/ |
H A D | autoconf.c | 229 size = prom_getproplen((pnode_t)id, name); in getlongprop_buf() 233 if (-1 == prom_getprop((pnode_t)id, name, buf)) in getlongprop_buf() 267 cnid = (int)prom_childnode((pnode_t)nid); in get_neighbors() 270 snid = (int)prom_nextnode((pnode_t)nid); in get_neighbors() 273 snid = (int)prom_nextnode((pnode_t)nid); in get_neighbors() 274 cnid = (int)prom_childnode((pnode_t)nid); in get_neighbors() 286 snid = (int)prom_nextnode((pnode_t)snid)) { in get_neighbors() 307 for (cnid = (int)prom_nextnode((pnode_t)cnid); in get_neighbors() 309 cnid = (int)prom_nextnode((pnode_t)cnid)) { in get_neighbors() 373 pnode_t nodeid; in create_devinfo_tree()
|
/illumos-gate/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 | 95 extern int prom_serengeti_wakeupcpu(pnode_t); 96 extern int prom_serengeti_cpu_off(pnode_t); 105 pnode_t nodeid; in sbdp_disconnect_cpu() 186 pnode_t nodeid; in sbdp_connect_cpu() 289 pnode_t nodeid; in sbdp_cpu_poweron() 301 ASSERT(nodeid != (pnode_t)0); in sbdp_cpu_poweron() 364 pnode_t nodeid; in sbdp_cpu_poweroff() 380 ASSERT(nodeid != (pnode_t)0); in sbdp_cpu_poweroff() 487 pnode_t nodeid; in sbdp_get_cpuid() 529 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 …]
|
/illumos-gate/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 = OBP_NONODE; in opromioctl_cb() 641 userbufsize < sizeof (pnode_t)) { in opromioctl_cb() 650 opp->oprom_array, sizeof (pnode_t)) != 0) { in opromioctl_cb() 659 node_id = *(pnode_t *)opp->oprom_array; in opromioctl_cb() 677 opp->oprom_size = sizeof (pnode_t); in opromioctl_cb() [all …]
|
/illumos-gate/usr/src/uts/sparc/os/ |
H A D | cpr_sparc.c | 67 static char *cpr_build_nodename(pnode_t); 73 cpr_get_options_node(pnode_t *nodep) in cpr_get_options_node() 93 pnode_t node; in cpr_get_bool_prop() 116 pnode_t node; in cpr_update_nvram() 257 pnode_t node; in cpr_default_setup() 356 static pnode_t cur_node; in cpr_abbreviate_devpath() 364 pnode_t long_match = 0; in cpr_abbreviate_devpath() 365 pnode_t short_match = 0; in cpr_abbreviate_devpath() 469 cpr_build_nodename(pnode_t node) in cpr_build_nodename()
|
/illumos-gate/usr/src/uts/sun4u/sys/ |
H A D | prom_plat.h | 215 extern int prom_startcpu(pnode_t node, caddr_t pc, int arg); 219 extern int prom_wakeupcpu(pnode_t node); 220 extern int prom_serengeti_wakeupcpu(pnode_t node); 225 extern int prom_serengeti_cpu_off(pnode_t node);
|
/illumos-gate/usr/src/psm/stand/boot/sparc/common/ |
H A D | sun4u_memlist.c | 77 static pnode_t pmem = 0; in fill_memlists() 78 static pnode_t pmmu = 0; in fill_memlists() 79 pnode_t node; in fill_memlists() 84 if (pmem == (pnode_t)0) { in fill_memlists()
|