nvme.h: add AER constants
authorChristoph Hellwig <hch@lst.de>
Mon, 6 Jun 2016 21:20:46 +0000 (23:20 +0200)
committerJens Axboe <axboe@fb.com>
Sun, 12 Jun 2016 13:29:43 +0000 (07:29 -0600)
Reviewed-by: Jay Freyensee <james.p.freyensee@intel.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Ming Lin <ming.l@ssi.samsung.com>
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <keith.busch@intel.com>
Signed-off-by: Jens Axboe <axboe@fb.com>
include/linux/nvme.h

index 9807d98..a9b8c7b 100644 (file)
@@ -284,6 +284,12 @@ struct nvme_reservation_status {
        } regctl_ds[];
 };
 
+enum nvme_async_event_type {
+       NVME_AER_TYPE_ERROR     = 0,
+       NVME_AER_TYPE_SMART     = 1,
+       NVME_AER_TYPE_NOTICE    = 2,
+};
+
 /* I/O commands */
 
 enum nvme_opcode {