Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/dev/ic do not assume that a bus_space_handle_t is simply...
details: https://anonhg.NetBSD.org/src/rev/fe7b1594bf35
branches: trunk
changeset: 970387:fe7b1594bf35
user: macallan <macallan%NetBSD.org@localhost>
date: Sun Mar 22 16:46:30 2020 +0000
description:
do not assume that a bus_space_handle_t is simply an offset
now this has a fighting chance of working on sparc64
diffstat:
sys/dev/ic/mvsata.c | 7 ++++---
1 files changed, 4 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 10e6df98b98b -r fe7b1594bf35 sys/dev/ic/mvsata.c
--- a/sys/dev/ic/mvsata.c Sun Mar 22 16:43:57 2020 +0000
+++ b/sys/dev/ic/mvsata.c Sun Mar 22 16:46:30 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: mvsata.c,v 1.53 2020/02/19 16:04:39 riastradh Exp $ */
+/* $NetBSD: mvsata.c,v 1.54 2020/03/22 16:46:30 macallan Exp $ */
/*
* Copyright (c) 2008 KIYOHARA Takashi
* All rights reserved.
@@ -26,7 +26,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.53 2020/02/19 16:04:39 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: mvsata.c,v 1.54 2020/03/22 16:46:30 macallan Exp $");
#include "opt_mvsata.h"
@@ -669,7 +669,8 @@
const uint32_t val = SControl_IPM_NONE | SControl_SPD_ANY |
SControl_DET_DISABLE;
- MVSATA_EDMA_WRITE_4(mvport, mvport->port_sata_scontrol, val);
+ bus_space_write_4(mvport->port_iot,
+ mvport->port_sata_scontrol, 0, val);
ctrl = MVSATA_EDMA_READ_4(mvport, SATA_SATAICFG);
ctrl &= ~(1 << 17); /* Disable GenII */
Home |
Main Index |
Thread Index |
Old Index