changeset 1776:11a294ddab36

pci i/o fix
author msalter
date Mon, 27 Sep 2004 18:41:55 +0000
parents 9d22942e382a
children 5229788b26d4
files packages/hal/arm/xscale/ixp425/current/ChangeLog packages/hal/arm/xscale/ixp425/current/src/ixp425_pci.c
diffstat 2 files changed, 6 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/packages/hal/arm/xscale/ixp425/current/ChangeLog
+++ b/packages/hal/arm/xscale/ixp425/current/ChangeLog
@@ -1,3 +1,7 @@
+2004-09-27  Mark Salter  <msalter@redhat.com>
+
+	* src/ixp425_pci.c (pci_config): Fix offset handling.
+
 2004-09-02  Mark Salter  <msalter@redhat.com>
 
 	* include/var_io.h: Add externs for hal_flash_{read,program}.
--- a/packages/hal/arm/xscale/ixp425/current/src/ixp425_pci.c
+++ b/packages/hal/arm/xscale/ixp425/current/src/ixp425_pci.c
@@ -8,7 +8,7 @@
 //####ECOSGPLCOPYRIGHTBEGIN####
 // -------------------------------------------
 // This file is part of eCos, the Embedded Configurable Operating System.
-// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003 Red Hat, Inc.
+// Copyright (C) 1998, 1999, 2000, 2001, 2002, 2003, 2004 Red Hat, Inc.
 //
 // eCos is free software; you can redistribute it and/or modify it under
 // the terms of the GNU General Public License as published by the Free
@@ -144,7 +144,7 @@ pci_config(cyg_uint32 bus, cyg_uint32 de
 	// than config read/write are desired, bus 0, devfn 0 is used to
 	// indicate that the offset should be used as the address.
 	if (devfn == 0) {
-	    *IXP425_PCI_NP_AD = offset & ~3;
+	    *IXP425_PCI_NP_AD = offset;
 	} else {
 	    // type 0
 	    //