summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorJason Wright <jason@cvs.openbsd.org>2001-06-26 03:43:27 +0000
committerJason Wright <jason@cvs.openbsd.org>2001-06-26 03:43:27 +0000
commitc973d3f3e49a8ac701ff82ca72718621ef49b45d (patch)
tree4351dd1817bb5e4c25d177f36e2aae32e7fa53fb /sys
parent63d09728b909bb34b42617d72781a82df08f1de4 (diff)
move bus access to var where it belongs
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/pci/hifn7751reg.h7
-rw-r--r--sys/dev/pci/hifn7751var.h7
2 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/pci/hifn7751reg.h b/sys/dev/pci/hifn7751reg.h
index 24879ae3e09..0256c714a73 100644
--- a/sys/dev/pci/hifn7751reg.h
+++ b/sys/dev/pci/hifn7751reg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751reg.h,v 1.25 2001/06/25 22:03:08 jason Exp $ */
+/* $OpenBSD: hifn7751reg.h,v 1.26 2001/06/26 03:43:25 jason Exp $ */
/*
* Invertex AEON / Hi/fn 7751 driver
@@ -308,11 +308,6 @@ typedef struct hifn_desc {
/* Random number generator config register (HIFN_1_RNG_CONFIG) */
#define HIFN_RNGCFG_ENA 0x00000001 /* enable rng */
-#define WRITE_REG_0(sc,reg,val) \
- bus_space_write_4((sc)->sc_st0, (sc)->sc_sh0, reg, val)
-#define READ_REG_0(sc,reg) \
- bus_space_read_4((sc)->sc_st0, (sc)->sc_sh0, reg)
-
/*
* Register offsets in register set 1
*/
diff --git a/sys/dev/pci/hifn7751var.h b/sys/dev/pci/hifn7751var.h
index caeb952c43f..76f4abf4c55 100644
--- a/sys/dev/pci/hifn7751var.h
+++ b/sys/dev/pci/hifn7751var.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: hifn7751var.h,v 1.25 2001/06/24 19:31:50 jason Exp $ */
+/* $OpenBSD: hifn7751var.h,v 1.26 2001/06/26 03:43:26 jason Exp $ */
/*
* Invertex AEON / Hi/fn 7751 driver
@@ -126,6 +126,11 @@ struct hifn_softc {
struct hifn_session sc_sessions[2048];
};
+#define WRITE_REG_0(sc,reg,val) \
+ bus_space_write_4((sc)->sc_st0, (sc)->sc_sh0, reg, val)
+#define READ_REG_0(sc,reg) \
+ bus_space_read_4((sc)->sc_st0, (sc)->sc_sh0, reg)
+
/*
* hifn_command_t
*