Re: Exposing ROM's though sysfs

Jesse Barnes
2004-07-30T17:27:02Z

On Friday, July 30, 2004 10:10 am, Jesse Barnes wrote:
> On Friday, July 30, 2004 9:53 am, Jon Smirl wrote:
> > We talked at OLS about exposing adapter ROMs via sysfs. I have some
> > time to work on this but I'm not sure about the right places to hook
> > into the kernel.
>
> How about this patch?

Ok, so it's a little broken, but the idea is to expose the rom as a file
in /sys/devices/pciDDDD:BB/DDDD:BB:SS:F/rom just like config space.

I think I need to use pci_config_write_byte to enable option ROM address
decoding, but even then I'm taking a machine check on my test machine, so I'm
obviously doing something else wrong too.

Jesse