+++ /dev/null
-/*
-
- $Id$
-
- G N O K I I
-
- A Linux/Unix toolset and driver for Nokia mobile phones.
-
- Released under the terms of the GNU GPL, see file COPYING for more details.
-
- Header file for AT emulator code.
-
-*/
-
-#ifndef __data_at_emulator_h
-#define __data_at_emulator_h
-
- /* Prototypes */
-bool ATEM_Initialise(int read_fd, int write_fd, char *model, char *port);
-void ATEM_HandleIncomingData(char *buffer, int length);
-void ATEM_InitRegisters(void);
-void ATEM_StringOut(char *buffer);
-void ATEM_ParseAT(char *cmd_buffer);
-void ATEM_ParseSMS(char *cmd_buffer);
-void ATEM_ParseDIR(char *cmd_buffer);
-bool ATEM_CommandPlusC(char **buf);
-bool ATEM_CommandPlusG(char **buf);
-int ATEM_GetNum(char **p);
-void ATEM_ModemResult(int code);
-void ATEM_CallPassup(char c);
-
- /* Global variables */
-bool ATEM_Initialised;
-
- /* Definition of modem result codes - these are returned to "terminal"
- numerically or as a string depending on the setting of S12 */
-
- /* FIX ME - Numeric values for everything except OK and ERROR
- are guesses as I've not got an AT reference handy. HAB */
-
-#define MR_OK (0)
-#define MR_ERROR (4)
-#define MR_NOCARRIER (5)
-#define MR_CARRIER (2)
-#define MR_CONNECT (3)
-#define MR_RING (6)
-
- /* All defines and prototypes from here down are specific to
- the at-emulator code and so are #ifdef out if __at_emulator_c isn't
- defined. */
-#ifdef __data_at_emulator_c
-
-
-#define MAX_CMD_BUFFERS (2)
-#define CMD_BUFFER_LENGTH (100)
-
- /* Definition of some special Registers of AT-Emulator, pinched in
- part from ISDN driver in Linux kernel */
-#define REG_RINGATA 0
-#define REG_RINGCNT 1
-#define REG_ESC 2
-#define REG_CR 3
-#define REG_LF 4
-#define REG_BS 5
-#define S35 6
-
-#define REG_RESP 12
-#define BIT_RESP 1
-#define REG_RESPNUM 12
-#define BIT_RESPNUM 2
-#define REG_ECHO 12
-#define BIT_ECHO 4
-#define REG_DCD 12
-#define BIT_DCD 8
-#define REG_CTS 12
-#define BIT_CTS 16
-#define REG_DTRR 12
-#define BIT_DTRR 32
-#define REG_DSR 12
-#define BIT_DSR 64
-#define REG_CPPP 12
-#define BIT_CPPP 128
-
-
-#define MAX_MODEM_REGISTERS 20
-
-/* Message format definitions */
-#define PDU_MODE 0
-#define TEXT_MODE 1
-#define INTERACT_MODE 2
-
-#endif /* __data_at_emulator_c */
-
-#endif /* __data_at_emulator_h */
-
-
-