[parisc-linux] HIL_BASE ("finding" devices)

Brian S. Julin bri@mojo.calyx.net
Sun, 12 Mar 2000 15:52:52 -0500 (EST)



Hi,

I've only just really started to hack at the HIL driver, but
one thing I noticed off the bat is that the HIL_BASE defined
in hil.h is 0xf0821000 while the device base listed when 
I boot for the HIL is 0xf0201000.  This probably means it 
varies across different models.

Optimally I suppose the best thing would be to somehow 
find the device -- the code that prints out the hardware 
found seems to get strings from the "pdc" which I glean is
the "BIOS".  I suppose the only thing the HIL will have that
is unique is this string, or are there model invariant 
numbers like the PCI fn?  (I haven't been through every 
entry in the hardware database to see.)  Basically I'm
asking is there a better way than a strcmp on the pdc string?

Alternatively I suppose we could do what the alpha folk
have done and have a compile-time selection of the system type
(e.g. "avanti") which sets the values for various things like that.

--
Brian S. Julin