cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Visitor
Visitor
2,266 Views
Registered: ‎07-28-2010

Print PCI all Address and its values....

Hi,

   I am new to this PCI.  Trying to print all the PCI Register address and its values.

 

// Get Base Address of registers from pci structure.

 

    gBaseHdwr = pci_resource_start (gDev, 0);

 

// Print Base Address to kernel log
    printk(KERN_INFO"%s: Init: Base hw val %X\n", gDrvrName, (unsigned int)gBaseHdwr);

 

output:  [  153.221004] xbmd: Init: Virt HW address C38C00

 

I need to print all the PCI Register address and its values..

 

Please help to resolve this.

 

Note: From the attached document we need to print the PCI Register address From (004h to 074h- 0FFh)

 

 

Thanks,

Subbu

 

 

0 Kudos