[lkml]   [2004]   [Aug]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
Messages in this thread
    SubjectRe: [PATCH] add PCI ROMs to sysfs
    My original version have this in it:

    /* assign the ROM an address if it doesn't have one */
    if (r->parent == NULL)
    pci_assign_resource(dev->pdev, PCI_ROM_RESOURCE);

    if (r->parent) {
    r->flags &= ~PCI_ROM_ADDRESS_ENABLE;
    r->end -= r->start;
    r->start = 0;

    I was running this code on both 2.4/2.6 but I may have needed to do
    this for 2.4. Is it consistent to have pci_assign_resource() and then
    use release_resource()?

    My i875P AGP controller has a ROM on it as well as my two video cards.

    --- Jesse Barnes <> wrote:

    > On Monday, August 2, 2004 4:30 pm, Alan Cox wrote:
    > > What guarantees the ROM already has an assigned PCI address ?
    > Presumably the PCI core. If that's a bad assumption, then clearly
    > this code
    > won't work as is and will need additional checks/setup code.
    > Jesse

    Jon Smirl

    Do you Yahoo!?
    Yahoo! Mail - 50x more storage than other providers!
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to
    More majordomo info at
    Please read the FAQ at

     \ /
      Last update: 2005-03-22 14:04    [W:0.018 / U:7.732 seconds]
    ©2003-2017 Jasper Spaans. hosted at Digital OceanAdvertise on this site