chore(lib/common): rename DEV_RANGE_xx enumerators
Rename enum 'dev_type' to 'dev_coh_type' and its DEV_RANGE_xx
enumerators to DEV_MEM_xx to match RmmDevMemCoherent type
in RMM Specification 1.1-alp12.
Signed-off-by: AlexeiFedorov <Alexei.Fedorov@arm.com>
Change-Id: I3b477780e1185e7692dfc1872bf923b575f23580
diff --git a/lib/common/include/platform_api.h b/lib/common/include/platform_api.h
index 34e53b3..1ba1fed 100644
--- a/lib/common/include/platform_api.h
+++ b/lib/common/include/platform_api.h
@@ -27,7 +27,7 @@
* This function also validates that the dev_granule address is a valid
* page address and returns device granule type if the addr is valid.
*/
-unsigned long plat_dev_granule_addr_to_idx(unsigned long addr, enum dev_type *type);
+unsigned long plat_dev_granule_addr_to_idx(unsigned long addr, enum dev_coh_type *type);
/*
* Takes an index in the struct granules array and returns the aligned granule
@@ -41,6 +41,6 @@
* dev_granule address of the specified device type. The index must be within
* the number of dev_granules expected by the platform.
*/
-unsigned long plat_dev_granule_idx_to_addr(unsigned long idx, enum dev_type type);
+unsigned long plat_dev_granule_idx_to_addr(unsigned long idx, enum dev_coh_type type);
#endif /* PLATFORM_API_H */