summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorpk <pk@NetBSD.org>1998-08-27 20:05:11 +0000
committerpk <pk@NetBSD.org>1998-08-27 20:05:11 +0000
commitdd0709d28d888dfb6ed26528792cbae9cd3f430d (patch)
tree84325f85328fe9437b4bbb728f9adcbdbb9fa235 /sys/dev/ic
parent142bff0170f11cf07bf598f89f2e83a540397414 (diff)
Add selected `%b' bits.
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/ad1848reg.h5
-rw-r--r--sys/dev/ic/cs4231reg.h4
2 files changed, 7 insertions, 2 deletions
diff --git a/sys/dev/ic/ad1848reg.h b/sys/dev/ic/ad1848reg.h
index 0df7321cd85..8d6821e0368 100644
--- a/sys/dev/ic/ad1848reg.h
+++ b/sys/dev/ic/ad1848reg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: ad1848reg.h,v 1.6 1998/08/27 19:53:03 pk Exp $ */
+/* $NetBSD: ad1848reg.h,v 1.7 1998/08/27 20:05:11 pk Exp $ */
/*
* Copyright (c) 1994 John Brezak
@@ -104,6 +104,9 @@
#define CAPTURE_UPPER 0x80
/* cplower is not upper */
+#define AD_R2_BITS "\20\1INT\2PRDY\3PL/R\4PU/L\5SER\6CRDY\7CL/R\10CU/L"
+
+
/* ADC Input control - registers I0 (left) and I1 (right) */
#define LINE_INPUT 0x00
#define AUX_INPUT 0x40
diff --git a/sys/dev/ic/cs4231reg.h b/sys/dev/ic/cs4231reg.h
index 54717ac255d..d175d53863f 100644
--- a/sys/dev/ic/cs4231reg.h
+++ b/sys/dev/ic/cs4231reg.h
@@ -1,4 +1,4 @@
-/* $NetBSD: cs4231reg.h,v 1.6 1998/08/27 19:53:02 pk Exp $ */
+/* $NetBSD: cs4231reg.h,v 1.7 1998/08/27 20:05:11 pk Exp $ */
/*-
* Copyright (c) 1996 The NetBSD Foundation, Inc.
@@ -129,6 +129,8 @@
#define CS_IRQ_TI 0x40 /* Timer Interrupt */
#define CS_IRQ_RES 0x80 /* reserved */
+#define CS_I24_BITS "\20\1PU\2PO\3CO\4CU\5PI\6CI\7TI"
+
/* VERSION - register I25 */
#define CS_VERSION_NUMBER 0xe0 /* Version number:
* 0x101 - 4231 rev. A