Subject: Re: wscons and XFree keyboard problems on SPARCbook 3TX
To: None <port-sparc@netbsd.org>
From: Michael <macallan18@earthlink.net>
List: port-sparc
Date: 10/31/2005 18:14:24
--Signature_Mon__31_Oct_2005_18_14_24_-0500_Pso1yix4r8ljf.7_
Content-Type: text/plain; charset=US-ASCII
Content-Transfer-Encoding: quoted-printable

Hello,

> - more LCD stuff, like the spinning thingie when accessing the disk or
>   ethernet link status, modem and so on. Hacking this into existing
>   code is easy but a more generic solution would be desirable. Maybe I
>   should abuse one indicator to show wether serial ports are powered
>   up, or scroll panic messages through the LCD, or blink the ethernet
>   indicator depending on traffic - nobody said it has to behave=20
>   exactly the same as under Solaris ;)

I've got something to make some of this work, but I'm not overly sure
it's the right way to do it. Here's what I did:

It's starting a kernel thread from tctrl_attach which looks for sd0 and
le0. When it finds them it keeps checking the disk's transfer counters
and lance_softc's sc_havecarrier every half second and updates the
LCD when necessary.=20

The devices watched could be made configurable, via kernel config or
userland, I should probably look for a device-independent way to check
the network status. It could for instance watch a wireless card which
would be more interesting than the carrier on the built-in interface,
but then it would have to cope with devices getting added and removed.
Offloading the whole thing into userspace seems a bit over the top, at
least for the disk spinner.

have fun
Michael

--Signature_Mon__31_Oct_2005_18_14_24_-0500_Pso1yix4r8ljf.7_
Content-Type: application/pgp-signature

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (NetBSD)

iQEVAwUBQ2alUMpnzkX8Yg2nAQL7agf+LiyON0/IFhWSKYc+lxxJH74zvc5dJxHA
BcyCAPYndt89HZCNkPjAO/1+eZ0tvA2JWzMVg6XA2jeUQpcMzsqNqUhu4idHZQi+
h0HPMfuL9IFX7Nk4uFEjJC3rDRn5nZgPAR8UAee0xNmVPaMsoWXgMg/MX2lfunkv
HiTZvniv4AxFR8WIPEpYXJJyjoKhNntp+7fdmjVVSIhEz5QP8KREVWSXaqfC81I0
Peb3+ycGcaVtgyUmFXzA3/UU7j88UAjNlVT5RaLFoHRRlSMeFuYvhlLG/YoSlo29
bL8I1WT4X6teCcYTTpa8xtw/HRTgKY/3OnMB3mhOMswyY+4icaRAow==
=Ceug
-----END PGP SIGNATURE-----

--Signature_Mon__31_Oct_2005_18_14_24_-0500_Pso1yix4r8ljf.7_--