[parisc-linux] EISA EEPROM Driver/bus enumrator

Daniel Engstrom 5116@telia.com
Sat, 19 Jan 2002 01:25:36 +0100


--AWniW0JNca5xppdA
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 8bit

Hi, All

I have managed to figure out most of the EISA part of the EEPROM
in my 715/old.
I have used this information to create a some code the uses the EEPROM
to 'enumrate' the EISA bus.

The enumrator will configure interrupt trig-levels and register io and memory
resources like what is done for PCI devices. I guess it also could
submit a struct parisc_device if it is desirable.

I have changed the default interrupt trig level to edge now so 
ISA boards should not need to be added to the EEPROM
configuration unless the user want to.

The attached tar file contains the following:
 
eisa_enumrator.diff              
include/asm-parisc/eisa_bus.h
include/asm-parisc/eisa_eeprom.h
drivers/gsc/eisa_enumrator.c

The diff file patyches the following files:
drivers/gsc/Makefile
drivers/gsc/eisa.c

(Sorry for the tar file. I didn't have space for another tree to diff against
right now and I do not know if I can make cvs diff work with files that are not
under cvs control, like the new files I created).

Tell me what you think,
/Daniel
-- 

--AWniW0JNca5xppdA
Content-Type: application/x-compressed-tar
Content-Disposition: attachment; filename="eisa_enumrator.tar.gz"
Content-Transfer-Encoding: base64

H4sIAPC5SDwAA+w8aXPbRrL+SvyKibK2SfEQAFK35WdKpGS+6FpKTpznTbFAYEAiIgEGh44k
3t++3T0DECABSl57vXlVZsqRONPT09N3NwbiTmAMuBtNfSP0/Ibl2PazL/1RNVXd2mo9U+Gz
vbUpf27TT/hsNVvNZ+p2S9e1Zmu7CfNaS2uqz5j6xSnJ+URBaPiMPbMM1+Ur4AIv8s1VAP8/
Pz3X4vd7zPKdW+4HG6PA3OCgEg1TOfj8j9I/umK2M+F7bOPW8DfM22Bj4rjR/cbyfrVbxeeh
7/Bbxx0xH34EjucyraG1FNRKVo9YfcbqPo4wSWO9Xs8hvaSrqr6hahtak2lbe6q2p22XCFG1
Wl0Jv8tUdU/T9jY15c0bVm9ptS1Whf9vszdvFPa945qTyOLslRFMN8aGb90ZPm+MXy9OzXzP
5EEA9r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