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

struct bin_attribute *sysfs_attr;<br />

hash_table_t mc_htable;<br />

struct list_head mc_list_head;<br />

} ep_dpa_nic_device_t;<br />

netdev – Standard net_device structure pointer.<br />

stats – Device specific statistics<br />

napi – New API context for Rx path bottom half processing<br />

work – Workqueue context used for bottom half processing of Tx path<br />

net_dev_info – Device specific information that is allocated by Hardware Function<br />

Driver.<br />

msg_enable – Net device message level<br />

tx_clean_thread – Tx path cleanup thread that runs forever and cleans the Tx ring.<br />

sysfs_attr – Sysfs attribute context<br />

mc_hash_table – Hash table structure for multicast filtering.<br />

mc_list_head – Linked list head of the multicast list.<br />

/**<br />

* Callback: cmd_ring_callback : Callback function, defined and registered<br />

* by the Hardware Function Driver. It is invoked by the<br />

* Packet Driver when there is a command response in the Command ring for<br />

* that hardware function.<br />

*<br />

* @cmd – Pointer to the “struct p4080_fd” context that comes as response<br />

* from <strong>P4080</strong>.<br />

*/<br />

The prototype of this callback function is as follows<br />

typedef void (*cmd_ring_callback)(struct p4080_fd *cmd);<br />

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

Freescale Confidential Proprietary Page 71

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

Saved successfully!

Ooh no, something went wrong!