xref: /OK3568_Linux_fs/kernel/drivers/net/wireless/rockchip_wlan/mvl88w8977/mlan/esa/common/packetType.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1 /** @file packetType.h
2  *
3  *  @brief This file defines Packet Type enumeration used for PacketType fields in RX and TX
4  *          packet descriptors
5  *
6  * Copyright (C) 2014-2017, Marvell International Ltd.
7  *
8  * This software file (the "File") is distributed by Marvell International
9  * Ltd. under the terms of the GNU General Public License Version 2, June 1991
10  * (the "License").  You may use, redistribute and/or modify this File in
11  * accordance with the terms and conditions of the License, a copy of which
12  * is available by writing to the Free Software Foundation, Inc.,
13  * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA or on the
14  * worldwide web at http://www.gnu.org/licenses/old-licenses/gpl-2.0.txt.
15  *
16  * THE FILE IS DISTRIBUTED AS-IS, WITHOUT WARRANTY OF ANY KIND, AND THE
17  * IMPLIED WARRANTIES OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE
18  * ARE EXPRESSLY DISCLAIMED.  The License provides additional details about
19  * this warranty disclaimer.
20  */
21 
22 /******************************************************
23 Change log:
24     03/07/2014: Initial version
25 ******************************************************/
26 #ifndef _PACKETTYPE_H_
27 #define _PACKETTYPE_H_
28 
29 /**
30 *** @brief Enumeration of different Packets Types.
31 **/
32 
33 typedef enum {
34 	PKT_TYPE_802DOT3_DEFAULT = 0,	/*!< For RX packets it represents
35 					 **   IEEE 802.3 SNAP frame .  For
36 					 **   TX Packets.  This Field is for
37 					 **   backwards compatibility only and
38 					 **   should not be used going
39 					 **   forward.
40 					 */
41 	PKT_TYPE_802DOT3_LLC = 1,	//!< IEEE 802.3 frame with LLC header
42 	PKT_TYPE_ETHERNET_V2 = 2,	//!< Ethernet version 2 frame
43 	PKT_TYPE_802DOT3_SNAP = 3,	//!< IEEE 802.3 SNAP frame
44 	PKT_TYPE_802DOT3 = 4,	//!< IEEE 802.3 frame
45 	PKT_TYPE_802DOT11 = 5,	//!< IEEE 802.11 frame
46 	PKT_TYPE_ETCP_SOCKET_DATA = 7,	//!< eTCP Socket Data
47 	PKT_TYPE_RAW_DATA = 8,	//!< Non socket data when using eTCP
48 	PKT_TYPE_MRVL_MESH = 9,	//!< Marvell Mesh frame
49 
50 	/* Marvell Internal firmware packet types
51 	 ** Range from 0x0E to 0xEE
52 	 ** These internal Packet types should grow from
53 	 ** 0xEE down.  This will leave room incase the packet
54 	 ** types between the driver & firmware need to be expanded
55 	 */
56 	PKT_TYPE_MRVL_EAPOL_MSG = 0xDF,
57 	PKT_TYPE_MRVL_BT_AMP = 0xE0,
58 	PKT_TYPE_FWD_MGT = 0xE2,
59 	PKT_TYPE_MGT = 0xE5,
60 	PKT_TYPE_MRVL_AMSDU = 0xE6,
61 	PKT_TYPE_MRVL_BAR = 0xE7,
62 	PKT_TYPE_MRVL_LOOPBACK = 0xE8,
63 	PKT_TYPE_MRVL_DATA_MORE = 0xE9,
64 	PKT_TYPE_MRVL_DATA_LAST = 0xEA,
65 	PKT_TYPE_MRVL_DATA_NULL = 0xEB,
66 	PKT_TYPE_MRVL_UNKNOWN = 0xEC,
67 	PKT_TYPE_MRVL_SEND_TO_DATASWITCH = 0xED,
68 	PKT_TYPE_MRVL_SEND_TO_HOST = 0xEE,
69 
70 	PKT_TYPE_DEBUG = 0xEF,
71 
72 	// Customer range for Packet Types
73 	// Range 0xF0 to 0xFF
74 } PacketType;
75 
76 #endif
77