nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 1 | /****************************************************************************** |
| 2 | * |
| 3 | * Copyright (C) 2010-2014 Broadcom Corporation |
| 4 | * |
| 5 | * Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | * you may not use this file except in compliance with the License. |
| 7 | * You may obtain a copy of the License at: |
| 8 | * |
| 9 | * http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | * |
| 11 | * Unless required by applicable law or agreed to in writing, software |
| 12 | * distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | * See the License for the specific language governing permissions and |
| 15 | * limitations under the License. |
| 16 | * |
| 17 | ******************************************************************************/ |
| 18 | |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 19 | /****************************************************************************** |
| 20 | * |
| 21 | * This is the private interface file for the NFA system manager. |
| 22 | * |
| 23 | ******************************************************************************/ |
| 24 | #ifndef NFA_SYS_INT_H |
| 25 | #define NFA_SYS_INT_H |
| 26 | |
| 27 | #include "nfa_sys_ptim.h" |
| 28 | |
| 29 | /***************************************************************************** |
| 30 | ** Constants and data types |
| 31 | *****************************************************************************/ |
| 32 | |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 33 | /* nfa_sys flags */ |
nxpandroid | 8f6d053 | 2017-07-12 18:25:30 +0530 | [diff] [blame] | 34 | #define NFA_SYS_FL_INITIALIZED 0x00000001 /* nfa_sys initialized */ |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 35 | |
| 36 | /***************************************************************************** |
| 37 | ** state table |
| 38 | *****************************************************************************/ |
| 39 | |
| 40 | /* system manager control block */ |
nxpandroid | 8f6d053 | 2017-07-12 18:25:30 +0530 | [diff] [blame] | 41 | typedef struct { |
| 42 | uint32_t flags; /* nfa_sys flags (must be first element of structure) */ |
| 43 | tNFA_SYS_REG* reg[NFA_ID_MAX]; /* registration structures */ |
| 44 | bool is_reg[NFA_ID_MAX]; /* registration structures */ |
| 45 | tPTIM_CB ptim_cb; /* protocol timer list */ |
| 46 | tNFA_SYS_ENABLE_CBACK* p_enable_cback; |
| 47 | uint16_t enable_cplt_flags; |
| 48 | uint16_t enable_cplt_mask; |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 49 | |
nxpandroid | 8f6d053 | 2017-07-12 18:25:30 +0530 | [diff] [blame] | 50 | tNFA_SYS_PROC_NFCC_PWR_MODE_CMPL* p_proc_nfcc_pwr_mode_cmpl_cback; |
| 51 | uint16_t proc_nfcc_pwr_mode_cplt_flags; |
| 52 | uint16_t proc_nfcc_pwr_mode_cplt_mask; |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 53 | |
nxf24591 | c1cbeab | 2018-02-21 17:32:26 +0530 | [diff] [blame] | 54 | bool graceful_disable; /* TRUE if NFA_Disable () is called with TRUE */ |
| 55 | bool timers_disabled; /* TRUE if sys timers disabled */ |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 56 | } tNFA_SYS_CB; |
| 57 | |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 58 | /***************************************************************************** |
| 59 | ** Global variables |
| 60 | *****************************************************************************/ |
| 61 | |
| 62 | /* system manager control block */ |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 63 | extern tNFA_SYS_CB nfa_sys_cb; |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 64 | |
| 65 | /* system manager configuration structure */ |
nxpandroid | 8f6d053 | 2017-07-12 18:25:30 +0530 | [diff] [blame] | 66 | extern tNFA_SYS_CFG* p_nfa_sys_cfg; |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 67 | |
nxpandroid | c761165 | 2015-09-23 16:42:05 +0530 | [diff] [blame] | 68 | #endif /* NFA_SYS_INT_H */ |