int cxl_get_prefault_mode(struct cxl_afu_h *afu, enum cxl_prefault_mode *valp) { long value; int ret; ret = read_sysfs_afu(afu, PREFAULT_MODE, &value, NULL); *valp = (enum cxl_prefault_mode)value; return ret; }
int cxl_get_pp_mmio_off(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, PP_MMIO_OFF, valp, NULL); }
int cxl_get_dev(struct cxl_afu_h *afu, long *majorp, long *minorp) { return read_sysfs_afu(afu, DEV, majorp, minorp); }
int cxl_get_mode(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, MODE, valp, NULL); }
int cxl_get_modes_supported(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, MODES_SUPPORTED, valp, NULL); }
int cxl_get_irqs_min(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, IRQS_MIN, valp, NULL); }
int cxl_get_mmio_size(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, MMIO_SIZE, valp, NULL); }
int cxl_get_api_version_compatible(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, API_VERSION_COMPATIBLE, valp, NULL); }
int cxl_get_api_version(struct cxl_afu_h *afu, long *valp) { return read_sysfs_afu(afu, API_VERSION, valp, NULL); }
int cxl_get_cr_vendor(struct cxl_afu_h *afu, long cr_num, long *valp) { return read_sysfs_afu(afu, CR_VENDOR, valp, &cr_num); }
int cxl_get_cr_device(struct cxl_afu_h *afu, long cr_num, long *valp) { return read_sysfs_afu(afu, CR_DEVICE, valp, &cr_num); }
int cxl_get_cr_class(struct cxl_afu_h *afu, long cr_num, long *valp) { return read_sysfs_afu(afu, CR_CLASS, valp, &cr_num); }