diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-06 06:44:50 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 1997-10-06 06:44:50 +0000 |
commit | da9d52f5837a5d21230fdb6406204160a6eee497 (patch) | |
tree | 970b3ef3ad55c54e1c34b6ad2c0e5826e0ff8040 /sys/arch/hp300/dev | |
parent | e4901a98770a8625bfada81d5addc54094c02a3d (diff) |
Set da_id to DIO_DEVICE_ID_IHPIB if this is an internal hpib controller.
Prevents nhpib0 from getting probed as dca1 on an hp400.
Diffstat (limited to 'sys/arch/hp300/dev')
-rw-r--r-- | sys/arch/hp300/dev/dio.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/sys/arch/hp300/dev/dio.c b/sys/arch/hp300/dev/dio.c index 6560bf9b53e..4050e865588 100644 --- a/sys/arch/hp300/dev/dio.c +++ b/sys/arch/hp300/dev/dio.c @@ -1,4 +1,4 @@ -/* $OpenBSD: dio.c,v 1.5 1997/07/06 08:01:48 downsj Exp $ */ +/* $OpenBSD: dio.c,v 1.6 1997/10/06 06:44:49 millert Exp $ */ /* $NetBSD: dio.c,v 1.7 1997/05/05 21:00:32 thorpej Exp $ */ /*- @@ -148,7 +148,10 @@ dioattach(parent, self, aux) /* Fill out attach args. */ bzero(&da, sizeof(da)); da.da_scode = scode; - da.da_id = DIO_ID(va); + if (scode == 7 && internalhpib) + da.da_id = DIO_DEVICE_ID_IHPIB; + else + da.da_id = DIO_ID(va); if (DIO_ISFRAMEBUFFER(da.da_id)) da.da_secid = DIO_SECID(va); |