Allow 64bit memory BARs if we are compiling on 64bit archs.
This commit is contained in:
parent
5663692e8e
commit
24201ba62f
|
@ -1,4 +1,4 @@
|
|||
/* $NetBSD: vga_pci.c,v 1.32 2007/03/20 18:05:31 drochner Exp $ */
|
||||
/* $NetBSD: vga_pci.c,v 1.33 2007/08/26 19:52:06 martin Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1995, 1996 Carnegie-Mellon University.
|
||||
|
@ -28,7 +28,7 @@
|
|||
*/
|
||||
|
||||
#include <sys/cdefs.h>
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.32 2007/03/20 18:05:31 drochner Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: vga_pci.c,v 1.33 2007/08/26 19:52:06 martin Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
|
@ -193,6 +193,7 @@ vga_pci_attach(struct device *parent, struct device *self, void *aux)
|
|||
/* Don't bother fetching I/O BARs. */
|
||||
continue;
|
||||
}
|
||||
#ifndef __LP64__
|
||||
if (PCI_MAPREG_MEM_TYPE(psc->sc_bars[bar].vb_type) ==
|
||||
PCI_MAPREG_MEM_TYPE_64BIT) {
|
||||
/* XXX */
|
||||
|
@ -201,6 +202,7 @@ vga_pci_attach(struct device *parent, struct device *self, void *aux)
|
|||
bar++;
|
||||
continue;
|
||||
}
|
||||
#endif
|
||||
if (pci_mapreg_info(psc->sc_pc, psc->sc_pcitag, reg,
|
||||
psc->sc_bars[bar].vb_type,
|
||||
&psc->sc_bars[bar].vb_base,
|
||||
|
|
Loading…
Reference in New Issue