Home | History | Annotate | Download | only in src

Lines Matching defs:psHciContext

116                          phHciNfc_sContext_t        *psHciContext,
127 * \param[in] psHciContext psHciContext is the context of
142 phHciNfc_sContext_t *psHciContext,
152 * \param[in] psHciContext psHciContext is the context of
167 phHciNfc_sContext_t *psHciContext,
174 phHciNfc_sContext_t *psHciContext,
186 phHciNfc_sContext_t *psHciContext
194 phHciNfc_sContext_t *psHciContext,
204 phHciNfc_sContext_t *psHciContext,
217 phHciNfc_sContext_t *psHciContext,
224 psHciContext->hci_state.cur_state;
457 if( NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition )
475 phHciNfc_sContext_t *psHciContext,
482 psHciContext->hci_state.cur_state );
484 psHciContext->hci_state.transition );
486 psHciContext->hci_state.next_state );
488 status = phHciNfc_FSM_Validate(psHciContext, next_state, NFC_FSM_NEXT );
491 psHciContext->hci_state.next_state = (uint8_t) next_state;
492 psHciContext->hci_state.transition = NFC_FSM_IN_PROGRESS;
493 psHciContext->response_pending = FALSE;
495 psHciContext->hci_state.next_state );
509 phHciNfc_sContext_t *psHciContext
517 psHciContext->hci_state.transition );
520 psHciContext->hci_state.cur_state );
523 psHciContext->hci_state.next_state );
525 if( (NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition)
528 psHciContext->hci_state.cur_state =
529 psHciContext->hci_state.next_state ;
530 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
531 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
533 psHciContext->response_pending = FALSE;
534 psHciContext->hci_seq = HCI_INVALID_SEQ;
539 psHciContext->hci_state.cur_state );
546 phHciNfc_sContext_t *psHciContext
552 psHciContext->hci_state.transition,
553 psHciContext->hci_state.cur_state,
554 psHciContext->hci_state.next_state);
561 if( (NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition)
564 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
565 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
567 psHciContext->hci_seq = HCI_INVALID_SEQ;
568 psHciContext->response_pending = FALSE;
576 phHciNfc_sContext_t *psHciContext
580 if( (hciState_Reset != psHciContext->hci_state.cur_state )
583 psHciContext->hci_state.cur_state = (uint8_t) hciState_Initialise ;
584 psHciContext->hci_state.transition = NFC_FSM_COMPLETE ;
585 psHciContext->hci_state.next_state = (uint8_t) hciState_Unknown ;
587 psHciContext->hci_seq = HCI_INVALID_SEQ;
598 phHciNfc_sContext_t *psHciContext,
606 HCI_DEBUG("HCI: psHciContext->target_release --> %s \n",
607 (psHciContext->target_release)?"TRUE":"FALSE");
608 if(TRUE == psHciContext->target_release)
612 psHciContext, pHwRef, phHal_eISO14443_A_PICC, TRUE);
615 psHciContext->target_release = FALSE ;
620 status = psHciContext->error_status;
622 psHciContext->target_release = FALSE ;
640 phHciNfc_sContext_t *psHciContext = (phHciNfc_sContext_t *)psContext;
650 psHciContext->hci_state.cur_state );
652 psHciContext->hci_state.next_state );
655 if ( NFC_FSM_IN_PROGRESS == psHciContext->hci_state.transition )
657 switch(psHciContext->hci_state.next_state)
661 if (hciState_Reset == psHciContext->hci_state.cur_state)
665 phHciNfc_Release_Lower( psHciContext, pHwRef );
670 phHciNfc_Release_Notify (psHciContext, pHwRef,
673 else if (hciState_Config == psHciContext->hci_state.cur_state)
681 psHciContext->error_status = error_status;
682 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
684 phHciNfc_FSM_Rollback(psHciContext);
685 psHciContext->error_status = NFCSTATUS_SUCCESS;
686 phHciNfc_Notify(psHciContext->p_upper_notify,
687 psHciContext->p_upper_context, pHwRef,
697 psHciContext->error_status = error_status;
698 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
700 phHciNfc_FSM_Rollback(psHciContext);
702 psHciContext->error_status = NFCSTATUS_SUCCESS;
703 phHciNfc_Notify(psHciContext->p_upper_notify,
704 psHciContext->p_upper_context, pHwRef,
711 status = phHciNfc_Test_Sequence( psHciContext, pHwRef , error_status,
717 status = phHciNfc_IO_Sequence( psHciContext, pHwRef , error_status,
726 psHciContext->error_status = error_status;
727 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
729 phHciNfc_FSM_Rollback(psHciContext);
730 comp_info.status = psHciContext->error_status ;
731 psHciContext->error_status = NFCSTATUS_SUCCESS;
732 phHciNfc_Notify(psHciContext->p_upper_notify,
733 psHciContext->p_upper_context, pHwRef,
743 phHciNfc_FSM_Rollback(psHciContext);
745 psHciContext, INFO_SEQ );
747 phHciNfc_Notify(psHciContext->p_upper_notify,
748 psHciContext->p_upper_context, pHwRef,
757 psHciContext, pHwRef, phHal_eISO14443_A_PICC, FALSE);
759 phHciNfc_FSM_Rollback(psHciContext);
769 phHciNfc_FSM_Rollback(psHciContext);
773 psHciContext->p_xchg_info = NULL ;
774 phHciNfc_Notify(psHciContext->p_upper_notify,
775 psHciContext->p_upper_context, pHwRef,
785 /* psHciContext->host_rf_type = phHal_eUnknown_DevType; */
787 psHciContext, INFO_SEQ );
788 psHciContext->p_target_info = NULL;
789 psHciContext->hci_state.cur_state = hciState_Select;
790 phHciNfc_FSM_Rollback(psHciContext);
792 phHciNfc_Notify(psHciContext->p_upper_notify,
793 psHciContext->p_upper_context, pHwRef,
802 /* psHciContext->host_rf_type = phHal_eUnknown_DevType;
804 psHciContext, INFO_SEQ );
805 psHciContext->p_target_info = NULL;
806 psHciContext->hci_state.cur_state = hciState_Select; */
807 phHciNfc_FSM_Rollback(psHciContext);
809 phHciNfc_Notify(psHciContext->p_upper_notify,
810 psHciContext->p_upper_context, pHwRef,
819 phHciNfc_FSM_Rollback(psHciContext);
823 phHciNfc_Notify(psHciContext->p_upper_notify,
824 psHciContext->p_upper_context, pHwRef,
835 phHciNfc_FSM_Rollback(psHciContext);
837 phHciNfc_Notify(psHciContext->p_upper_notify,
838 psHciContext->p_upper_context, pHwRef,
845 status = phHciNfc_Release_Sequence(psHciContext ,pHwRef);
849 phHciNfc_Release_Lower( psHciContext, pHwRef );
854 phHciNfc_Release_Notify (psHciContext, pHwRef,
864 phHciNfc_FSM_Rollback(psHciContext);
866 psHciContext->error_status = error_status;
867 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
870 psHciContext->error_status = NFCSTATUS_SUCCESS;
871 phHciNfc_Notify(psHciContext->p_upper_notify,
872 psHciContext->p_upper_context, pHwRef,
884 phHciNfc_FSM_Rollback(psHciContext);
890 phHciNfc_Notify(psHciContext->p_upper_notify,
891 psHciContext->p_upper_context, pHwRef,
896 psHciContext->error_status = error_status;
897 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
900 psHciContext->error_status = NFCSTATUS_SUCCESS;
911 phHciNfc_sContext_t *psHciContext,
919 psHciContext->hci_state.cur_state,
920 psHciContext->hci_state.next_state);
925 switch(psHciContext->hci_state.next_state)
930 switch (psHciContext->hci_state.cur_state)
935 status = phHciNfc_Initialise_Sequence(psHciContext ,pHwRef);
941 status = phHciNfc_Config_Sequence(psHciContext ,pHwRef);
954 status = phHciNfc_FSM_Complete(psHciContext);
956 psHciContext->host_rf_type = phHal_eUnknown_DevType;
957 psHciContext->p_target_info = NULL;
958 psHciContext->p_xchg_info = NULL;
962 phHciNfc_Notify(psHciContext->p_upper_notify,
963 psHciContext->p_upper_context, pHwRef,
978 status = phHciNfc_Release_Sequence(psHciContext ,pHwRef);
983 status = phHciNfc_Config_Sequence(psHciContext ,pHwRef);
989 status = phHciNfc_Info_Sequence( psHciContext, pHwRef );
995 status = phHciNfc_Connect_Sequence( psHciContext, pHwRef );
1001 psHciContext, pHwRef );
1009 phHciNfc_FSM_Rollback(psHciContext);
1013 phHciNfc_Notify(psHciContext->p_upper_notify,
1014 psHciContext->p_upper_context, pHwRef,
1021 status = phHciNfc_Disconnect_Sequence( psHciContext, pHwRef );
1026 status = phHciNfc_Test_Sequence( psHciContext, pHwRef , status, NULL, 0 );
1031 status = phHciNfc_IO_Sequence( psHciContext, pHwRef , status, NULL, 0 );
1051 phHciNfc_sContext_t *psHciContext,
1060 switch(psHciContext->hci_seq)
1064 status = phHciNfc_Admin_Initialise( psHciContext,pHwRef );
1068 if( hciMode_Session == psHciContext->hci_mode)
1075 psHciContext, INFO_SEQ );
1079 psHciContext->hci_seq = PL_STOP_SEQ;
1083 psHciContext->hci_seq = HCI_END_SEQ;
1091 psHciContext->hci_seq = LINK_MGMT_INIT_SEQ;
1098 status = phHciNfc_LinkMgmt_Initialise( psHciContext,pHwRef );
1101 psHciContext->hci_seq = IDENTITY_INIT_SEQ;
1107 status = phHciNfc_IDMgmt_Initialise( psHciContext,pHwRef );
1110 psHciContext->hci_seq = DEV_INIT_SEQ;
1116 status = phHciNfc_DevMgmt_Initialise( psHciContext,pHwRef );
1119 if (HCI_SELF_TEST != psHciContext->init_mode)
1121 psHciContext->hci_seq = PL_INIT_SEQ;
1129 psHciContext, INFO_SEQ );
1134 psHciContext->hci_seq = DEV_HAL_INFO_SEQ;
1136 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1141 psHciContext->hci_seq = HCI_END_SEQ;
1146 psHciContext->hci_seq = DEV_HAL_INFO_SEQ;
1148 psHciContext->hci_seq = HCI_END_SEQ;
1157 status = phHciNfc_PollLoop_Initialise( psHciContext,pHwRef );
1163 psHciContext, RESET_SEQ );
1164 psHciContext->hci_seq = READER_MGMT_INIT_SEQ;
1170 status = phHciNfc_ReaderMgmt_Initialise( psHciContext,pHwRef );
1176 psHciContext, RESET_SEQ );
1177 psHciContext->hci_seq = EMULATION_INIT_SEQ;
1183 status = phHciNfc_EmuMgmt_Initialise( psHciContext,pHwRef );
1187 psHciContext->hci_seq = ADMIN_SESSION_SEQ;
1189 psHciContext->hci_seq = DEV_HAL_INFO_SEQ;
1191 psHciContext->hci_seq = HCI_END_SEQ;
1199 status = phHciNfc_Admin_Initialise( psHciContext,pHwRef );
1203 psHciContext->hci_seq = DEV_HAL_INFO_SEQ;
1205 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1213 psHciContext, pHwRef );
1217 psHciContext->hci_seq = READER_SW_AUTO_SEQ;
1219 psHciContext->hci_seq = DEV_HAL_INFO_SEQ;
1221 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1233 psHciContext, HCI_READER_A_ENABLE,
1237 status = phHciNfc_ReaderA_Auto_Activate( psHciContext,
1241 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1250 status = phHciNfc_IDMgmt_Info_Sequence( psHciContext,pHwRef );
1253 if ((HCI_SELF_TEST != psHciContext->init_mode)
1255 && (HCI_CUSTOM_INIT != psHciContext->init_mode)
1256 && (HCI_NFC_DEVICE_TEST != psHciContext->init_mode))
1261 psHciContext, INFO_SEQ );
1265 psHciContext->hci_seq = EMULATION_SWP_SEQ;
1270 psHciContext->hci_seq = HCI_END_SEQ;
1277 status = phHciNfc_EmuMgmt_Initialise( psHciContext,pHwRef );
1280 psHciContext->hci_seq = HCI_END_SEQ;
1290 status = phHciNfc_DevMgmt_Get_Info(psHciContext, pHwRef,
1292 (psHciContext->hal_mem_info + mem_index));
1301 psHciContext, INFO_SEQ );
1303 psHciContext->hci_seq = IDENTITY_INFO_SEQ;
1304 /* psHciContext->hci_seq =
1305 (HCI_SELF_TEST != psHciContext->init_mode)?
1315 (phHal_sMemInfo_t *) ( psHciContext->hal_mem_info );
1317 (HCI_SELF_TEST == psHciContext->init_mode )
1318 || (HCI_NFC_DEVICE_TEST == psHciContext->init_mode )
1321 psHciContext->hci_state.next_state
1324 psHciContext );
1326 phHciNfc_Uicc_Connectivity( psHciContext, pHwRef );
1342 phHciNfc_Notify(psHciContext->p_upper_notify,
1343 psHciContext->p_upper_context, pHwRef,
1349 pphNfcIF_Notification_CB_t p_upper_notify = psHciContext->p_upper_notify;
1350 void *pcontext = psHciContext->p_upper_context;
1354 phHciNfc_Release_Lower( psHciContext, pHwRef );
1355 phHciNfc_Release_Resources( &psHciContext );
1374 phHciNfc_sContext_t *psHciContext,
1380 switch(psHciContext->hci_seq)
1385 psHciContext, pHwRef );
1389 psHciContext, REL_SEQ );
1390 psHciContext->hci_seq = EMULATION_REL_SEQ;
1397 status = phHciNfc_EmuMgmt_Release( psHciContext,pHwRef );
1401 psHciContext, REL_SEQ );
1402 psHciContext->hci_seq = ADMIN_REL_SEQ;
1412 psHciContext, REL_SEQ );
1413 status = phHciNfc_DevMgmt_Release( psHciContext, pHwRef );
1416 psHciContext->hci_seq = HCI_END_SEQ;
1423 status = phHciNfc_ReaderMgmt_Release( psHciContext,pHwRef );
1426 psHciContext->hci_seq = PL_REL_SEQ;
1433 status = phHciNfc_PollLoop_Release( psHciContext,pHwRef );
1436 psHciContext->hci_seq = IDENTITY_REL_SEQ;
1443 status = phHciNfc_IDMgmt_Release( psHciContext,pHwRef );
1446 psHciContext->hci_seq = LINK_MGMT_REL_SEQ;
1453 status = phHciNfc_LinkMgmt_Release( psHciContext,pHwRef );
1456 psHciContext->hci_seq = ADMIN_REL_SEQ;
1464 status = phHciNfc_Admin_Release( psHciContext,pHwRef, phHciNfc_TerminalHostID );
1467 psHciContext->hci_seq = DEV_REL_SEQ;
1475 psHciContext->p_upper_notify;
1477 &(psHciContext->lower_interface);
1479 psHciContext->p_upper_context;
1486 phHciNfc_Release_Resources( &psHciContext );
1497 /* psHciContext->hci_seq = HCI_END_SEQ; */
1509 phHciNfc_sContext_t *psHciContext,
1516 switch(psHciContext->config_type)
1520 status = phHciNfc_PollLoop_Sequence( psHciContext, pHwRef );
1525 status = phHciNfc_SmartMx_Mode_Sequence( psHciContext, pHwRef );
1531 if(TARGET_GENERAL_SEQ == psHciContext->hci_seq)
1533 status = phHciNfc_NfcIP_SetATRInfo( psHciContext,
1535 psHciContext->p_config_params);
1539 phHciNfc_FSM_Rollback ( psHciContext );
1543 psHciContext->hci_seq = HCI_END_SEQ;
1548 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
1552 phHciNfc_FSM_Rollback(psHciContext);
1556 psHciContext->error_status = NFCSTATUS_SUCCESS;
1557 phHciNfc_Notify(psHciContext->p_upper_notify,
1558 psHciContext->p_upper_context, pHwRef,
1570 phHciNfc_FSM_Rollback(psHciContext);
1573 ((SMX_WI_CFG == psHciContext->config_type)?
1577 phHciNfc_Notify(psHciContext->p_upper_notify,
1578 psHciContext->p_upper_context, pHwRef,
1592 psHciContext->p_config_params;
1599 status = phHciNfc_Uicc_Connect_Status(psHciContext,pHwRef);
1612 status = phHciNfc_EmulationCfg_Sequence( psHciContext, pHwRef );
1628 phHciNfc_sContext_t *psHciContext,
1634 psHciContext->p_config_params;
1641 switch(psHciContext->hci_seq)
1645 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1650 psHciContext->hci_seq = TARGET_SPEED_SEQ;
1652 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1654 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1656 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1671 phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_TARGET,
1676 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1678 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1680 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1692 phHciNfc_NfcIP_SetMode( psHciContext, pHwRef, NFCIP_INITIATOR,
1697 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1699 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1710 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1714 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1738 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
1745 psHciContext->hci_seq = READER_ENABLE_SEQ;
1749 /* psHciContext->hci_seq = READER_DISABLE_SEQ; */
1750 psHciContext->hci_seq = HCI_END_SEQ;
1760 psHciContext, pHwRef );
1763 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
1764 psHciContext->hci_seq = HCI_END_SEQ;
1772 psHciContext, pHwRef );
1779 psHciContext->hci_seq = PL_DURATION_SEQ;
1784 psHciContext->hci_seq = INITIATOR_SPEED_SEQ;
1786 psHciContext->hci_seq = PL_TGT_DISABLE_SEQ;
1788 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
1790 /* psHciContext->hci_seq = HCI_END_SEQ; */
1799 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
1802 /* status = phHciNfc_FSM_Complete ( psHciContext );*/
1803 phHciNfc_FSM_Rollback ( psHciContext );
1809 phHciNfc_Notify(psHciContext->p_upper_notify,
1810 psHciContext->p_upper_context, pHwRef,
1816 phHciNfc_Notify(psHciContext->p_upper_notify,
1817 psHciContext->p_upper_context, pHwRef,
1826 /* psHciContext->hci_seq = HCI_END_SEQ; */
1838 phHciNfc_sContext_t *psHciContext,
1848 psHciContext->p_config_params;
1859 psHciContext->config_type = NFC_CE_A_CFG;
1860 if (NULL == psHciContext->p_ce_a_info)
1867 psHciContext->config_type = NFC_CE_B_CFG;
1868 if (NULL == psHciContext->p_ce_b_info)
1887 switch(psHciContext->hci_seq)
1894 status = phHciNfc_Admin_CE_Init(psHciContext, pHwRef, ce_gate);
1903 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
1904 /* psHciContext->hci_seq = HCI_END_SEQ; */
1912 status = phHciNfc_Emulation_Cfg(psHciContext, pHwRef,
1913 psHciContext->config_type);
1916 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
1918 if(UICC_SWP_CFG == psHciContext->config_type)
1920 psHciContext->hci_seq = ADMIN_REL_SEQ;
1925 psHciContext->hci_seq = HCI_END_SEQ;
1937 status = phHciNfc_Admin_Release( psHciContext,pHwRef, phHciNfc_UICCHostID );
1940 psHciContext->hci_seq = HCI_END_SEQ;
1941 if (UICC_SWP_CFG == psHciContext->config_type)
1943 (void)phHciNfc_SWP_Update_Sequence(psHciContext,
1955 phHciNfc_FSM_Rollback(psHciContext);
1960 phHciNfc_Notify(psHciContext->p_upper_notify,
1961 psHciContext->p_upper_context, pHwRef,
1967 /* psHciContext->hci_seq = HCI_END_SEQ; */
1983 phHciNfc_sContext_t *psHciContext,
1989 psHciContext->p_config_params;
1993 switch(psHciContext->hci_seq)
1998 psHciContext, pHwRef );
2001 psHciContext->hci_seq = EMULATION_CONFIG_SEQ;
2002 /* psHciContext->hci_seq = HCI_END_SEQ; */
2010 psHciContext, pHwRef,psHciContext->smx_mode );
2013 psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ;
2014 /* psHciContext->hci_seq = HCI_END_SEQ; */
2022 status = phHciNfc_PollLoop_Cfg( psHciContext, pHwRef,
2026 psHciContext->hci_seq = READER_ENABLE_SEQ;
2035 psHciContext, pHwRef );
2038 /* psHciContext->hci_seq = PL_CONFIG_PHASE_SEQ; */
2039 psHciContext->hci_seq = HCI_END_SEQ;
2046 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
2049 /* status = phHciNfc_FSM_Complete ( psHciContext );*/
2050 phHciNfc_FSM_Rollback ( psHciContext );
2051 if( hciState_Disconnect == psHciContext->hci_state.cur_state)
2053 psHciContext->host_rf_type = phHal_eUnknown_DevType;
2054 psHciContext->p_target_info = NULL;
2055 psHciContext->p_xchg_info = NULL;
2062 phHciNfc_Notify(psHciContext->p_upper_notify,
2063 psHciContext->p_upper_context, pHwRef,
2069 phHciNfc_Notify(psHciContext->p_upper_notify,
2070 psHciContext->p_upper_context, pHwRef,
2079 /* psHciContext->hci_seq = HCI_END_SEQ; */
2091 phHciNfc_sContext_t *psHciContext,
2099 if( NULL != psHciContext->p_target_info )
2102 target_type = psHciContext->p_target_info->RemDevType;
2103 switch(psHciContext->hci_seq)
2108 status = phHciNfc_FSM_Complete ( psHciContext );
2113 phHciNfc_Notify(psHciContext->p_upper_notify,
2114 psHciContext->p_upper_context, pHwRef,
2121 phHciNfc_FSM_Rollback ( psHciContext );
2122 phHciNfc_Notify(psHciContext->p_upper_notify,
2123 psHciContext->p_upper_context, pHwRef,
2151 status = phHciNfc_ReaderMgmt_Info_Sequence( psHciContext, pHwRef );
2154 psHciContext->hci_seq = HCI_END_SEQ;
2164 status = phHciNfc_FSM_Complete ( psHciContext );
2169 /* psHciContext->host_rf_type = phHal_eInvalidRFType;*/
2171 phHciNfc_Notify(psHciContext->p_upper_notify,
2172 psHciContext->p_upper_context, pHwRef,
2179 /* phHciNfc_FSM_Rollback ( psHciContext ); */
2180 phHciNfc_Notify(psHciContext->p_upper_notify,
2181 psHciContext->p_upper_context, pHwRef,
2191 /* psHciContext->hci_seq = HCI_END_SEQ; */
2203 phHciNfc_sContext_t *psHciContext,
2212 if( NULL != psHciContext->p_target_info )
2215 psHciContext->p_target_info->RemDevType;
2216 switch(psHciContext->hci_seq)
2221 psHciContext, pHwRef, target_type );
2222 psHciContext->hci_seq = READER_DESELECT_SEQ;
2231 re_poll = (uint8_t) ( NULL != psHciContext->p_config_params )?
2232 *((uint8_t *)psHciContext->p_config_params):FALSE;
2234 psHciContext, pHwRef, target_type, re_poll);
2237 psHciContext->hci_seq = HCI_END_SEQ;
2238 psHciContext->p_config_params = NULL;
2245 status = phHciNfc_FSM_Complete ( psHciContext );
2250 psHciContext->host_rf_type = phHal_eUnknown_DevType;
2251 psHciContext->p_target_info = NULL;
2252 psHciContext->p_xchg_info = NULL;
2254 phHciNfc_Notify(psHciContext->p_upper_notify,
2255 psHciContext->p_upper_context, pHwRef,
2262 /* phHciNfc_FSM_Rollback ( psHciContext ); */
2263 phHciNfc_Notify(psHciContext->p_upper_notify,
2264 psHciContext->p_upper_context, pHwRef,
2275 /* psHciContext->hci_seq = HCI_END_SEQ; */
2288 phHciNfc_sContext_t *psHciContext,
2294 pphNfcIF_Notification_CB_t p_upper_notify = psHciContext->p_upper_notify;
2295 void *pcontext = psHciContext->p_upper_context;
2299 phHciNfc_FSM_Rollback(psHciContext);
2301 switch (psHciContext->host_rf_type)
2315 if(ZERO != psHciContext->rx_index)
2319 &psHciContext->recv_buffer[psHciContext->rx_index];
2321 psHciContext->rx_total - psHciContext->rx_index;
2330 psHciContext->p_xchg_info = NULL ;
2340 &psHciContext->recv_buffer[psHciContext->rx_index];
2342 psHciContext->rx_total - psHciContext->rx_index;
2345 psHciContext->p_xchg_info = NULL ;
2377 phHciNfc_sContext_t *psHciContext,
2384 psHciContext->host_rf_type);
2385 switch (psHciContext->host_rf_type)
2405 status = phHciNfc_ReaderMgmt_Info_Sequence( psHciContext, pHwRef );
2412 status = phHciNfc_NfcIP_Info_Sequence( psHciContext, pHwRef );
2431 phHciNfc_sContext_t *psHciContext,
2443 status = phHciNfc_FSM_Complete ( psHciContext );
2456 psHciContext, &test_result );
2459 phHciNfc_Notify(psHciContext->p_upper_notify,
2460 psHciContext->p_upper_context, pHwRef,
2467 phHciNfc_FSM_Rollback ( psHciContext );
2468 phHciNfc_Notify(psHciContext->p_upper_notify,
2469 psHciContext->p_upper_context, pHwRef,
2480 phHciNfc_sContext_t *psHciContext,
2494 phHciNfc_FSM_Rollback ( psHciContext );
2497 status = phHciNfc_Pending_Sequence(psHciContext, pHwRef );
2500 phHciNfc_Notify(psHciContext->p_upper_notify,
2501 psHciContext->p_upper_context, pHwRef,
2507 phHciNfc_Notify(psHciContext->p_upper_notify,
2508 psHciContext->p_upper_context, pHwRef,
2521 phHciNfc_sContext_t *psHciContext,