Problem in writing to PCI BAR
I am developing a PCIe device driver on a machine 64 bit and using Suse 10 , for testing my driver I tried to do loopback on the driver by writing then reading from configuration space of the PCI (BAR) which is already is implemented in the Hardware. I used BAR2 for doing loop back,
I used memcpy_fromio and memcpy_toio to read/write form/to configuration space of my PCI board
I fail to read successfully from the BAR2 .. I donít how why?????????
Here are samples of data sent/received
As apparent above, it read the LSB of 2nd 64bit and repeat it in MSB ..!!!!..which is strange behavior .. So please if anyone could provide me with comment/suggestion/solution to my problem
Appreciate your help