1 //----------------------------------------------------------------------- 2 // This software is part of the OpenBeOS distribution and is covered 3 // by the OpenBeOS license. 4 // 5 // Copyright (c) 2003-2004 Waldemar Kornewald, Waldemar.Kornewald@web.de 6 //----------------------------------------------------------------------- 7 8 #ifndef MODEM__H 9 #define MODEM__H 10 11 #include <SupportDefs.h> 12 #include <net/if.h> 13 #include <netinet/if_ether.h> 14 15 class ModemDevice; 16 17 18 #define CONTROL_ESCAPE 0x7d 19 #define FLAG_SEQUENCE 0x7e 20 #define ALL_STATIONS 0xff 21 #define UI 0x03 22 23 #define ESCAPE_DELAY 1000000 24 #define ESCAPE_SEQUENCE "+++" 25 #define AT_HANG_UP "ATH0" 26 27 #define MODEM_MTU 1502 28 #define PACKET_OVERHEAD 8 29 #define MODEM_TIMEOUT 3000000 30 // 3 seconds 31 #define MODEM_PORT_KEY "Port" 32 #define MODEM_INIT_KEY "Init" 33 #define MODEM_DIAL_KEY "Dial" 34 35 extern struct core_module_info *core; 36 37 38 #if DEBUG 39 // defined in ModemDevice.cpp 40 extern void dump_packet(struct mbuf *packet); 41 #endif // DEBUG 42 43 44 #endif 45