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
..
2015-01-23 15:14:30 +00:00
2015-01-30 01:13:07 +00:00
2015-02-24 01:00:46 +00:00
2015-03-08 19:55:46 +00:00
2016-01-27 05:15:53 +00:00
2015-01-23 15:14:30 +00:00
2015-06-30 17:00:45 +00:00
2015-06-30 17:00:45 +00:00
2015-08-30 08:48:31 +00:00
2015-12-25 14:51:36 +00:00
2016-01-11 10:24:30 +00:00
2016-01-07 21:16:44 +00:00
2016-01-29 21:06:59 +00:00
2015-04-29 20:08:03 +00:00
2016-01-19 15:33:28 +00:00
2016-01-28 23:15:14 +00:00
2015-08-28 02:29:31 +00:00
2015-07-28 04:54:05 +00:00
2016-01-26 22:32:58 +00:00
2015-09-07 21:59:11 +00:00
2015-06-30 17:00:45 +00:00
2015-06-30 17:00:45 +00:00
2016-01-01 17:56:52 +00:00
2015-10-08 17:32:17 +00:00
2016-01-01 15:17:24 +00:00
2015-06-30 17:00:45 +00:00
2016-01-20 15:02:43 +00:00