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

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

Freescale Semiconductor<br />

shares this address with Hardware Function Drivers during registration. The<br />

address is the Host domain’s <strong>PCIe</strong> address that gets translated into <strong>P4080</strong><br />

domain’s address.<br />

o msi_status – Used to differentiate between Rx interrupt and Tx confirmation<br />

interrupt. This is set and cleared by the Hardware Function Driver and checked<br />

by the Host Packet Driver for knowing the type of interrupt.<br />

o tx_ring – Transmit descriptor rings allocated by Host Packet Driver and are<br />

shared with Hardware Function Driver.<br />

o rx_ring – Receive descriptor rings allocated by Host Packet Driver and are<br />

shared with Hardware Function Driver.<br />

o priv_cb_arg – Argument pointer for the interrupt callback function.<br />

o priv_cb – Rx ring interrupt callback function that is invoked when an interrupt<br />

is received for a Hardware Function Driver. The Hardware Function is chosen<br />

based on the MSI status value which is maintained for each Hardware Function.<br />

Its description is given after this API description.<br />

o cmd_cb – Command ring interrupt callback function that is invoked when an<br />

interrupt is received for a Hardware Function. Its description is given after this<br />

API description.<br />

o tx_ring_count – Transmit ring count that is shared with <strong>P4080</strong> Packet Driver.<br />

This parameter is used to share the transmit ring count with Hardware Function<br />

Driver.<br />

o rx_ring_count – Receive ring count that is shared with <strong>P4080</strong> Packet Driver.<br />

This parameter is used to share the receive ring count with Hardware Function<br />

Driver.<br />

o fd_size – Size of the Host Frame Descriptor.<br />

struct p4080_fd_ring {<br />

void *desc;<br />

struct net_device_stats stats;<br />

u64 dma;<br />

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

Freescale Confidential Proprietary Page 68

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

Saved successfully!

Ooh no, something went wrong!