1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-10-19 02:29:40 +00:00
freebsd/share
Kornel Duleba 817556add3 Extend device_get_property API
In order to support various types of data stored in device
tree properties or ACPI _DSD packages, create a new enum so
the caller can specify the expected type of a property they
want to read, according to the binding. The bus logic will use
that information to process the underlying data.

For example in DT all integer properties are stored in BE format.
In order to get constant results across different platforms we
need to convert its endianness to match the host.

Another example are ACPI_TYPE_INTEGER properties stored
as uint64_t. Before this patch the ACPI logic would refuse
to read them if the provided buffer was smaller than 8 bytes.
Now this can be handled by using DEVICE_PROP_UINT32 type.

Modify the existing consumers of this API to reflect the changes
and update the man pages accordingly.

Reviewed by: mw
Obtained from: Semihalf
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D33457

(cherry picked from commit b344de4d0d)
2022-03-30 00:24:29 +02:00
..
colldef Add collation version support to querylocale(3). 2020-11-08 02:50:34 +00:00
ctypedef Fix CTYPE for ja_JP.eucJP and ja_JP.SJIS. 2020-06-29 03:23:13 +00:00
dict
doc iwlwifi: add man pages 2021-12-30 18:28:32 +00:00
dtrace dtrace: fix ipfw_rule_info_t translator 2021-09-10 13:35:35 +03:00
examples ipflter: ANSIfy userland function declarations 2022-02-07 05:51:15 -08:00
i18n Remove mkcsmapper_static and mkesdb_static from build-tools 2021-08-05 10:00:56 +01:00
keys pkgbase: Add a FreeBSD-pkg-bootstrap package 2022-01-05 18:23:53 +01:00
man Extend device_get_property API 2022-03-30 00:24:29 +02:00
misc pci_vendors: update to 2021.09.19 2021-09-22 12:05:56 +02:00
mk Allow downstream projects to easily add private and internal libs 2022-03-02 15:56:30 -06:00
monetdef
msgdef
numericdef
security
sendmail
skel
snmp pkgbase: Put the mibs and defs in the bnsmp package 2021-06-30 09:24:33 +02:00
syscons pkgbase: Create a syscons-data package 2022-01-05 18:23:50 +01:00
tabset
termcap Update the screen termcap entries 2020-05-07 12:43:28 +00:00
tests
timedef
vt keymap: Add extra Alt Gr mapping for Brazillian Portuguese ABNT2 keyboards 2022-02-25 21:21:50 -03:00
zoneinfo pkgbase: Put zoneinfo file in their own package 2021-01-04 16:18:36 +01:00
Makefile
Makefile.inc