source: ReferenceDesigns/w3_802.11/c/high_periphs/eth/wlan_axi_ethernet_intr/include/wlan_axi_ethernet_intr.h

Last change on this file was 6319, checked in by chunter, 5 years ago

1.8.0 release wlan-mac-se

File size: 1.3 KB
Line 
1/*****************************************************************
2* File: wlan_axi_ethernet_intr.h
3* Copyright (c) 2019 Mango Communications, all rights reserved
4*****************************************************************/
5
6#ifndef WLAN_AXI_ETHERNET_INTR_H_
7#define WLAN_AXI_ETHERNET_INTR_H_
8
9#include "xil_types.h"
10#include "wlan_common_types.h"
11
12// Forward declarations
13struct eth_tx_queue_buffer_t;
14
15
16#define WLAN_AXI_ETH_RX_INTR_BUF_SIZE 0x800 // 2KB - space allocated per pkt
17
18intr_conn_params_t wlan_axi_eth_intr_init( peripheral_args_t* peripheral_args,
19                                           u32 eth_device_id,
20                                           u32 wlan_eth_link_speed,
21                                           u32 wlan_eth_mdio_phyaddr,
22                                           u32 eth_bd_mem_base,
23                                           u32 eth_bd_mem_size,
24                                           u32 num_tx_bd,
25                                           u32 tx_coalescing_count,
26                                           u32 tx_coalescing_timer );
27
28inline u32 wlan_axi_eth_intr_send( peripheral_args_t* peripheral_args, struct eth_tx_queue_buffer_t* eth_tx_queue_buffer );
29#define WLAN_AXI_ETH_INTR_SEND_ERR_NO_FREE_BD   0x00000001
30#define WLAN_AXI_ETH_INTR_SEND_ERR_INVALID_ARGS 0x00000002
31#define WLAN_AXI_ETH_INTR_SEND_ERR_OTHER        0x00000003
32
33
34void wlan_axi_eth_intr_attach_bd(dl_list* rx_queue_list);
35void wlan_axi_eth_intr_attach_free_rx_bd(peripheral_args_t* peripheral_args);
36
37int wlan_axi_eth_intr_get_mtu();
38
39#endif //WLAN_AXI_ETHERNET_INTR_H_
40
Note: See TracBrowser for help on using the repository browser.