Module Name:    src
Committed By:   jakllsch
Date:           Mon Jun 12 23:51:41 UTC 2017

Modified Files:
        src/sys/dev/ic [jdolecek-ncq]: siisatareg.h

Log Message:
Macro argument parentheses paranoia.
Annotate another register initialism.


To generate a diff of this commit:
cvs rdiff -u -r1.7.42.1 -r1.7.42.2 src/sys/dev/ic/siisatareg.h

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/dev/ic/siisatareg.h
diff -u src/sys/dev/ic/siisatareg.h:1.7.42.1 src/sys/dev/ic/siisatareg.h:1.7.42.2
--- src/sys/dev/ic/siisatareg.h:1.7.42.1	Mon Apr 24 13:05:26 2017
+++ src/sys/dev/ic/siisatareg.h	Mon Jun 12 23:51:40 2017
@@ -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 @@ struct siisata_prb {
 #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 */

Reply via email to