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 />

struct device *pci_dev;<br />

char pci_info[ETHTOOL_BUSINFO_LEN];<br />

u64 *msi_status_local;<br />

u64 *msi_status_remote;<br />

volatile u64 msi_status;<br />

p4080_fd_ring_t tx_ring[MAX_NUM_RINGS];<br />

p4080_fd_ring_t rx_ring[MAX_NUM_RINGS];<br />

void *priv_cb_arg;<br />

private_ring_callback *priv_cb;<br />

cmd_ring_callback *cmd_cb;<br />

u32 tx_ring_count;<br />

u32 rx_ring_count;<br />

u32 fd_size;<br />

} hw_eng_data_t;<br />

o pci_dev – PCI Device context that is maintained by the Host Packet Driver and<br />

is given to Hardware Function Driver for assisting all kinds of memory<br />

mappings.<br />

o pci_info – PCI Bus, Device and Function (BDF) information of the Smart NIC<br />

<strong>Adapter</strong>. This information is given to Hardware Function Driver for displaying<br />

in the “ethtool -i ”<br />

o msi_status_local – Address of the MSI status that is locally maintained in Host<br />

memory. This is allocated by Host Packet Driver and the address is shared with<br />

Hardware Function Driver.<br />

o msi_status_remote – Address of MSI status that exists in <strong>P4080</strong> memory. The<br />

memory for this is allocated by <strong>P4080</strong> Packet Driver and its address is shared<br />

with Host Packet Driver during initialization handshake. The Host Packet Driver<br />

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

Freescale Confidential Proprietary Page 67

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

Saved successfully!

Ooh no, something went wrong!