Functions add_map and del_map are used to add and remove maps, map_obj will be mapped in the address space indicated by type according to the information in info.
Note: This interface is considered tech-preview and may change without notice.
typedef enum {
CXL_Type_Not_Set,
CXL_Type_Io,
CXL_Type_Mem,
CXL_Type_Cache,
CXL_Type_Other,
} cxl_type_t;
SIM_INTERFACE(cxl_map)
{
void (*add_map)(conf_object_t *obj, conf_object_t *map_obj,
map_info_t info, cxl_type_t type);
void (*del_map)(conf_object_t *obj, conf_object_t *map_obj,
physical_address_t base, cxl_type_t type);
};
#define CXL_MAP_INTERFACE "cxl_map"