Operating System - HP-UX
1836372 Members
2667 Online
110100 Solutions
New Discussion

Convert BAR to 64-bit physical address?

 
David Johns
Advisor

Convert BAR to 64-bit physical address?

Hi:

I'm trying to map some I/O address space to user address space using user_iomap() and HPUX 11.23 on an Itanium box.

void *user_iomap(void *vaddr, void *paddr, pgcnt_t count);

The 64-bit physical address paddr is not necessarily the same address value that is obtained from the BAR of a PCI device. The caller may have to convert the BAR value to the appropriate 64-bit physical address value used by the processor.

I can vouch for this, the value in the BAR is 32-bits. How can I convert this to the appropriate 64-bit physical address needed by user_iomap?

Thanks,
Dave
1 REPLY 1
David Johns
Advisor

Re: Convert BAR to 64-bit physical address?

Found what I needed in Chapter 2 of the DDG, HP-UX "Kernal" I/O Mapping Interfaces, esp. p. 80.

-Dave