H A D | ofw_bus_subr.c | 1 /*- 2 * SPDX-License-Identifier: BSD-2-Clause 4 * Copyright (c) 2001 - 2003 by Thomas Moestl <tmm@FreeBSD.org>. 21 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 53 ofw_bus_gen_setup_devinfo(struct ofw_bus_devinfo *obd, phandle_t node) in ofw_bus_gen_setup_devinfo() argument 58 /* The 'name' property is considered mandatory. */ in ofw_bus_gen_setup_devinfo() 59 if ((OF_getprop_alloc(node, "nam in ofw_bus_gen_setup_devinfo() 88 ofw_bus_gen_child_pnpinfo(device_t cbdev,device_t child,struct sbuf * sb) ofw_bus_gen_child_pnpinfo() argument 106 ofw_bus_gen_get_device_path(device_t cbdev,device_t child,const char * locator,struct sbuf * sb) ofw_bus_gen_get_device_path() argument 202 ofw_bus_node_status_okay(phandle_t node) ofw_bus_node_status_okay() argument 246 ofw_bus_node_is_compatible(phandle_t node,const char * compatstr) ofw_bus_node_is_compatible() argument 267 phandle_t node; ofw_bus_is_compatible() local 319 phandle_t node; ofw_bus_has_prop() local 328 ofw_bus_setup_iinfo(phandle_t node,struct ofw_bus_iinfo * ii,int intrsz) ofw_bus_setup_iinfo() argument 353 ofw_bus_lookup_imap(phandle_t node,struct ofw_bus_iinfo * ii,void * reg,int regsz,void * pintr,int pintrsz,void * mintr,int mintrsz,phandle_t * iparent) ofw_bus_lookup_imap() argument 458 ofw_bus_msimap(phandle_t node,uint16_t pci_rid,phandle_t * msi_parent,uint32_t * msi_rid) ofw_bus_msimap() argument 509 ofw_bus_iommu_map(phandle_t node,uint16_t pci_rid,phandle_t * iommu_parent,uint32_t * iommu_rid) ofw_bus_iommu_map() argument 551 ofw_bus_reg_to_rl_helper(device_t dev,phandle_t node,pcell_t acells,pcell_t scells,struct resource_list * rl,const char * reg_source) ofw_bus_reg_to_rl_helper() argument 600 ofw_bus_reg_to_rl(device_t dev,phandle_t node,pcell_t acells,pcell_t scells,struct resource_list * rl) ofw_bus_reg_to_rl() argument 608 ofw_bus_assigned_addresses_to_rl(device_t dev,phandle_t node,pcell_t acells,pcell_t scells,struct resource_list * rl) ofw_bus_assigned_addresses_to_rl() argument 621 ofw_bus_find_iparent(phandle_t node) ofw_bus_find_iparent() argument 638 ofw_bus_intr_to_rl(device_t dev,phandle_t node,struct resource_list * rl,int * rlen) ofw_bus_intr_to_rl() argument 704 ofw_bus_intr_by_rid(device_t dev,phandle_t node,int wanted_rid,phandle_t * producer,int * ncells,pcell_t ** cells) ofw_bus_intr_by_rid() argument 779 phandle_t child; ofw_bus_find_child() local 797 ofw_bus_find_compatible(phandle_t node,const char * onecompat) ofw_bus_find_compatible() argument 799 phandle_t child, ret; ofw_bus_find_compatible() local 826 ofw_bus_find_child_device_by_phandle(device_t bus,phandle_t node) ofw_bus_find_child_device_by_phandle() argument 828 device_t *children, retval, child; ofw_bus_find_child_device_by_phandle() local 873 ofw_bus_parse_xref_list_internal(phandle_t node,const char * list_name,const char * cells_name,int idx,phandle_t * producer,int * ncells,pcell_t ** cells) ofw_bus_parse_xref_list_internal() argument 935 ofw_bus_parse_xref_list_alloc(phandle_t node,const char * list_name,const char * cells_name,int idx,phandle_t * producer,int * ncells,pcell_t ** cells) ofw_bus_parse_xref_list_alloc() argument 959 ofw_bus_parse_xref_list_get_length(phandle_t node,const char * list_name,const char * cells_name,int * count) ofw_bus_parse_xref_list_get_length() argument 971 ofw_bus_find_string_index(phandle_t node,const char * list_name,const char * name,int * idx) ofw_bus_find_string_index() argument 1001 ofw_bus_string_list_to_array(phandle_t node,const char * list_name,const char *** out_array) ofw_bus_string_list_to_array() argument [all...] |