62 lines
2.2 KiB
C
62 lines
2.2 KiB
C
/*
|
|
* modem_controller.h -- modem_controller.c header
|
|
*
|
|
* (C) Copyright [2006-2008] Marvell International Ltd.
|
|
* All Rights Reserved
|
|
*
|
|
*/
|
|
|
|
#ifndef _PPP_MAIN_H_
|
|
#define _PPP_MAIN_H_
|
|
|
|
#if defined __cplusplus
|
|
extern "C" {
|
|
#endif /* __cplusplus */
|
|
#include "modem_platform.h"
|
|
|
|
#define MODEM_ROUTER_STACK_SIZE 1024 * 4
|
|
#define MODEM_ROUTER_PRIORITY 80
|
|
#define MODEM_MSGQ_NUM 600
|
|
|
|
struct data_channel
|
|
{
|
|
U_CHAR at_buffer[AT_CMD_BUF_SIZE];
|
|
U_CHAR *at_buffer_head; /* point to the first written space or at_buffer */
|
|
U_CHAR *at_buffer_tail; /* point to the first empty space */
|
|
int cur_line_len;
|
|
int atp_index;
|
|
void (*process_cb)(struct data_channel *);
|
|
};
|
|
|
|
/************************************************************************/
|
|
/* APIs */
|
|
/************************************************************************/
|
|
void modem_init_internal(void);
|
|
void modem_deinit(void);
|
|
UINT8 get_ppp_cid_internal(void);
|
|
void handle_dial_internal(int atp_index);
|
|
void ppp_clear_use_eps_apn_internal(UINT32 atp_index);
|
|
void modem_update_reg_option_internal( int atp_index, int option);
|
|
void ppp_store_configure_params(int atp_index, int cid, char *apn, int ip_type);
|
|
void send_data_to_modem_router(char *data, int len, int atp_index, int from);
|
|
void modem_channel_buffer_reset(void);
|
|
int process_ppp_ato_internal(int atp_index);
|
|
void modem_channel_buffer_reset_internal(void);
|
|
BOOL ppp_get_connect_flag_internal(UINT8 cid);
|
|
void ppp_process_data_nok_internal(UINT8 cid, BOOL force);
|
|
int process_ppp_atd_internal(int atp_index, char *dial_string);
|
|
int get_cgreg_status_rsp_internal(int atp_index, char *rsp_buf, int type);
|
|
bool need_ppp_process_at_response_internal(int atp_index);
|
|
bool need_ppp_process_ato_request_internal(int atp_index);
|
|
void send_data_to_modem_router_internal(char *data, int len, int atp_index, int from);
|
|
void ppp_store_configure_params_internal(int atp_index, int cid, char *apn, int ip_type);
|
|
int get_cgreg_status_rsp(int atp_index, char *rsp_buf, int type);
|
|
BOOL need_ppp_process_ato_request(int atp_index);
|
|
int process_ppp_ato(int atp_index);
|
|
|
|
|
|
#if defined __cplusplus
|
|
}
|
|
#endif /* __cplusplus */
|
|
#endif
|