summaryrefslogtreecommitdiffstats
path: root/sys/dev/ppbus/ppb_msq.h
diff options
context:
space:
mode:
authordillon <dillon@FreeBSD.org>1999-01-27 21:50:00 +0000
committerdillon <dillon@FreeBSD.org>1999-01-27 21:50:00 +0000
commita40e0249d4e2495009cf3fb552bc428d0a8a8676 (patch)
tree4c208238f4839fac2a65719e0587b7b1583d6224 /sys/dev/ppbus/ppb_msq.h
parent143a811b84ef1bcf36b91153bfd028dca51265ef (diff)
downloadFreeBSD-src-a40e0249d4e2495009cf3fb552bc428d0a8a8676.zip
FreeBSD-src-a40e0249d4e2495009cf3fb552bc428d0a8a8676.tar.gz
Fix warnings in preparation for adding -Wall -Wcast-qual to the
kernel compile
Diffstat (limited to 'sys/dev/ppbus/ppb_msq.h')
-rw-r--r--sys/dev/ppbus/ppb_msq.h20
1 files changed, 10 insertions, 10 deletions
diff --git a/sys/dev/ppbus/ppb_msq.h b/sys/dev/ppbus/ppb_msq.h
index 4bba299..7de698b 100644
--- a/sys/dev/ppbus/ppb_msq.h
+++ b/sys/dev/ppbus/ppb_msq.h
@@ -23,7 +23,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
- * $Id: ppb_msq.h,v 1.2 1998/09/13 18:26:26 nsouch Exp $
+ * $Id: ppb_msq.h,v 1.3 1999/01/10 12:04:54 nsouch Exp $
*
*/
#ifndef __PPB_MSQ_H
@@ -119,23 +119,23 @@
#define MS_RFETCH_P(n,reg,mask) { MS_OP_RFETCH_P, { n, reg, mask } }
/* ptr manipulation */
-#define MS_PTR(ptr) { MS_OP_PTR, { ptr } }
+#define MS_PTR(ptr) { MS_OP_PTR, { { ptr } } }
#define MS_DASS(byte) MS_RASSERT(MS_REG_DTR,byte)
#define MS_SASS(byte) MS_RASSERT(MS_REG_STR,byte)
#define MS_CASS(byte) MS_RASSERT(MS_REG_CTR,byte)
-#define MS_SET(accum) { MS_OP_SET, { accum } }
+#define MS_SET(accum) { MS_OP_SET, { { accum } } }
#define MS_BRSET(mask,offset) { MS_OP_BRSET, { mask, offset } }
-#define MS_DBRA(offset) { MS_OP_DBRA, { offset } }
-#define MS_BRCLEAR(mask,offset) { MS_OP_BRCLEAR, { mask, offset } }
+#define MS_DBRA(offset) { MS_OP_DBRA, { { offset } } }
+#define MS_BRCLEAR(mask,offset) { MS_OP_BRCLEAR, { { mask }, { offset } } }
#define MS_BRSTAT(mask_set,mask_clr,offset) \
{ MS_OP_BRSTAT, { mask_set, mask_clr, offset } }
/* C function or submicrosequence call */
#define MS_C_CALL(function,parameter) \
{ MS_OP_C_CALL, { function, parameter } }
-#define MS_CALL(microseq) { MS_OP_CALL, { microseq } }
+#define MS_CALL(microseq) { MS_OP_CALL, { { microseq } } }
/* mode dependent read/write operations
* ppb_MS_xxx_init() call required otherwise default is
@@ -144,14 +144,14 @@
#define MS_GET(ptr,len) { MS_OP_GET, { ptr, len } }
/* delay in microseconds */
-#define MS_DELAY(udelay) { MS_OP_DELAY, { udelay } }
+#define MS_DELAY(udelay) { MS_OP_DELAY, { { udelay } } }
/* asynchroneous delay in ms */
-#define MS_ADELAY(mdelay) { MS_OP_ADELAY, { mdelay } }
+#define MS_ADELAY(mdelay) { MS_OP_ADELAY, { { mdelay } } }
/* return from submicrosequence execution or microseqence execution */
-#define MS_SUBRET(code) { MS_OP_SUBRET, { code } }
-#define MS_RET(code) { MS_OP_RET, { code } }
+#define MS_SUBRET(code) { MS_OP_SUBRET, { { code } } }
+#define MS_RET(code) { MS_OP_RET, { { code } } }
/*
* Function abstraction level
OpenPOWER on IntegriCloud