GNU Linux-libre 4.14.290-gnu1
[releases.git] / drivers / staging / rtlwifi / halmac / halmac_intf_phy_cmd.h
1 /******************************************************************************
2  *
3  * Copyright(c) 2016  Realtek Corporation.
4  *
5  * This program is free software; you can redistribute it and/or modify it
6  * under the terms of version 2 of the GNU General Public License as
7  * published by the Free Software Foundation.
8  *
9  * This program is distributed in the hope that it will be useful, but WITHOUT
10  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for
12  * more details.
13  *
14  * The full GNU General Public License is included in this distribution in the
15  * file called LICENSE.
16  *
17  * Contact Information:
18  * wlanfae <wlanfae@realtek.com>
19  * Realtek Corporation, No. 2, Innovation Road II, Hsinchu Science Park,
20  * Hsinchu 300, Taiwan.
21  *
22  * Larry Finger <Larry.Finger@lwfinger.net>
23  *
24  *****************************************************************************/
25 #ifndef HALMAC_INTF_PHY_CMD
26 #define HALMAC_INTF_PHY_CMD
27
28 /* Cut mask */
29 enum halmac_intf_phy_cut {
30         HALMAC_INTF_PHY_CUT_TESTCHIP = BIT(0),
31         HALMAC_INTF_PHY_CUT_A = BIT(1),
32         HALMAC_INTF_PHY_CUT_B = BIT(2),
33         HALMAC_INTF_PHY_CUT_C = BIT(3),
34         HALMAC_INTF_PHY_CUT_D = BIT(4),
35         HALMAC_INTF_PHY_CUT_E = BIT(5),
36         HALMAC_INTF_PHY_CUT_F = BIT(6),
37         HALMAC_INTF_PHY_CUT_G = BIT(7),
38         HALMAC_INTF_PHY_CUT_ALL = 0x7FFF,
39 };
40
41 /* IP selection */
42 enum halmac_ip_sel {
43         HALMAC_IP_SEL_INTF_PHY = 0,
44         HALMAC_IP_SEL_MAC = 1,
45         HALMAC_IP_SEL_PCIE_DBI = 2,
46         HALMAC_IP_SEL_UNDEFINE = 0x7FFF,
47 };
48
49 /* Platform mask */
50 enum halmac_intf_phy_platform {
51         HALMAC_INTF_PHY_PLATFORM_ALL = 0x7FFF,
52 };
53
54 #endif