Phisical address to far pointer

Can somebody suggest me a way to convert a LONG phisical addres (like those returned by xalloc) to a char far pointer?
I’m working with DC 10.64 and a RCM5700 board.

Thank you in advance,
Giorgio