Blame view

kernel/linux-rt-4.4.41/drivers/net/wireless/realtek/rtlwifi/rtl8723be/def.h 2.32 KB
5113f6f70   김현기   kernel add
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
  /******************************************************************************
   *
   * Copyright(c) 2009-2014  Realtek Corporation.
   *
   * This program is free software; you can redistribute it and/or modify it
   * under the terms of version 2 of the GNU General Public License as
   * published by the Free Software Foundation.
   *
   * This program is distributed in the hope that it will be useful, but WITHOUT
   * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
   * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
   * more details.
   *
   * The full GNU General Public License is included in this distribution in the
   * file called LICENSE.
   *
   * Contact Information:
   * wlanfae <wlanfae@realtek.com>
   * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
   * Hsinchu 300, Taiwan.
   *
   * Larry Finger <Larry.Finger@lwfinger.net>
   *
   *****************************************************************************/
  
  #ifndef __RTL8723BE_DEF_H__
  #define __RTL8723BE_DEF_H__
  
  #define HAL_PRIME_CHNL_OFFSET_DONT_CARE		0
  #define HAL_PRIME_CHNL_OFFSET_LOWER		1
  #define HAL_PRIME_CHNL_OFFSET_UPPER		2
  
  
  #define RX_MPDU_QUEUE				0
  #define CHIP_8723B				(BIT(1) | BIT(2))
  #define NORMAL_CHIP				BIT(3)
  #define CHIP_VENDOR_SMIC			BIT(8)
  /* Currently only for RTL8723B */
  #define EXT_VENDOR_ID				(BIT(18) | BIT(19))
  
  enum rx_packet_type {
  	NORMAL_RX,
  	TX_REPORT1,
  	TX_REPORT2,
  	HIS_REPORT,
  	C2H_PACKET,
  };
  
  enum rtl_desc_qsel {
  	QSLT_BK = 0x2,
  	QSLT_BE = 0x0,
  	QSLT_VI = 0x5,
  	QSLT_VO = 0x7,
  	QSLT_BEACON = 0x10,
  	QSLT_HIGH = 0x11,
  	QSLT_MGNT = 0x12,
  	QSLT_CMD = 0x13,
  };
  
  enum rtl_desc8723e_rate {
  	DESC92C_RATE1M = 0x00,
  	DESC92C_RATE2M = 0x01,
  	DESC92C_RATE5_5M = 0x02,
  	DESC92C_RATE11M = 0x03,
  
  	DESC92C_RATE6M = 0x04,
  	DESC92C_RATE9M = 0x05,
  	DESC92C_RATE12M = 0x06,
  	DESC92C_RATE18M = 0x07,
  	DESC92C_RATE24M = 0x08,
  	DESC92C_RATE36M = 0x09,
  	DESC92C_RATE48M = 0x0a,
  	DESC92C_RATE54M = 0x0b,
  
  	DESC92C_RATEMCS0 = 0x0c,
  	DESC92C_RATEMCS1 = 0x0d,
  	DESC92C_RATEMCS2 = 0x0e,
  	DESC92C_RATEMCS3 = 0x0f,
  	DESC92C_RATEMCS4 = 0x10,
  	DESC92C_RATEMCS5 = 0x11,
  	DESC92C_RATEMCS6 = 0x12,
  	DESC92C_RATEMCS7 = 0x13,
  	DESC92C_RATEMCS8 = 0x14,
  	DESC92C_RATEMCS9 = 0x15,
  	DESC92C_RATEMCS10 = 0x16,
  	DESC92C_RATEMCS11 = 0x17,
  	DESC92C_RATEMCS12 = 0x18,
  	DESC92C_RATEMCS13 = 0x19,
  	DESC92C_RATEMCS14 = 0x1a,
  	DESC92C_RATEMCS15 = 0x1b,
  };
  #endif