xj | b04a402 | 2021-11-25 15:01:52 +0800 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
| 2 | /* |
| 3 | * Copyright (c) 2019 MediaTek Inc. |
| 4 | */ |
| 5 | |
| 6 | #ifndef __MT_SWITCH__ |
| 7 | #define __MT_SWITCH__ |
| 8 | /* |
| 9 | * ========================= |
| 10 | * !!!!!!!!!!!NOTICE!!!!!!!! |
| 11 | * ========================= |
| 12 | * MT_SWITCH OPTION must delcare as Mask value |
| 13 | * And sort them from smallest to largest |
| 14 | * MT_SWITCH_MX_ITEM was used to determine argument range |
| 15 | */ |
| 16 | enum { |
| 17 | /* =================== */ |
| 18 | /* user define mt switch event */ |
| 19 | /* =================== */ |
| 20 | MT_SWITCH_SCHEDSWITCH = 0x0001, |
| 21 | MT_SWITCH_64_32BIT = 0x0002, |
| 22 | MT_SWITCH_TAGPOLLING = 0x0004, |
| 23 | MT_SWITCH_EVENT_TIMER = 0x0008, |
| 24 | /* =================== */ |
| 25 | MT_SWITCH_MX_ITEM |
| 26 | }; |
| 27 | |
| 28 | extern struct metdevice met_switch; |
| 29 | #endif |