Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic add macros to read AQA subvalues, is used by nvme...
details: https://anonhg.NetBSD.org/src/rev/54603a1f06c1
branches: trunk
changeset: 347835:54603a1f06c1
user: jdolecek <jdolecek%NetBSD.org@localhost>
date: Sat Sep 17 23:59:30 2016 +0000
description:
add macros to read AQA subvalues, is used by nvme_dumpregs()
diffstat:
sys/dev/ic/nvmereg.h | 4 +++-
1 files changed, 3 insertions(+), 1 deletions(-)
diffs (20 lines):
diff -r d01a4b0a83c8 -r 54603a1f06c1 sys/dev/ic/nvmereg.h
--- a/sys/dev/ic/nvmereg.h Sat Sep 17 20:48:04 2016 +0000
+++ b/sys/dev/ic/nvmereg.h Sat Sep 17 23:59:30 2016 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: nvmereg.h,v 1.4 2016/09/16 10:54:45 jdolecek Exp $ */
+/* $NetBSD: nvmereg.h,v 1.5 2016/09/17 23:59:30 jdolecek Exp $ */
/* $OpenBSD: nvmereg.h,v 1.10 2016/04/14 11:18:32 dlg Exp $ */
/*
@@ -81,8 +81,10 @@
#define NVME_AQA 0x0024 /* Admin Queue Attributes */
/* Admin Completion Queue Size */
#define NVME_AQA_ACQS(_v) (((_v) - 1) << 16)
+#define NVME_AQA_ACQS_R(_v) ((_v >> 16) & ((1 << 12) - 1))
/* Admin Submission Queue Size */
#define NVME_AQA_ASQS(_v) (((_v) - 1) << 0)
+#define NVME_AQA_ASQS_R(_v) (_v & ((1 << 12) - 1))
#define NVME_ASQ 0x0028 /* Admin Submission Queue Base Address */
#define NVME_ACQ 0x0030 /* Admin Completion Queue Base Address */
Home |
Main Index |
Thread Index |
Old Index