Project Home
Project Home
Trackers
Trackers
Documents
Documents
Wiki
Wiki
Discussion Forums
Discussions
Project Information
Project Info
Forum Topic - mapping device from PCI 64-bit memory space: (2 Items)
   
mapping device from PCI 64-bit memory space  
Hi,

I have to obtain access to registers of the device, that is located on PCI 64-bit memory space. Do I have to do same 
special operations?
By now I did following steps:
1) found device using _CA_PCI_Find_Device();
2) read off the device's base address from its pci configuration space;
3) mapped the device memory space using mmap() function.

Are above mentioned operations correct?
Is any difference between device mapping from 32-bits PCI memory space and 64-bit memory space?

Best Rgds
Mariusz
Re: mapping device from PCI 64-bit memory space  
Hi Mariusz,

As far as I know there is no difference in 1) and 2) between 32 and 64 bits 
modes. But you can't mmap() more than the function can. So that 3) depends 
on a base address.

-- 
Respectfully,
Oleg

> Hi,
> 
> I have to obtain access to registers of the device, that is located on
> PCI 64-bit memory space. Do I have to do same special operations? By
> now I did following steps:
> 1) found device using _CA_PCI_Find_Device();
> 2) read off the device's base address from its pci configuration space;
> 3) mapped the device memory space using mmap() function.
> 
> Are above mentioned operations correct?
> Is any difference between device mapping from 32-bits PCI memory space
> and 64-bit memory space?
> 
> Best Rgds
> Mariusz
> 
> 
> 
> _______________________________________________
> 
> QNX4 Community Support
> http://community.qnx.com/sf/go/post85980