02.08.2013 Views

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

P4080 PCIe Adapter SDK User Guide Production Release

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Freescale Semiconductor<br />

* to <strong>P4080</strong> PCIE domain into Host domain address. The converted address will be<br />

* the <strong>PCIe</strong> address in Host domain that when accessed by host software in<br />

* the Host-><strong>P4080</strong> direction, gets translated into <strong>P4080</strong> <strong>PCIe</strong> domain using<br />

* inbound ATMU. 64MB DMA memory on <strong>P4080</strong> is mapped into Host Domain.<br />

*<br />

* @p4080_address – Address belongs to <strong>P4080</strong> domain.<br />

*<br />

* @return – Address belongs to Host domain.<br />

*/<br />

The Prototype of this API is as follows<br />

unsigned long convert_p4080_add_to_host_virt(unsigned long p4080_address);<br />

p4080_address – Address in <strong>P4080</strong> domain that needs to be converted into Host<br />

domain address.<br />

/**<br />

* API: read_p4080_ccsr : Reads value of a register from <strong>P4080</strong>’s CCSR.<br />

*<br />

* @register_offset – Offset of a register in CCSR space<br />

* @value – Value that is read from CCSR space<br />

*<br />

*/<br />

The prototype of this API is as follows<br />

void read_p4080_ccsr(int register_offset, u32 *value);<br />

register_offset – Offset of a register in CCSR space that needs to be read from CCSR<br />

space.<br />

value – Value obtained from the register at offset “register_offset” in <strong>P4080</strong> CCSR<br />

space.<br />

/**<br />

* API: write_p4080_ccsr : Writes a value into <strong>P4080</strong> CCSR.<br />

*<br />

* @register_offset – Offset of a register in CCSR space<br />

* @value – Value that is to be written into CCSR space<br />

*<br />

*/<br />

© Freescale Semiconductor, Inc., 2011. All rights reserved.<br />

Freescale Confidential Proprietary Page 73

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!