Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/arch/x86/pci use 4-byte style accesses, should hopefully...



details:   https://anonhg.NetBSD.org/src/rev/201513d13860
branches:  trunk
changeset: 348038:201513d13860
user:      mrg <mrg%NetBSD.org@localhost>
date:      Sat Oct 01 21:51:52 2016 +0000

description:
use 4-byte style accesses, should hopefully fix PR#37787.

diffstat:

 sys/arch/x86/pci/pchb.c |  14 +++++++-------
 1 files changed, 7 insertions(+), 7 deletions(-)

diffs (37 lines):

diff -r e311fccfa544 -r 201513d13860 sys/arch/x86/pci/pchb.c
--- a/sys/arch/x86/pci/pchb.c   Sat Oct 01 20:59:49 2016 +0000
+++ b/sys/arch/x86/pci/pchb.c   Sat Oct 01 21:51:52 2016 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: pchb.c,v 1.34 2012/04/16 04:57:42 pgoyette Exp $ */
+/*     $NetBSD: pchb.c,v 1.35 2016/10/01 21:51:52 mrg Exp $ */
 
 /*-
  * Copyright (c) 1996, 1998, 2000 The NetBSD Foundation, Inc.
@@ -30,7 +30,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.34 2012/04/16 04:57:42 pgoyette Exp $");
+__KERNEL_RCSID(0, "$NetBSD: pchb.c,v 1.35 2016/10/01 21:51:52 mrg Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -61,13 +61,13 @@
 #define        I82443BX_SDRAMC_REG     0x74 /* upper 16 bits */
 
 /* XXX should be in dev/ic/i82424{reg.var}.h */
-#define I82424_CPU_BCTL_REG            0x53
+#define I82424_CPU_BCTL_REG            0x50 /* upper 8 bits */
 #define I82424_PCI_BCTL_REG            0x54
 
-#define I82424_BCTL_CPUMEM_POSTEN      0x01
-#define I82424_BCTL_CPUPCI_POSTEN      0x02
-#define I82424_BCTL_PCIMEM_BURSTEN     0x01
-#define I82424_BCTL_PCI_BURSTEN                0x02
+#define I82424_BCTL_CPUMEM_POSTEN      0x01000000
+#define I82424_BCTL_CPUPCI_POSTEN      0x02000000
+#define I82424_BCTL_PCIMEM_BURSTEN     0x01000000
+#define I82424_BCTL_PCI_BURSTEN                0x02000000
 
 static int     pchbmatch(device_t, cfdata_t, void *);
 static void    pchbattach(device_t, device_t, void *);



Home | Main Index | Thread Index | Old Index