freebsd-nq/sys/dev/ofw
Adrian Chadd 91ef8da010 Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed list.
Currently, there is no easy way to know in advance how many entries a list parsed by
ofw_bus_parse_xref_list_alloc() in sys/dev/ofw/ofw_bus_subr.c has.

This patch:

* teaches the existing function about handling idx == -1 and returning how big
  the set is; then renames it as _internal;
* create a new function that asserts idx != -1, so the old API is maintained;
* add a new function that returns just the list length.

Submitted by:	Stanislav Galabov <sgalabov@gmail.com>
Differential Revision:	https://reviews.freebsd.org/D5043
2016-02-09 03:35:40 +00:00
..
ofw_bus_if.m
ofw_bus_subr.c Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed list. 2016-02-09 03:35:40 +00:00
ofw_bus_subr.h Teach ofw_bus_parse_xref_list_alloc to be able to return the length of the parsed list. 2016-02-09 03:35:40 +00:00
ofw_bus.h
ofw_console.c
ofw_cpu.c Limit ofw_cpu_early_foreach() to CPUs only 2015-07-28 13:16:08 +00:00
ofw_cpu.h Adda function to iterate over the cpu nodes in the OFW or FDT data. This 2015-02-19 16:34:48 +00:00
ofw_disk.c
ofw_fdt.c Remove fdt_fixup_table from architectures where it's unneeded. We only make 2016-01-21 16:48:01 +00:00
ofw_if.m
ofw_iicbus.c OFW_IICBUS: Register ofw_iicbus node. 2015-12-13 08:23:45 +00:00
ofw_pci.h
ofw_standard.c
ofw_subr.c Fix the value we print when the size is too large. While here fix the types 2016-01-27 17:47:07 +00:00
ofw_subr.h Implement OF_decode_addr() for arm. Move most of powerpc's implementation 2015-12-21 18:07:32 +00:00
ofwbus.c Convert rman to use rman_res_t instead of u_long 2016-01-27 02:23:54 +00:00
ofwvar.h
openfirm.c Do not destroy input buffer of the OF_getencprop() function on error 2016-01-25 14:42:44 +00:00
openfirm.h Include machine/_bus.h so that bus_space_[tag|handle]_t will be available. 2015-12-21 23:47:49 +00:00
openfirmio.c
openfirmio.h
openpromio.c
openpromio.h