-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1
Hello,
Some SIO/PNP devices are abusing register 0x30 for multiple LDN enables, like mine W83627EHF.
This patch introduces a concept of virtual LDN. Each virtual LDN is unique, but maps to original LDN and bit position in register 0x30.
VirtualLDN = origLDN[7:0] | bitpos[10:8]
For example mine GPIO5 device is on LDN 0x9 and bit position 3 -> virtualLDN is 0x309.
As the nice effect one can have now in Config.lb right enable:
device pnp 2e.309 on #GPIO5 on end
Plus normal resources if it is a GAME port for example:
device pnp 2e.107 on #GAME on io 0x60 = 0x201 end
This patch just modifies the core PNP subsystem, other patches will follow.
Signed-off-by: Rudolf Marek r.marek@assembler.cz
Thanks,
Rudolf