Julius Werner c893197352 commonlib/region: Turn addrspace_32bit into a more official API
We had the addrspace_32bit rdev in prog_loaders.c for a while to help
represent memory ranges as an rdev, and we've found it useful for a
couple of things that have nothing to do with program loading. This
patch moves the concept straight into commonlib/region.c so it is no
longer anchored in such a weird place, and easier to use in unit tests.
Also expand the concept to the whole address space (there's no real need
to restrict it to 32 bits in 64-bit environments) and introduce an
rdev_chain_mem() helper function to make it a bit easier to use. Replace
some direct uses of struct mem_region_device with this new API where it
seems to make sense.

Signed-off-by: Julius Werner <jwerner@chromium.org>
Change-Id: Ie4c763b77f77d227768556a9528681d771a08dca
Reviewed-on: https://review.coreboot.org/c/coreboot/+/52533
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
2021-04-21 02:06:26 +00:00
..
2020-11-16 12:13:31 +00:00
2021-02-01 08:53:22 +00:00
2019-02-06 16:20:35 +00:00
2017-03-09 17:30:21 +01:00
2020-08-03 10:36:00 +00:00
2017-03-13 15:46:02 +01:00
2020-07-09 23:50:51 +00:00
2017-03-13 17:21:02 +01:00
2017-03-09 17:30:21 +01:00
2009-01-20 21:40:16 +00:00
2017-03-09 17:30:21 +01:00
2009-01-20 21:40:16 +00:00
2018-08-10 21:25:53 +00:00
2021-04-19 13:04:58 +00:00
2020-10-05 16:18:24 +00:00