oops on byte enables for TurboLaser systems
This commit is contained in:
parent
4fa71d82a5
commit
5f59df9630
@ -1,4 +1,4 @@
|
||||
/* $NetBSD: dwlpx_pci.c,v 1.8 1997/09/02 13:19:28 thorpej Exp $ */
|
||||
/* $NetBSD: dwlpx_pci.c,v 1.9 1998/04/15 00:48:58 mjacob Exp $ */
|
||||
|
||||
/*
|
||||
* Copyright (c) 1997 by Matthew Jacob
|
||||
@ -32,7 +32,7 @@
|
||||
|
||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.8 1997/09/02 13:19:28 thorpej Exp $");
|
||||
__KERNEL_RCSID(0, "$NetBSD: dwlpx_pci.c,v 1.9 1998/04/15 00:48:58 mjacob Exp $");
|
||||
|
||||
#include <sys/param.h>
|
||||
#include <sys/systm.h>
|
||||
@ -173,7 +173,7 @@ dwlpx_conf_read(cpv, tag, offset)
|
||||
paddr |= (((unsigned long) sc->dwlpx_hosenum) << 34);
|
||||
paddr |= (((u_long) sc->dwlpx_node - 4) << 36);
|
||||
paddr |= (1LL << 39);
|
||||
paddr |= (1LL << 3); /* 32 Bit PCI byte enables */
|
||||
paddr |= (3LL << 3); /* 32 Bit PCI byte enables */
|
||||
|
||||
dp = (pcireg_t *)KV(paddr);
|
||||
if (badaddr(dp, sizeof (*dp)) == 0) {
|
||||
@ -242,7 +242,7 @@ dwlpx_conf_write(cpv, tag, offset, data)
|
||||
paddr |= (((unsigned long) sc->dwlpx_hosenum) << 34);
|
||||
paddr |= (((u_long) sc->dwlpx_node - 4) << 36);
|
||||
paddr |= (1LL << 39);
|
||||
paddr |= (1LL << 3); /* 32 bit PCI byte enables */
|
||||
paddr |= (3LL << 3); /* 32 bit PCI byte enables */
|
||||
|
||||
dp = (pcireg_t *)KV(paddr);
|
||||
*dp = data;
|
||||
|
Loading…
Reference in New Issue
Block a user