summaryrefslogtreecommitdiff
path: root/sys/dev/ic/smc93cx6var.h
diff options
context:
space:
mode:
authorshawn <shawn@cvs.openbsd.org>1996-06-27 21:15:56 +0000
committershawn <shawn@cvs.openbsd.org>1996-06-27 21:15:56 +0000
commit9b8458abe82eafc40a5af7d154cf1ae00f7201c8 (patch)
treee38ab70dc915fb740b5b3e09ae7833d407807560 /sys/dev/ic/smc93cx6var.h
parent1110f451a70507ded794d18ee2ba775b73688ccb (diff)
new 2940 driver merged from freebsd sources 960623
Diffstat (limited to 'sys/dev/ic/smc93cx6var.h')
-rw-r--r--sys/dev/ic/smc93cx6var.h15
1 files changed, 12 insertions, 3 deletions
diff --git a/sys/dev/ic/smc93cx6var.h b/sys/dev/ic/smc93cx6var.h
index d1c7c0162cc..017d6aee071 100644
--- a/sys/dev/ic/smc93cx6var.h
+++ b/sys/dev/ic/smc93cx6var.h
@@ -20,7 +20,7 @@
* 4. Modifications may be freely made to this file if the above conditions
* are met.
*
- * $Id: smc93cx6var.h,v 1.1 1996/05/26 00:27:06 deraadt Exp $
+ * $Id: smc93cx6var.h,v 1.2 1996/06/27 21:15:50 shawn Exp $
*/
#include <sys/param.h>
@@ -59,6 +59,17 @@ struct seeprom_descriptor {
*
* A failed read attempt returns 0, and a successful read returns 1.
*/
+
+#if defined(__FreeBSD__)
+#define SEEPROM_INB(sd) inb(sd->sd_iobase)
+#define SEEPROM_OUTB(sd, value) outb(sd->sd_iobase, value)
+#elif defined(__NetBSD__)
+#define SEEPROM_INB(sd) \
+ bus_io_read_1(sd->sd_bc, sd->sd_ioh, sd->sd_offset)
+#define SEEPROM_OUTB(sd, value) \
+ bus_io_write_1(sd->sd_bc, sd->sd_ioh, sd->sd_offset, value)
+#endif
+
#if defined(__FreeBSD__)
int read_seeprom __P((struct seeprom_descriptor *sd,
u_int16_t *buf, u_int start_addr, int count));
@@ -66,5 +77,3 @@ int read_seeprom __P((struct seeprom_descriptor *sd,
int read_seeprom __P((struct seeprom_descriptor *sd,
u_int16_t *buf, bus_io_size_t start_addr, bus_io_size_t count));
#endif
-int acquire_seeprom __P((struct seeprom_descriptor *sd));
-void release_seeprom __P((struct seeprom_descriptor *sd));