Subject: ath* wlan now available for sparc64
To: None <port-sparc64@NetBSD.org>
From: Martin Husemann <martin@duskware.de>
List: port-sparc64
Date: 03/02/2006 12:00:20
Some may have wondered back then, when I changed sys/dev/ic/ath.c:
----------------------------
revision 1.59
date: 2005/09/13 05:50:29; author: martin; state: Exp; lines: +4 -3
The entity passed to the HAL as a HAL_BUS_HANDLE needs to be an integral
or pointer type. So on sparc64 (and maybe others too?) where
bus_space_handle_t is a struct, pass the address of the bus_space_handle_t
and adjust the register access functions accordingly.
While there, slightly optimize the bus_space_* usage in the register
access functions and macros.
----------------------------
Sam Leffler provided a test HAL object file to and helped me debug issues
back then, so I could get it working. Unfortunately I could not commit the
HAL, waiting for an official release. Last night David Young imported
it, and we are finaly there:
[~] martin@sunny-weather > uname -a
NetBSD sunny-weather.duskware.de 3.99.15 NetBSD 3.99.15 (SUNNY) #1: Thu Mar 2 10:48:50 CET 2006 martin@night-porter.duskware.de:/usr/src/sys/arch/sparc64/compile/SUNNY sparc64
[~] martin@sunny-weather > ifconfig ath0
ath0: flags=8802<BROADCAST,SIMPLEX,MULTICAST> mtu 1500
ssid ""
powersave off
address: 00:0f:a3:80:ca:a0
media: IEEE802.11 autoselect
status: no network
(no network because that test machine is remote and I don't have the WAP keys
with me right now, it worked fine for me before)
Martin
----------------------------
Module Name: src
Committed By: martin
Date: Thu Mar 2 10:44:33 UTC 2006
Modified Files:
src/sys/arch/sparc64/conf: Makefile.sparc64 files.sparc64 std.sparc64
Log Message:
Add glue to make ath* usable on sparc64.
To generate a diff of this commit:
cvs rdiff -r1.57 -r1.58 src/sys/arch/sparc64/conf/Makefile.sparc64
cvs rdiff -r1.97 -r1.98 src/sys/arch/sparc64/conf/files.sparc64
cvs rdiff -r1.12 -r1.13 src/sys/arch/sparc64/conf/std.sparc64
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.