Also correct the attach flags to enable IO space on the Intel 450NX.

OK'ed by fvdl.
This commit is contained in:
he 2002-03-16 22:17:27 +00:00
parent 94e84af5fb
commit be17728da0
1 changed files with 7 additions and 2 deletions

View File

@ -1,4 +1,4 @@
/* $NetBSD: pchb.c,v 1.31 2002/01/14 01:45:54 augustss Exp $ */
/* $NetBSD: pchb.c,v 1.32 2002/03/16 22:17:27 he Exp $ */
/*-
* Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@ -37,7 +37,7 @@
*/
#include <sys/cdefs.h>
__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.31 2002/01/14 01:45:54 augustss Exp $");
__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.32 2002/03/16 22:17:27 he Exp $");
#include <sys/types.h>
#include <sys/param.h>
@ -226,6 +226,11 @@ pchbattach(struct device *parent, struct device *self, void *aux)
* (It would be easier to attach all the buses
* at the MIOC, but less aesthetical imho.)
*/
if ((attachflags &
(PCI_FLAGS_IO_ENABLED | PCI_FLAGS_MEM_ENABLED)) ==
PCI_FLAGS_MEM_ENABLED)
attachflags |= PCI_FLAGS_IO_ENABLED;
pbnum = 0;
switch (pa->pa_device) {
case 18: /* PXB 0 bus A - primary bus */