Have working bus_peek(), and drivers use it.
This commit is contained in:
parent
629ef9cd78
commit
bfae9f3105
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_ie_subr.c,v 1.1 1994/12/12 18:59:10 gwr Exp $ */
|
||||
/* $NetBSD: if_ie_subr.c,v 1.2 1994/12/13 18:31:48 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -86,6 +86,8 @@ ie_md_match(parent, vcf, args)
|
||||
|
||||
case BUS_VME16:
|
||||
/* No default VME address. */
|
||||
if (ca->ca_paddr == -1)
|
||||
return(0);
|
||||
sz = 2;
|
||||
break;
|
||||
|
||||
@ -98,7 +100,8 @@ ie_md_match(parent, vcf, args)
|
||||
ca->ca_intpri = 3;
|
||||
|
||||
/* The peek returns non-zero on bus error. */
|
||||
return (!bus_peek(ca, 0, sz, &x));
|
||||
x = bus_peek(ca->ca_bustype, ca->ca_paddr, sz);
|
||||
return (x != -1);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: if_le_subr.c,v 1.9 1994/12/12 18:59:15 gwr Exp $ */
|
||||
/* $NetBSD: if_le_subr.c,v 1.10 1994/12/13 18:31:51 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -76,7 +76,8 @@ le_md_match(parent, vcf, args)
|
||||
ca->ca_intpri = 3;
|
||||
|
||||
/* The peek returns non-zero on bus error. */
|
||||
return (!bus_peek(ca, 0, 1, &x));
|
||||
x = bus_peek(ca->ca_bustype, ca->ca_paddr, 1);
|
||||
return (x != -1);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: si.c,v 1.10 1994/12/12 18:59:25 gwr Exp $ */
|
||||
/* $NetBSD: si.c,v 1.11 1994/12/13 18:31:52 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (C) 1994 Adam Glass, Gordon W. Ross
|
||||
@ -193,7 +193,8 @@ si_match(parent, vcf, args)
|
||||
ca->ca_intpri = 2;
|
||||
|
||||
/* The peek returns non-zero on error. */
|
||||
return !bus_peek(ca, 0, 1, &x);
|
||||
x = bus_peek(ca->ca_bustype, ca->ca_paddr, 1);
|
||||
return (x != -1);
|
||||
}
|
||||
|
||||
static void
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: zs.c,v 1.13 1994/12/12 18:59:27 gwr Exp $ */
|
||||
/* $NetBSD: zs.c,v 1.14 1994/12/13 18:31:54 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -205,7 +205,8 @@ zs_match(struct device *parent, void *vcf, void *args)
|
||||
ca->ca_intpri = ZSHARD_PRI;
|
||||
|
||||
/* The peek returns non-zero on error. */
|
||||
return !bus_peek(ca, 0, 1, &x);
|
||||
x = bus_peek(ca->ca_bustype, ca->ca_paddr, 1);
|
||||
return (x != -1);
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: autoconf.h,v 1.7 1994/12/12 18:59:39 gwr Exp $ */
|
||||
/* $NetBSD: autoconf.h,v 1.8 1994/12/13 18:26:39 gwr Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1994 Gordon W. Ross
|
||||
@ -57,4 +57,4 @@ struct confargs {
|
||||
int always_match __P((struct device *, void *, void *));
|
||||
void bus_scan __P((struct device *, void *, int));
|
||||
int bus_print __P((void *, char *));
|
||||
int bus_peek __P((struct confargs *, int off, int sz, int *));
|
||||
int bus_peek __P((int, int, int));
|
||||
|
Loading…
x
Reference in New Issue
Block a user