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 Macro argument parentheses paranoia.



details:   https://anonhg.NetBSD.org/src/rev/f6cd47875c86
branches:  jdolecek-ncq
changeset: 822919:f6cd47875c86
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Mon Jun 12 23:51:40 2017 +0000

description:
Macro argument parentheses paranoia.
Annotate another register initialism.

diffstat:

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

diffs (21 lines):

diff -r e9179d82a5f4 -r f6cd47875c86 sys/dev/ic/siisatareg.h
--- a/sys/dev/ic/siisatareg.h   Mon Jun 12 23:25:06 2017 +0000
+++ b/sys/dev/ic/siisatareg.h   Mon Jun 12 23:51:40 2017 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: siisatareg.h,v 1.7.42.1 2017/04/24 13:05:26 jakllsch Exp $ */
+/* $NetBSD: siisatareg.h,v 1.7.42.2 2017/06/12 23:51:40 jakllsch Exp $ */
 
 /*
  * Copyright (c) 2007, 2008, 2009, 2010, 2011 Jonathan A. Kollasch.
@@ -181,9 +181,9 @@
 #define PRO_PPHYC      0x1050          /* phy config */
 #define PRO_PSS                0x1800          /* port slot status */
 /* technically this is a shadow of the CAR */
-#define PRO_CAR                0x1c00
+#define PRO_CAR                0x1c00          /* command activation register */
 
-#define PRO_CARX(p,s)     (PRX(p, PRO_CAR) + s * sizeof(uint64_t))
+#define PRO_CARX(p,s)     (PRX(p, PRO_CAR) + (s) * sizeof(uint64_t))
 
 #define PRO_PCR                0x1e04          /* port context register */
 #define PRO_SCONTROL   0x1f00          /* SControl */



Home | Main Index | Thread Index | Old Index