Re: Exposing ROM's though sysfs

From: Christoph Hellwig (hch_at_infradead.org)
Date: 07/30/04

  • Next message: Jesse Barnes: "Re: Exposing ROM's though sysfs"
    Date:	Fri, 30 Jul 2004 18:24:10 +0100
    To: Jesse Barnes <jbarnes@engr.sgi.com>
    
    

    On Fri, Jul 30, 2004 at 10:10:29AM -0700, Jesse Barnes wrote:
    > + unsigned long start = dev->resource[PCI_ROM_RESOURCE].start;
    > + int size = dev->resource[PCI_ROM_RESOURCE].end -
    > + dev->resource[PCI_ROM_RESOURCE].start;

    pci_resource_start and pci_resource_len please.

    > + .name = "rom",
    > + .mode = S_IRUGO | S_IWUSR,

    do we really want it world readable if a read messes with pci config
    space?

    > + if (pdev->resource[PCI_ROM_RESOURCE].start) {
    > + pci_rom_attr.size = pdev->resource[PCI_ROM_RESOURCE].end -
    > + pdev->resource[PCI_ROM_RESOURCE].start;

    as above.

    -
    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: how to determine from script if/where X is running
      ... messes around with that variable, it is considered his fault. ... Who'd be walking round these cliffs with a gas oven?" ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Top-posting (was Re: CD to acc)
      ... checkbox in mail program preferences. ... Because it messes up the order in which people normally read text. ... To UNSUBSCRIBE, email to debian-user-REQUEST@xxxxxxxxxxxxxxxx ...
      (Debian-User)
    • Re: System Restore
      ... Modify settings or unsubscribe at: ... Because it messes up the order in which people normally read text. ...
      (Ubuntu)
    • Re: This actually works.
      ... you are pushing sex pills. ... And bibles? ... Unsubscribe? ... Because it messes up the order in which people normally read text. ...
      (comp.lang.python)
    • RE: Dumb Newbie
      ... Sorry for the oversight. ... It messes up the headers and such. ... To unsubscribe: http://www.redhat.com/mailman/listinfo/fedora-list -- ...
      (Fedora)