source: trunk/package/ifx-tapi/patches/100-ifxmips.patch @ 20637

Last change on this file since 20637 was 20637, checked in by blogic, 6 years ago

[ifxmips] adds voip support

File size: 3.6 KB
  • src/drv_tapi_linux.c

    a b static ssize_t ifx_tapi_write (struct fi 
    544544   IFX_uint8_t         *pData; 
    545545   IFX_size_t           buf_size; 
    546546#endif /* TAPI_PACKET */ 
    547    IFX_ssize_t          size = 0; 
     547   ssize_t          size = 0; 
    548548 
    549549#ifdef TAPI_PACKET 
    550550   if (pTapiDev->bInitialized == IFX_FALSE) 
    IFX_void_t TAPI_OS_ThreadKill(IFXOS_Thre 
    36003600            flag and released after the down() call. */ 
    36013601         lock_kernel(); 
    36023602         mb(); 
     3603#if LINUX_VERSION_CODE < KERNEL_VERSION(2,6,28) 
    36033604         kill_proc(pThrCntrl->tid, SIGKILL, 1); 
     3605#else 
     3606         kill_pid(find_vpid(pThrCntrl->tid), SIGKILL, 1); 
     3607#endif 
    36043608         /* release the big kernel lock */ 
    36053609         unlock_kernel(); 
    36063610         wait_for_completion (&pThrCntrl->thrCompletion); 
  • src/drv_tapi_osmap.h

    a b  
    1717*/ 
    1818 
    1919#include "ifx_types.h"     /* ifx type definitions */ 
    20  
    21 #ifndef HAVE_IFX_ULONG_T 
    22    #warning please update your ifx_types.h, using local definition of IFX_ulong_t 
    23    /* unsigned long type - valid for 32bit systems only */ 
    24    typedef unsigned long               IFX_ulong_t; 
    25    #define HAVE_IFX_ULONG_T 
    26 #endif /* HAVE_IFX_ULONG_T */ 
    27  
    28 #ifndef HAVE_IFX_LONG_T 
    29    #warning please update your ifx_types.h, using local definition of IFX_long_t 
    30    /* long type - valid for 32bit systems only */ 
    31    typedef long                        IFX_long_t; 
    32    #define HAVE_IFX_LONG_T 
    33 #endif /* HAVE_IFX_LONG_T */ 
    34  
    35 #ifndef HAVE_IFX_INTPTR_T 
    36    #warning please update your ifx_types.h, using local definition of IFX_intptr_t 
    37    typedef IFX_long_t                  IFX_intptr_t; 
    38    #define HAVE_IFX_INTPTR_T 
    39 #endif /* HAVE_IFX_INTPTR_T */ 
    40  
    41 #ifndef HAVE_IFX_SIZE_T 
    42    #warning please update your ifx_types.h, using local definition of IFX_size_t 
    43    typedef IFX_ulong_t                 IFX_size_t; 
    44    #define HAVE_IFX_SIZE_T 
    45 #endif /* HAVE_IFX_SIZE_T */ 
    46  
    47 #ifndef HAVE_IFX_SSIZE_T 
    48    #warning please update your ifx_types.h, using local definition of IFX_ssize_t 
    49    typedef IFX_long_t                  IFX_ssize_t; 
    50    #define HAVE_IFX_SSIZE_T 
    51 #endif /* HAVE_IFX_SSIZE_T */ 
    52  
    5320#include "ifxos_interrupt.h" 
    5421#include "ifxos_memory_alloc.h" 
    5522#include "ifxos_copy_user_space.h" 
  • include/drv_tapi_ll_interface.h

    a b  
    4040#include "ifxos_select.h" 
    4141#endif /* TAPI_PACKET */ 
    4242 
    43 #ifndef HAVE_IFX_ULONG_T 
    44    #warning please update your ifx_types.h, using local definition of IFX_ulong_t 
    45    /* unsigned long type - valid for 32bit systems only */ 
    46    typedef unsigned long               IFX_ulong_t; 
    47    #define HAVE_IFX_ULONG_T 
    48 #endif /* HAVE_IFX_ULONG_T */ 
    49  
    5043/* ============================= */ 
    5144/* Local Macros  Definitions    */ 
    5245/* ============================= */ 
  • src/lib/lib_bufferpool/lib_bufferpool.c

    a b  
    8080#include <linux/slab.h> 
    8181#endif /* LINUX */ 
    8282 
    83  
    84 /* ============================= */ 
    85 /* Extra type definitions        */ 
    86 /* ============================= */ 
    87 #ifndef HAVE_IFX_ULONG_T 
    88    #warning please update your ifx_types.h, using local definition of IFX_ulong_t 
    89    /* unsigned long type - valid for 32bit systems only */ 
    90    typedef unsigned long               IFX_ulong_t; 
    91    #define HAVE_IFX_ULONG_T 
    92 #endif /* HAVE_IFX_ULONG_T */ 
    93  
    94 #ifndef HAVE_IFX_UINTPTR_T 
    95    #warning please update your ifx_types.h, using local definition of IFX_uintptr_t 
    96    typedef IFX_ulong_t                 IFX_uintptr_t; 
    97    #define HAVE_IFX_UINTPTR_T 
    98 #endif /* HAVE_IFX_UINTPTR_T */ 
    99  
    100  
    10183/* ============================= */ 
    10284/* Local Macros & Definitions    */ 
    10385/* ============================= */ 
Note: See TracBrowser for help on using the repository browser.