Changeset View
Changeset View
Standalone View
Standalone View
sys/dev/nvdimm/nvdimm_var.h
Show First 20 Lines • Show All 160 Lines • ▼ Show 20 Lines | |||||
void acpi_nfit_get_region_mappings_by_spa_range(ACPI_TABLE_NFIT *nfitbl, | void acpi_nfit_get_region_mappings_by_spa_range(ACPI_TABLE_NFIT *nfitbl, | ||||
uint16_t spa_range_index, ACPI_NFIT_MEMORY_MAP ***listp, int *countp); | uint16_t spa_range_index, ACPI_NFIT_MEMORY_MAP ***listp, int *countp); | ||||
void acpi_nfit_get_control_region(ACPI_TABLE_NFIT *nfitbl, | void acpi_nfit_get_control_region(ACPI_TABLE_NFIT *nfitbl, | ||||
uint16_t control_region_index, ACPI_NFIT_CONTROL_REGION **out); | uint16_t control_region_index, ACPI_NFIT_CONTROL_REGION **out); | ||||
void acpi_nfit_get_flush_addrs(ACPI_TABLE_NFIT *nfitbl, nfit_handle_t dimm, | void acpi_nfit_get_flush_addrs(ACPI_TABLE_NFIT *nfitbl, nfit_handle_t dimm, | ||||
uint64_t ***listp, int *countp); | uint64_t ***listp, int *countp); | ||||
enum SPA_mapping_type nvdimm_spa_type_from_name(const char *); | enum SPA_mapping_type nvdimm_spa_type_from_name(const char *); | ||||
enum SPA_mapping_type nvdimm_spa_type_from_uuid(struct uuid *); | enum SPA_mapping_type nvdimm_spa_type_from_uuid(struct uuid *); | ||||
bool nvdimm_spa_type_user_accessible(enum SPA_mapping_type); | |||||
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_spa_init(struct SPA_mapping *spa, ACPI_NFIT_SYSTEM_ADDRESS *nfitaddr, | int nvdimm_spa_init(struct SPA_mapping *spa, ACPI_NFIT_SYSTEM_ADDRESS *nfitaddr, | ||||
enum SPA_mapping_type spa_type); | enum SPA_mapping_type spa_type); | ||||
void nvdimm_spa_fini(struct SPA_mapping *spa); | void nvdimm_spa_fini(struct SPA_mapping *spa); | ||||
int nvdimm_spa_dev_init(struct nvdimm_spa_dev *dev, const char *name, int unit); | int nvdimm_spa_dev_init(struct nvdimm_spa_dev *dev, const char *name, int unit); | ||||
void nvdimm_spa_dev_fini(struct nvdimm_spa_dev *dev); | void nvdimm_spa_dev_fini(struct nvdimm_spa_dev *dev); | ||||
int nvdimm_create_namespaces(struct SPA_mapping *spa, ACPI_TABLE_NFIT *nfitbl); | int nvdimm_create_namespaces(struct SPA_mapping *spa, ACPI_TABLE_NFIT *nfitbl); | ||||
void nvdimm_destroy_namespaces(struct SPA_mapping *spa); | void nvdimm_destroy_namespaces(struct SPA_mapping *spa); | ||||
#endif /* __DEV_NVDIMM_VAR_H__ */ | #endif /* __DEV_NVDIMM_VAR_H__ */ |