nfc_hal_post_reset.h revision e9df6ba5a8fcccf306a80b1670b423be8fe7746a
1/****************************************************************************** 2 * 3 * Copyright (C) 2009-2012 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 19/****************************************************************************** 20 * 21 * Post NCI reset routines 22 * 23 ******************************************************************************/ 24#ifndef NFC_HAL_POST_RESET_H 25#define NFC_HAL_POST_RESET_H 26 27 28/***************************************************************************** 29** Application control block definitions 30******************************************************************************/ 31#define NFA_APP_PATCHFILE_MAX_PATH 255 32 33typedef struct 34{ 35 UINT8 prm_file[NFA_APP_PATCHFILE_MAX_PATH+1]; /* Filename of patchram */ 36 UINT8 *p_prm_buf; /* Pointer to buffer for holding patchram data */ 37 38 /* Patchfile for I2C fix */ 39 UINT8 prm_i2c_patchfile[NFA_APP_PATCHFILE_MAX_PATH+1]; 40 UINT8 *p_prm_i2c_buf; 41 42 UINT8 userial_baud; 43 44 tNFC_HAL_DEV_INIT_CFG dev_init_config; 45 46 /* snooze mode setting */ 47 UINT8 snooze_mode; 48 UINT8 idle_threshold_dh; 49 UINT8 idle_threshold_nfcc; 50 UINT8 nfc_wake_active_mode; 51 UINT8 dh_wake_active_mode; 52 53} tNFC_POST_RESET_CB; 54extern tNFC_POST_RESET_CB nfc_post_reset_cb; 55 56/* 57** Post NCI reset handler 58** 59** This function is called to start device pre-initialization after NCI CORE-RESET. 60** When pre-initialization is completed, 61** HAL_NfcPreInitDone() must be called to proceed with stack start up. 62*/ 63void nfc_hal_post_reset_init (UINT32 brcm_hw_id, UINT8 nvm_type); 64 65 66#endif /* NFC_HAL_POST_RESET_H */ 67