Initial cut of the open ath9k htc firmware.
[open-ath9k-htc-firmware.git] / target_firmware / magpie_fw_dev / target / inc / k2 / hif_gmac.h
1
2 #ifndef __HIF_GMAC_H
3 #define __HIF_GMAC_H
4
5 #include <adf_os_types.h>
6 #include <hif_api.h>
7
8
9 #define ETH_ALEN                6
10 #define GMAC_MAX_PKT_LEN        1600
11 #define GMAC_MAX_DESC           5
12
13 #define GMAC_DISCV_PKT_SZ       60
14 #define GMAC_DISCV_WAIT         2000
15
16 #define ATH_P_MAGBOOT           0x12 /*Magpie GMAC 18 for boot downloader*/
17 #define ATH_P_MAGNORM           0x13 /*Magpie GMAC 19 for HTC & others*/
18
19 #define ETH_P_ATH               0x88bd
20      
21 typedef enum hif_gmac_pipe{
22     HIF_GMAC_PIPE_RX = 1, /*Normal Priority RX*/
23     HIF_GMAC_PIPE_TX = 2, /*Normal Priority TX*/
24 }hif_gmac_pipe_t;
25
26 struct gmac_api{
27     void (*gmac_boot_init)(void);
28 };
29
30 void    cmnos_gmac_module_install(struct gmac_api *boot_apis);
31 void    hif_gmac_module_install(struct hif_api *apis);
32
33
34 #endif
35