Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/jdolecek-ncq]: src/sys/dev/ic add macro for getting the slot from contex...



details:   https://anonhg.NetBSD.org/src/rev/325a91176984
branches:  jdolecek-ncq
changeset: 352730:325a91176984
user:      jdolecek <jdolecek%NetBSD.org@localhost>
date:      Sat Jul 29 22:40:04 2017 +0000

description:
add macro for getting the slot from context register, just for reference for now

diffstat:

 sys/dev/ic/siisatareg.h |  3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)

diffs (17 lines):

diff -r ad43dfb8cd99 -r 325a91176984 sys/dev/ic/siisatareg.h
--- a/sys/dev/ic/siisatareg.h   Sat Jul 29 16:50:32 2017 +0000
+++ b/sys/dev/ic/siisatareg.h   Sat Jul 29 22:40:04 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisatareg.h,v 1.7.42.3 2017/07/19 20:03:29 jdolecek Exp $ */
+/* $NetBSD: siisatareg.h,v 1.7.42.4 2017/07/29 22:40:04 jdolecek Exp $ */
 
 /*
  * Copyright (c) 2007, 2008, 2009, 2010, 2011 Jonathan A. Kollasch.
@@ -188,6 +188,7 @@
 #define PRO_CARX(p,s)     (PRX(p, PRO_CAR) + (s) * sizeof(uint64_t))
 
 #define PRO_PCR                0x1e04          /* port context register */
+#define     PRO_PCR_SLOT(x)    (((x) & __BITS(4, 0)) >> 0) /* Slot */
 #define     PRO_PCR_PMP(x)     (((x) & __BITS(8, 5)) >> 5) /* PM Port */
 #define PRO_SCONTROL   0x1f00          /* SControl */
 #define PRO_SSTATUS    0x1f04          /* SStatus */



Home | Main Index | Thread Index | Old Index