Source-Changes-HG archive

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

[src/trunk]: src/sys/dev/ic Change bus_space_subregion() size for each SATA P...



details:   https://anonhg.NetBSD.org/src/rev/7eaa853863d4
branches:  trunk
changeset: 749226:7eaa853863d4
user:      jakllsch <jakllsch%NetBSD.org@localhost>
date:      Sat Nov 21 23:47:01 2009 +0000

description:
Change bus_space_subregion() size for each SATA PHY register from 1 to 4,
as we do a bus_space_read_4() within these subregions.

diffstat:

 sys/dev/ic/ahcisata_core.c |  10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diffs (41 lines):

diff -r 9ed37ef4c30a -r 7eaa853863d4 sys/dev/ic/ahcisata_core.c
--- a/sys/dev/ic/ahcisata_core.c        Sat Nov 21 23:44:25 2009 +0000
+++ b/sys/dev/ic/ahcisata_core.c        Sat Nov 21 23:47:01 2009 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: ahcisata_core.c,v 1.21 2009/10/19 18:41:12 bouyer Exp $        */
+/*     $NetBSD: ahcisata_core.c,v 1.22 2009/11/21 23:47:01 jakllsch Exp $      */
 
 /*
  * Copyright (c) 2006 Manuel Bouyer.
@@ -26,7 +26,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.21 2009/10/19 18:41:12 bouyer Exp $");
+__KERNEL_RCSID(0, "$NetBSD: ahcisata_core.c,v 1.22 2009/11/21 23:47:01 jakllsch Exp $");
 
 #include <sys/types.h>
 #include <sys/malloc.h>
@@ -383,19 +383,19 @@
                ahci_setup_port(sc, i);
                chp->ch_ndrive = 1;
                if (bus_space_subregion(sc->sc_ahcit, sc->sc_ahcih,
-                   AHCI_P_SSTS(i), 1,  &achp->ahcic_sstatus) != 0) {
+                   AHCI_P_SSTS(i), 4,  &achp->ahcic_sstatus) != 0) {
                        aprint_error("%s: couldn't map channel %d "
                            "sata_status regs\n", AHCINAME(sc), i);
                        break;
                }
                if (bus_space_subregion(sc->sc_ahcit, sc->sc_ahcih,
-                   AHCI_P_SCTL(i), 1,  &achp->ahcic_scontrol) != 0) {
+                   AHCI_P_SCTL(i), 4,  &achp->ahcic_scontrol) != 0) {
                        aprint_error("%s: couldn't map channel %d "
                            "sata_control regs\n", AHCINAME(sc), i);
                        break;
                }
                if (bus_space_subregion(sc->sc_ahcit, sc->sc_ahcih,
-                   AHCI_P_SERR(i), 1,  &achp->ahcic_serror) != 0) {
+                   AHCI_P_SERR(i), 4,  &achp->ahcic_serror) != 0) {
                        aprint_error("%s: couldn't map channel %d "
                            "sata_error regs\n", AHCINAME(sc), i);
                        break;



Home | Main Index | Thread Index | Old Index