Re: Resource file format

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Sun, Jul 27, 2008 at 04:49:30PM +1000, Russell Shaw wrote:
> Hi,
> What do the pci resource files represent such as:
> 
>   /sys/bus/pci/devices/0000:00:00.0/resource
> ?

They represent the PCI BARs.

$ cat /sys/bus/pci/devices/0000\:00\:02.0/resource 
0x00000000fc000000 0x00000000fc0fffff 0x0000000000020204
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x00000000e0000000 0x00000000efffffff 0x000000000002120c
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000001800 0x0000000000001807 0x0000000000020101
0x0000000000000000 0x0000000000000000 0x0000000000000000
0x0000000000000000 0x0000000000000000 0x0000000000000002

The first column is the start address, the second column is the address
of the last byte mapped by this BAR and the third column are the flags
associated with this BAR.  See include/linux/ioport.h for the definitions
of these flags.

-- 
Intel are signing my paycheques ... these opinions are still mine
"Bill, look, we understand that you're interested in selling us this
operating system, but compare it to ours.  We can't possibly take such
a retrograde step."
--
To unsubscribe from this list: send the line "unsubscribe linux-pci" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux