Commit graph

8 commits

Author SHA1 Message Date
Steven Moreland
3556da3b4a Add include/hardware/*.h symlinks.
These are required to build. Separate CL to preserve blame history.

From running 'update-includes.sh' script here.

Bug: 37280010
Test: boot/build (sanity)
Change-Id: Id9c2dc37f674b27b947a9f823bd38a550d64d31b
2023-06-02 23:01:56 +00:00
Steven Moreland
d783cabd4d Split up headers.
This splits headers into three locations:
include - for backwards compatibility, the global include
include_all - for things system/vendor both use
include_vendor - for things that only vendors use

The goal is to gradually have system things stop referencing
(at least most) of these headers.

Bug: 37280010
Test: build (CL on top adds back in symlinks)

Change-Id: Ibf194276b7faa857e1e7605d7719f4e7d873ecba
2023-06-02 23:01:54 +00:00
Colin Cross
cc8d9f9fcb Avoid C-style cast warnings
hardware/libhardware/include was being included with -isystem, which
hides warnings.  Use a macro to convert modules to hw_device_t** to call
the open function that works in C++ and C.

Bug: 32018017
Test: m -j
Change-Id: If68bf15581975f1217fcab366cef7bc784894641
2016-10-07 13:10:20 -07:00
Darren Krahn
deda044730 nvram: Add a get_max_space_size_in_bytes method.
This is useful for the Access-Controlled NVRAM HAL because
implementations may be able to achieve atomic writes if they are able to
limit the maximum space size. This method allows the module to report
that it is imposing such a limit.

BUG=27480753

Change-Id: Ia70f459d7d5fca894e52310ddb2cdcbb51bd8364
2016-03-08 15:43:41 -08:00
Mattias Nissler
087f89d4a0 Merge "Split NVRAM HAL header to break out types and constants." 2016-02-09 13:14:40 +00:00
Mattias Nissler
d2d0b67259 Split NVRAM HAL header to break out types and constants.
This allows inclusion of the new nvram_defs.h header to pull in NVRAM
types and constants without pulling in hardware.h, which is difficult
in low-level environments such as Trusty (and the full NVRAM HAL
header isn't useful in that environment anyways).

Change-Id: I023104ec666832d4e01ae8841a4d6407a5b04643
2016-02-05 09:50:23 +01:00
Darren Krahn
ab3ea641ab nvram: Add const to input-only arrays.
BUG=24397987

Change-Id: I534a8fc978e10e1277cb0c87b5942d182f7c2a79
2016-02-04 14:47:14 -08:00
Darren Krahn
a59143bc44 Add header for new NVRAM HAL.
This HAL abstracts implementations of non-volatile storage with
hardware-backed access controls.

BUG=24397987

Change-Id: Ia9935b138a7ad3e931c54e590570d233c9036e0f
2016-01-19 09:34:25 -08:00