From cfda8b8847afc6a44e952fa3a892e806823a7257 Mon Sep 17 00:00:00 2001 From: "Federico G. Schwindt" Date: Sun, 2 May 1999 22:35:41 +0000 Subject: Add support for Vadem PCMCIA controllers. --- sys/dev/ic/i82365var.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'sys/dev/ic/i82365var.h') diff --git a/sys/dev/ic/i82365var.h b/sys/dev/ic/i82365var.h index 7c62228d87e..511d4e277c9 100644 --- a/sys/dev/ic/i82365var.h +++ b/sys/dev/ic/i82365var.h @@ -1,4 +1,4 @@ -/* $OpenBSD: i82365var.h,v 1.2 1999/01/03 10:05:52 deraadt Exp $ */ +/* $OpenBSD: i82365var.h,v 1.3 1999/05/02 22:35:40 fgsch Exp $ */ /* $NetBSD: i82365var.h,v 1.4 1998/05/23 18:32:29 matt Exp $ */ /* @@ -171,5 +171,7 @@ pcic_write(h, idx, data) if (idx != -1) bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_INDEX, h->sock + idx); - bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_DATA, (data)); + if (data != -1) + bus_space_write_1(h->sc->iot, h->sc->ioh, PCIC_REG_DATA, + (data)); } -- cgit v1.2.3