From e5328857ded8d65cdd5dca67f08334db914c7e59 Mon Sep 17 00:00:00 2001 From: Nate Williams Date: Sat, 21 Dec 1996 17:53:39 +0000 Subject: [PATCH] PCCARD support safety belts. Don't allow people to use the 'dedicated' drivers at the same time as the generic support code, as it can cause all sorts of problems including kernel crashes. [ definite 2.2 material ] --- sys/i386/isa/if_ze.c | 9 ++++++++- sys/i386/isa/if_zp.c | 9 ++++++++- 2 files changed, 16 insertions(+), 2 deletions(-) diff --git a/sys/i386/isa/if_ze.c b/sys/i386/isa/if_ze.c index 1b7e1aba6ad..9f9951c8ffa 100644 --- a/sys/i386/isa/if_ze.c +++ b/sys/i386/isa/if_ze.c @@ -47,9 +47,16 @@ */ /* - * $Id: if_ze.c,v 1.33 1996/08/06 21:14:11 phk Exp $ + * $Id: if_ze.c,v 1.34 1996/12/13 21:28:24 wollman Exp $ */ +/* XXX - Don't mix different PCCARD support code */ +#include "pcic.h" +#include "crd.h" +#if NCRD > 0 || NPCIC > 0 +#error Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed +#endif + #include "ze.h" #if NZE > 0 #include "bpfilter.h" diff --git a/sys/i386/isa/if_zp.c b/sys/i386/isa/if_zp.c index d76bd88facb..d649bccb309 100644 --- a/sys/i386/isa/if_zp.c +++ b/sys/i386/isa/if_zp.c @@ -34,7 +34,7 @@ * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. * * From: if_ep.c,v 1.9 1994/01/25 10:46:29 deraadt Exp $ - * $Id: if_zp.c,v 1.27 1996/11/11 17:11:08 bde Exp $ + * $Id: if_zp.c,v 1.28 1996/12/13 21:28:25 wollman Exp $ */ /*- * TODO: @@ -100,6 +100,13 @@ * ETO, Toshihisa */ +/* XXX - Don't mix different PCCARD support code */ +#include "pcic.h" +#include "crd.h" +#if NCRD > 0 || NPCIC > 0 +#error Dedicated PCMCIA drivers and generic PCMCIA support can't be mixed +#endif + #include "zp.h" #include "bpfilter.h"