summaryrefslogtreecommitdiff
path: root/sys/dev/ic
diff options
context:
space:
mode:
authorThomas Nordin <nordin@cvs.openbsd.org>2002-01-30 20:45:36 +0000
committerThomas Nordin <nordin@cvs.openbsd.org>2002-01-30 20:45:36 +0000
commitf4ca009318dd00a3457741ce99764a6ba3d19a3e (patch)
treeebb8dedcc23a899dc0a07324baf6ec4ce4ad4be4 /sys/dev/ic
parenta9a53aa7b56a80647eeb095733a5239751dbf725 (diff)
Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ ok
Diffstat (limited to 'sys/dev/ic')
-rw-r--r--sys/dev/ic/com.c7
-rw-r--r--sys/dev/ic/cy.c8
2 files changed, 2 insertions, 13 deletions
diff --git a/sys/dev/ic/com.c b/sys/dev/ic/com.c
index ce9170b8218..87b148938d5 100644
--- a/sys/dev/ic/com.c
+++ b/sys/dev/ic/com.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: com.c,v 1.79 2002/01/25 21:23:38 mickey Exp $ */
+/* $OpenBSD: com.c,v 1.80 2002/01/30 20:45:34 nordin Exp $ */
/* $NetBSD: com.c,v 1.82.4.1 1996/06/02 09:08:00 mrg Exp $ */
/*
@@ -138,11 +138,6 @@ void com_kgdb_putc __P((void *, int));
#define DEVUNIT(x) (minor(x) & 0x7f)
#define DEVCUA(x) (minor(x) & 0x80)
-/* Macros to clear/set/test flags. */
-#define SET(t, f) (t) |= (f)
-#define CLR(t, f) (t) &= ~(f)
-#define ISSET(t, f) ((t) & (f))
-
int
comspeed(freq, speed)
long freq;
diff --git a/sys/dev/ic/cy.c b/sys/dev/ic/cy.c
index 9117d0870ad..dbfab37de69 100644
--- a/sys/dev/ic/cy.c
+++ b/sys/dev/ic/cy.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cy.c,v 1.15 2001/08/20 04:41:39 smart Exp $ */
+/* $OpenBSD: cy.c,v 1.16 2002/01/30 20:45:34 nordin Exp $ */
/*
* cy.c
@@ -57,12 +57,6 @@
#include <dev/ic/cyreg.h>
-/* Macros to clear/set/test flags. */
-#define SET(t, f) (t) |= (f)
-#define CLR(t, f) (t) &= ~(f)
-#define ISSET(t, f) ((t) & (f))
-
-
void cy_attach __P((struct device *, struct device *, void *));
int cy_probe_common __P((int, bus_space_tag_t, bus_space_handle_t, int));
int cy_intr __P((void *));