Skip to contentSkip to conversation

Updates to matroxfb: do you want DFP or TVOut on G450/G

DISCUSSION Petr Vandrovec 1 participant 1 message Jun 8, 2002 Framebuffer layer

lore
Share & tools
lore
#0 lore raw
Quoted 8 lines · Dave Jones
Quoted 3 lines · Petr Vandrovec

(4) You can read PINS through /proc.
(H) Change /proc code to use driverfs instead. Linus refused /proc based code already.

One of the first things I ever wrote for Linux was a PINS decoder. It read from /dev/mem to get the PINS structure. Any reason why this isn't good enough, and we need the kernel exporting PINS ?

It does not print decoded structure, it shows it in raw format, 64-128 bytes, just to avoid userspace parsing /dev/mem because of matroxfb did it already (and matroxfb needs PINS to properly initialize Gx50 cards in non-PC hardware). And it may be non-trivial to get PINS from userspace at all because of BIOSes may be disabled by firmware (and f.e. on my PC they are disabled for secondary adapters, so simple parsing /dev/mem leads to nowhere because of BIOS is hidden).

Besides that, it lives in complete separate file, so it is easy to add/remove it.
Best regards,
Petr Vandrovec [email protected]

_______________________________________________________________

Don't miss the 2002 Sprint PCS Application Developer's Conference
August 25-28 in Las Vegas - http://devcon.sprintpcs.com/adp/index.cfm?source=osdntextlink