Home | History | Annotate | Download | only in include
      1 /******************************************************************************
      2  *
      3  *  Copyright (C) 1999-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 #ifndef __BUILDCFG_H
     19 #define __BUILDCFG_H
     20 #include <string.h>
     21 #include <memory.h>
     22 #include <stdio.h>
     23 #include "data_types.h"
     24 
     25 #ifndef NFC_CONTORLLER_ID
     26 #define NFC_CONTORLLER_ID       (1)
     27 #endif
     28 
     29 #define BTE_APPL_MAX_USERIAL_DEV_NAME           (256)
     30 
     31 #ifdef BT_TRACE_VERBOSE
     32 #undef BT_TRACE_VERBOSE
     33 #endif
     34 #define BT_TRACE_VERBOSE      TRUE
     35 
     36 #define TRACE_TASK_INCLUDED   TRUE
     37 
     38 #define GKI_BUF1_MAX            0
     39 // 2 is in use
     40 #define GKI_BUF3_MAX            30
     41 #define GKI_BUF4_SIZE           2400
     42 #define GKI_BUF4_MAX            30
     43 #define GKI_BUF5_MAX            0
     44 #define GKI_BUF6_MAX            0
     45 #define GKI_BUF7_MAX            0
     46 #define GKI_BUF8_MAX            0
     47 
     48 #define GKI_BUF2_SIZE           660
     49 #define GKI_BUF2_MAX            50
     50 
     51 #define GKI_BUF0_SIZE           268
     52 #define GKI_BUF0_MAX            40
     53 
     54 #define NCI_BUF_POOL_ID         GKI_POOL_ID_0
     55 #define GKI_NUM_FIXED_BUF_POOLS 4
     56 
     57 #ifdef	__cplusplus
     58 extern "C" {
     59 #endif
     60 // +++from bte.h...
     61 enum
     62 {
     63                             /* BTE                  BBY                     */
     64                             /* J3   J4              SW3-3   SW3-2   SW3-1   */
     65                             /* -------------------------------------------- */
     66     BTE_MODE_SERIAL_APP,    /* OUT  OUT             OFF     OFF     OFF     Sample serial port application      */
     67     BTE_MODE_APPL,    	    /* IN   OUT             OFF     OFF     ON      Target used with Tester through RPC */
     68     BTE_MODE_RESERVED,      /* OUT  IN              OFF     ON      OFF     Reserved                            */
     69     BTE_MODE_SAMPLE_APPS,   /* IN   IN              OFF     ON      ON      Sample applications (ICP/HSP)       */
     70     BTE_MODE_DONGLE,        /* not yet supported    ON      OFF     OFF     Dongle mode                         */
     71     BTE_MODE_APPL_PROTOCOL_TRACE, /* this is a fake mode do allow protocol tracing in application without rpc */
     72     BTE_MODE_INVALID
     73 };
     74 /* Protocol trace mask */
     75 extern UINT32 bte_proto_trace_mask;/* = 0xFFFFFFFF;*/
     76 extern volatile UINT8 bte_target_mode;
     77 // ---from bte.h...
     78 
     79 
     80 extern UINT8 *scru_dump_hex (UINT8 *p, char *p_title, UINT32 len, UINT32 trace_layer, UINT32 trace_type);
     81 extern void ScrLog(UINT32 trace_set_mask, const char *fmt_str, ...);
     82 extern void DispNci (UINT8 *p, UINT16 len, BOOLEAN is_recv);
     83 
     84 extern void downloadFirmwarePatchFile (UINT32 brcm_hw_id);
     85 
     86 void ProtoDispAdapterDisplayNciPacket (UINT8* nciPacket, UINT16 nciPacketLen, BOOLEAN is_recv);
     87 #define DISP_NCI ProtoDispAdapterDisplayNciPacket
     88 #define LOGMSG_TAG_NAME "BrcmNfcNfa"
     89 
     90 #ifndef _TIMEB
     91 #define _TIMEB
     92 struct _timeb
     93 {
     94     long    time;
     95     short   millitm;
     96     short   timezone;
     97     short   dstflag;
     98 };
     99 void    _ftime (struct _timeb*);
    100 
    101 #endif
    102 
    103 #ifdef	__cplusplus
    104 };
    105 #endif
    106 #endif
    107