Changeset View
Changeset View
Standalone View
Standalone View
head/sys/dev/nvdimm/nvdimm_var.h
Show First 20 Lines • Show All 54 Lines • ▼ Show 20 Lines | enum SPA_mapping_type { | ||||
SPA_TYPE_VOLATILE_MEMORY = 0, | SPA_TYPE_VOLATILE_MEMORY = 0, | ||||
SPA_TYPE_PERSISTENT_MEMORY = 1, | SPA_TYPE_PERSISTENT_MEMORY = 1, | ||||
SPA_TYPE_CONTROL_REGION = 2, | SPA_TYPE_CONTROL_REGION = 2, | ||||
SPA_TYPE_DATA_REGION = 3, | SPA_TYPE_DATA_REGION = 3, | ||||
SPA_TYPE_VOLATILE_VIRTUAL_DISK = 4, | SPA_TYPE_VOLATILE_VIRTUAL_DISK = 4, | ||||
SPA_TYPE_VOLATILE_VIRTUAL_CD = 5, | SPA_TYPE_VOLATILE_VIRTUAL_CD = 5, | ||||
SPA_TYPE_PERSISTENT_VIRTUAL_DISK= 6, | SPA_TYPE_PERSISTENT_VIRTUAL_DISK= 6, | ||||
SPA_TYPE_PERSISTENT_VIRTUAL_CD = 7, | SPA_TYPE_PERSISTENT_VIRTUAL_CD = 7, | ||||
SPA_TYPE_UNKNOWN = 127, | |||||
}; | }; | ||||
struct SPA_mapping { | struct SPA_mapping { | ||||
enum SPA_mapping_type spa_type; | enum SPA_mapping_type spa_type; | ||||
int spa_domain; | int spa_domain; | ||||
int spa_nfit_idx; | int spa_nfit_idx; | ||||
uint64_t spa_phys_base; | uint64_t spa_phys_base; | ||||
uint64_t spa_len; | uint64_t spa_len; | ||||
Show All 12 Lines | struct SPA_mapping { | ||||
bool spa_g_proc_exiting; | bool spa_g_proc_exiting; | ||||
}; | }; | ||||
extern struct SPA_mapping *spa_mappings; | extern struct SPA_mapping *spa_mappings; | ||||
extern int spa_mappings_cnt; | extern int spa_mappings_cnt; | ||||
MALLOC_DECLARE(M_NVDIMM); | MALLOC_DECLARE(M_NVDIMM); | ||||
enum SPA_mapping_type nvdimm_spa_type_from_uuid(struct uuid *); | |||||
struct nvdimm_dev *nvdimm_find_by_handle(nfit_handle_t nv_handle); | struct nvdimm_dev *nvdimm_find_by_handle(nfit_handle_t nv_handle); | ||||
int nvdimm_iterate_nfit(ACPI_TABLE_NFIT *nfitbl, enum AcpiNfitType type, | int nvdimm_iterate_nfit(ACPI_TABLE_NFIT *nfitbl, enum AcpiNfitType type, | ||||
int (*cb)(void *, void *), void *arg); | int (*cb)(void *, void *), void *arg); | ||||
#endif /* __DEV_NVDIMM_VAR_H__ */ | #endif /* __DEV_NVDIMM_VAR_H__ */ |