diff options
Diffstat (limited to 'sys/dev/nvme/nvme.h')
-rw-r--r-- | sys/dev/nvme/nvme.h | 18 |
1 files changed, 11 insertions, 7 deletions
diff --git a/sys/dev/nvme/nvme.h b/sys/dev/nvme/nvme.h index 7c7f3d3..f30505a 100644 --- a/sys/dev/nvme/nvme.h +++ b/sys/dev/nvme/nvme.h @@ -1,5 +1,5 @@ /*- - * Copyright (C) 2012 Intel Corporation + * Copyright (C) 2012-2013 Intel Corporation * All rights reserved. * * Redistribution and use in source and binary forms, with or without @@ -389,6 +389,10 @@ enum nvme_activate_action { NVME_AA_ACTIVATE = 0x2, }; +#define NVME_SERIAL_NUMBER_LENGTH 20 +#define NVME_MODEL_NUMBER_LENGTH 40 +#define NVME_FIRMWARE_REVISION_LENGTH 8 + struct nvme_controller_data { /* bytes 0-255: controller capabilities and features */ @@ -400,13 +404,13 @@ struct nvme_controller_data { uint16_t ssvid; /** serial number */ - int8_t sn[20]; + int8_t sn[NVME_SERIAL_NUMBER_LENGTH]; /** model number */ - int8_t mn[40]; + int8_t mn[NVME_MODEL_NUMBER_LENGTH]; /** firmware revision */ - uint8_t fr[8]; + uint8_t fr[NVME_FIRMWARE_REVISION_LENGTH]; /** recommended arbitration burst */ uint8_t rab; @@ -765,10 +769,10 @@ struct nvme_pt_command { /* * is_read = 1 if the passthrough command will read data into the - * supplied buffer. + * supplied buffer from the controller. * - * is_read = 0 if the passthrough command will write data into the - * supplied buffer. + * is_read = 0 if the passthrough command will write data from the + * supplied buffer to the controller. */ uint32_t is_read; |