[PATCH] add PCI ROMs to sysfs

From: Jesse Barnes (jbarnes_at_engr.sgi.com)
Date: 07/30/04

  • Next message: Jesse Barnes: "Re: Exposing ROM's though sysfs"
    To: linux-kernel@vger.kernel.org, linux-pci@atrey.karlin.mff.cuni.cz, Jon Smirl <jonsmirl@yahoo.com>
    Date:	Fri, 30 Jul 2004 14:09:05 -0700
    
    
    

    Per a big thread earlier today, this patch adds a 'rom' file to sysfs in the
    same place where we currently have 'config', 'irq', etc.

    Note that the ROM is *not* cached, so userspace will have to save the ROM when
    a device is first detected if the card doesn't support address cycles to ROM
    space at the same time as other memory accesses. (I'm still open to changing
    this if people feel strongly, but as it stands, the 'rom' file is only
    slightly more dangerous than the 'config' file.)

    Jon, am I missing something or is it possible for us to cache the ROM in
    userspace when it receives the hotplug event? I saw your DRM code, and for
    the case of ROMs at a nonstandard address, we can fixup the address for
    pci_dev->resource[PCI_ROM_RESOURCE] in pci-quirks, can't we?

    Thoughts? I've tried to add cleanup code, but I'm not sure how acceptable it
    is and I don't have any way of testing it.

    Thanks,
    Jesse

    
    

    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/



  • Next message: Jesse Barnes: "Re: Exposing ROM's though sysfs"

    Relevant Pages

    • Re: Problems getting the 1394 ROM configuration info
      ... > I am new to device drivers and am working on a driver for a 1394 firewire ... I am having some problems in getting the ROM configuration ... > entire contents of the config info. ...
      (microsoft.public.development.device.drivers)
    • Re: breadboarding fast, tiny stuff
      ... marketplace is going to be used in industry. ... blocks get big, too big for, say, a 4 mbit eprom, so our rom builder ... resulting rom space is 0.2 to 0.5 of the original size and bit-bangs ... The key here is that the config ...
      (sci.electronics.design)
    • Re: breadboarding fast, tiny stuff
      ... And us consultants must use what industry uses. ... blocks get big, too big for, say, a 4 mbit eprom, so our rom builder ... resulting rom space is 0.2 to 0.5 of the original size and bit-bangs ... The key here is that the config ...
      (sci.electronics.design)
    • Re: Radeon issue on x86
      ... VGA card had IO enabled during first PCI probe). ... > there is an extension ROM there somewhere. ... It just does a loop looking for the aa55 signature. ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)
    • Re: [PATCH] add PCI ROMs to sysfs
      ... On Monday, August 2, 2004 7:32 pm, Jon Smirl wrote: ... > My i875P AGP controller has a ROM on it as well as my two video cards. ... So it seems there's some redundancy here--some platforms will map the ROMs at ... send the line "unsubscribe linux-kernel" in ...
      (Linux-Kernel)