Red Hat axp-list: Linux on Alpha (1995-2022)
 help / color / mirror / Atom feed
* AXPpci33 diagnostic LED driver ready!
@ 1998-07-24 23:38 Nils Faerber
  1998-07-25  1:26 ` Quant-X Alpha Linux Support
  1998-07-25  2:33 ` Mike Nowlin
  0 siblings, 2 replies; 4+ messages in thread
From: Nils Faerber @ 1998-07-24 23:38 UTC (permalink / raw)
  To: Linux AXP Mailinglist

Hey ho!
Me again :)
As we say in Germany: What takes long time finally becomes good!
And here we are with a great and mostly useless driver, a driver for the
eight diagnostic LEDs on the AXPpci33 board.
The driver can be found on my homepage or directly downloaded via
  http://www.si.unix-ag.org/~nils/LED_module.tar.gz

It comes with two demo programs.
The first is 'procled' which displays a bar-graph of the system load up to
load 1.0. Over load 1.0 the last bit will flash to show that it's more.
The second is the mostly useless but nice knight-rider type running light,
i.e. just one LED 'moving' from left to right and vice versa.

Any comments about the driver, enhancements or additional programs are
welcome!
My special thanks go to Thomas Bogendoerfer and Jay Estabrook. Thomas found
the correct adresses of the LEDs by disassembling the SROM code (urgh!) and
Jay took some of his time to answer my stupid questions ;)
CU
  nils

-- 
Nils Faerber (Linux Nils)        eMail: nils@unix-ag.org
Student of computer science      http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany

Siegen ... the arctic rain forest!
--


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AXPpci33 diagnostic LED driver ready!
  1998-07-24 23:38 AXPpci33 diagnostic LED driver ready! Nils Faerber
@ 1998-07-25  1:26 ` Quant-X Alpha Linux Support
  1998-07-25  2:33 ` Mike Nowlin
  1 sibling, 0 replies; 4+ messages in thread
From: Quant-X Alpha Linux Support @ 1998-07-25  1:26 UTC (permalink / raw)
  To: axp-list

Hi Nils !

> The second is the mostly useless but nice knight-rider type running light,
> i.e. just one LED 'moving' from left to right and vice versa.

> Any comments about the driver, enhancements or additional programs are
> welcome!

Hmm. kernel-timer programming is really easy.
Just make Linux the first operating system with kernel knight-rider 
support ;-} Your procled.c should be in kernel too. (selectable by
insmod-args and mode-switchable by ioctls...)
You have no read support, why not simply keep the last *LED1 = c;
value in a static variable ?
Ok, now the only really good question...
Why do you register a character device (means wasting a major #)
instead of only registering a proc entry ?

   ciao -
     Stefan

-- 

Quant-X Service &                         Ph:  (+43) 4212 6004-0
Consulting Ges.m.b.H.                     Fax: (+43) 4212 600420
http://www.quant-x.com                    Email: support@quant-x.com


^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AXPpci33 diagnostic LED driver ready!
  1998-07-24 23:38 AXPpci33 diagnostic LED driver ready! Nils Faerber
  1998-07-25  1:26 ` Quant-X Alpha Linux Support
@ 1998-07-25  2:33 ` Mike Nowlin
  1998-07-25 17:00   ` Nils Faerber
  1 sibling, 1 reply; 4+ messages in thread
From: Mike Nowlin @ 1998-07-25  2:33 UTC (permalink / raw)
  To: Linux AXP Mailinglist


> eight diagnostic LEDs on the AXPpci33 board.

Cool!  I always like dumb little things like this!  :)

The question is:  What would it take to make this run on the AS200?  I
know very little about the differences between Alpha architectures, other
than those of the 3000 series and (learning) AS200...  Are they completely
different, or just relatively minor things?

I'll grab your code and look at it later -- would like to know how the
guts of these machines work...

--Mike



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: AXPpci33 diagnostic LED driver ready!
  1998-07-25  2:33 ` Mike Nowlin
@ 1998-07-25 17:00   ` Nils Faerber
  0 siblings, 0 replies; 4+ messages in thread
From: Nils Faerber @ 1998-07-25 17:00 UTC (permalink / raw)
  To: axp-list

Hi!

> > eight diagnostic LEDs on the AXPpci33 board.
> Cool!  I always like dumb little things like this!  :)
Fine! Then it was not completely wasted time to do it ;)

> The question is:  What would it take to make this run on the AS200?  I
> know very little about the differences between Alpha architectures, other
> than those of the 3000 series and (learning) AS200...  Are they completely
> different, or just relatively minor things?
I would suspect that they work similar but for sure something is different.
The LEDs on the AXPpci33 are connected to the memory controller and toggled
when data is written to two special addresses (one address for data and one
for something like enable). The documentation was wrong so Thomas
Bogendoerfer did disassemble the SROM to find the correct addresses.
If the LEDs in the AS200 work in the same way just with different addresses
this should be no problem at all. I have file 'hardware.h' in the module's
packages containing the address definition. This would have to be changed.

> I'll grab your code and look at it later -- would like to know how the
> guts of these machines work...
See what you can do and please let me know!

> --Mike
CU
  nils

-- 
Nils Faerber (Linux Nils)        eMail: nils@unix-ag.org
Student of computer science      http://www.si.unix-ag.org/~nils/
Unix user group, University of Siegen, Germany

Siegen ... the arctic rain forest!
--


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~1998-07-25 17:00 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1998-07-24 23:38 AXPpci33 diagnostic LED driver ready! Nils Faerber
1998-07-25  1:26 ` Quant-X Alpha Linux Support
1998-07-25  2:33 ` Mike Nowlin
1998-07-25 17:00   ` Nils Faerber

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox