Changes made to support modem on the Async port.

/* 19/12/95 Sowmya */
Changes made for Dial-On-Demand
1. defs.h	: __DOD__
2. waninit.c	: In initialize_wan, we just register with the HLDD.
		  Actual initialization of the port is initiated by the
		  HLDD by calling wan_control with INIT_SERIAL_PORT command &
		  OPEN_SERIAL_PORT commands. When OPEN_SERIAL_PORT is called
		  enable_tx_rx is called to actually enable the WAN port.
3. lslproto.h	: Added INIT_SERIAL_PORT in SERIAL_DRIVER_CONTROL

20/1/96
-------
4. waninit.c	: Reduced the number of RX_BUFFERS to 128 and changed the
   kwan.h	  scheme for allocating buffers for the rx_descriptors
		  in initialize_rx_descriptors


24/1/96
-------
waninit.c	: The 'state' field in WAN_PORT_CLASS is used as a flag
		  to avoid re-entrancy when CLOSE_SERIAL_PORT is called
		  for async-direct_connect or sync. The first time, 
		  LOWER_DEVICE_DRIVER_DOWN is called and the next time
		  LOWER_DEVICE_DRIVER_UP & OPEN calls are made.
		  For direct_connect and sync, the state is set to
		  CONNECTED in InitSCC.

5, February, 1996
-----------------
1. wantx.c, send_wan_packet() - added foll. code to keep statistic
++((DEVICE_DRIVER_REGISTRATION_ENTRY *)(sptr_wan_port_class->device_driver_id)->rfc1213_ifEntry.ifOutQLen);
   This is just after the code incrementing number_of_packets_to_tx field.
2. wantx.c, wan_tx_isr_complete() - added foll. code to keep statistic
--((DEVICE_DRIVER_REGISTRATION_ENTRY *)(sptr_wan_port_class->device_driver_id)->rfc1213_ifEntry.ifOutQLen);
   This is just after the code decrementing number_of_packets_to_tx_field.

NOTE: Above change required access to some LSL structures. So these structs
were moved out of VLSLSTR.H in LSL directory and into the include directory 
to LSLPROTO.H.

3. wanrx.c, wan_rx_error_adjust_scheduled_rx_list() - modified to accept
   one more parameter indicating if the function was called due to a buffer
   overflow error or any other kind of error. Introduced code that uses thi

31/10/97 Vidy
vwanstr.h
introduced 2 more variables to keep track of the number of packets xmited
and received during a connection. (for sake of Proxy server statistics)
These variables are reset and updated in many files 

04/11/1997
----------
        Added code to record the connect message.

02/01/1998
----------
Naveen changed NUMBER_OF_RX_BUFFERS to 64 from 128 in kwan.h

12/02/98 Vidy
-------------
1. added log calls in modem states. Also dial is made faster by removing
DialT and DialReset states. (still in code but dialA does every thing and
moves to wait connect

2. DOD_RECONNECT started with this

20/02/98
changed the mdmstateHupCheckCD so that it redials immediately. this is
to support hangup_and_reconnect (for 56K modems )

-----------------------------------------------------------------------------
          Name of Engineer : sudha
                      Date : 21-Oct-1999
            Files modified : waninit.c, modem.c 
Problem/change description : A small bug in wan code. That is, if initial need
									  to dial out is unchecked & proxy enabled wan port, 
									  then, only for wan1, modem won't dial. And it will
									  dial for wan2 & wan3. Fix for this bug. 
									  As well as, in case, if the modem reports an error, 
									  then we were going to dial state of modem, 
									  irrespective of whether initial_need_to_dial_out 
									  is checked or not and dialing for the first time or
									  not. Fix for this problem also.

-----------------------------------------------------------------------------

