lkml.org 
[lkml]   [2003]   [Mar]   [28]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRE: PCI question
Date
From

I wrote:
> Is it possible for a driver to know the size of each
> the BARs which struct pci_dev->resource[x].start corresponds with?
[...]
> drivers/pci/pci.c:read_pci_bases() looks like it tests
> to see if BARs are 32 or 64 bit, but does not save this
> information in pci_dev->resource[x],[...]

Duh! Now I see where it saves it in resource[x]->flags...
The low bits tell me this information. (Sorry about the noise.)

-- steve
-
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/

\
 
 \ /
  Last update: 2005-03-22 13:34    [W:0.019 / U:0.684 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site