Changeset View
Changeset View
Standalone View
Standalone View
sbin/nvmecontrol/nvmecontrol.h
Show First 20 Lines • Show All 70 Lines • ▼ Show 20 Lines | |||||
int open_dev(const char *str, int *fd, int write, int exit_on_error); | int open_dev(const char *str, int *fd, int write, int exit_on_error); | ||||
void get_nsid(int fd, char **ctrlr_str, uint32_t *nsid); | void get_nsid(int fd, char **ctrlr_str, uint32_t *nsid); | ||||
int read_controller_data(int fd, struct nvme_controller_data *cdata); | int read_controller_data(int fd, struct nvme_controller_data *cdata); | ||||
int read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata); | int read_namespace_data(int fd, uint32_t nsid, struct nvme_namespace_data *nsdata); | ||||
void print_hex(void *data, uint32_t length); | void print_hex(void *data, uint32_t length); | ||||
void print_namespace(struct nvme_namespace_data *nsdata); | void print_namespace(struct nvme_namespace_data *nsdata); | ||||
void read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp, | void read_logpage(int fd, uint8_t log_page, uint32_t nsid, uint8_t lsp, | ||||
uint16_t lsi, uint8_t rae, void *payload, uint32_t payload_size); | uint16_t lsi, uint8_t rae, void *payload, uint32_t payload_size); | ||||
void print_temp(uint16_t t); | void print_temp_C(uint16_t t); | ||||
void print_temp_K(uint16_t t); | |||||
void print_intel_add_smart(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused); | void print_intel_add_smart(const struct nvme_controller_data *cdata __unused, void *buf, uint32_t size __unused); | ||||
/* Utility Routines */ | /* Utility Routines */ | ||||
/* | /* | ||||
* 128-bit integer augments to standard values. On i386 this | * 128-bit integer augments to standard values. On i386 this | ||||
* doesn't exist, so we use 64-bit values. So, on 32-bit i386, | * doesn't exist, so we use 64-bit values. So, on 32-bit i386, | ||||
* you'll get truncated values until someone implement 128bit | * you'll get truncated values until someone implement 128bit | ||||
* ints in sofware. | * ints in sofware. | ||||
Show All 17 Lines |