Exporting PCI ROMs via syfs

From: Jon Smirl
Date: Fri May 21 2004 - 18:24:10 EST


GregKH has suggested that a good interface for accessing the contents of PCI
ROMs from user space would be to make them available from sysfs. What would be a
good way to structure the code for doing this? Should this be part of the pci
driver, and how would this interface into class_simple to make the attribute
appear?

Some problems:
Radeon cards need a work around sometimes to enable their ROM. But this can be
run once when the driver loads.
There is one card that can't access the ROM and function at the same time, I
believe Alan Cox know which one it is.

Would it be possible for this to be an automatic function of class_simple with
an API for setting a pre-enable callback? The callback would only be used for
cards with bugs like the radeon and Alan's card.

=====
Jon Smirl
jonsmirl@xxxxxxxxx




__________________________________
Do you Yahoo!?
Yahoo! Domains ? Claim yours for only $14.70/year
http://smallbusiness.promotions.yahoo.com/offer
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/