Commit graph

5 commits

Author SHA1 Message Date
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