mirror of https://github.com/lianthony/NT4.0
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
156 lines
4.8 KiB
156 lines
4.8 KiB
/*++
|
|
|
|
*****************************************************************************
|
|
* *
|
|
* This software contains proprietary and confidential information of *
|
|
* *
|
|
* Digi International Inc. *
|
|
* *
|
|
* By accepting transfer of this copy, Recipient agrees to retain this *
|
|
* software in confidence, to prevent disclosure to others, and to make *
|
|
* no use of this software other than that for which it was delivered. *
|
|
* This is an unpublished copyrighted work of Digi International Inc. *
|
|
* Except as permitted by federal law, 17 USC 117, copying is strictly *
|
|
* prohibited. *
|
|
* *
|
|
*****************************************************************************
|
|
|
|
Module Name:
|
|
|
|
ntcx.h
|
|
|
|
Abstract:
|
|
|
|
This module is responsible C/X specific definitions. This module is used
|
|
by ntcx.c and contains all information specific to the C/X.
|
|
|
|
|
|
Revision History:
|
|
|
|
* $Log: ntcx.h $
|
|
* Revision 2.1 1995/10/03 09:34:18 dirkh
|
|
* Fix port speeds 14400 and 28800.
|
|
* Revision 2.0 1995/09/19 14:59:34 dirkh
|
|
* Express modem signals as explicit values, not bit numbers.
|
|
*
|
|
* Revision 1.10 1995/02/04 15:23:28 rik
|
|
* Added support for IBM conc. images.
|
|
*
|
|
* Revision 1.9 1994/08/03 23:08:35 rik
|
|
* Updated so downloading so EPC/X conc can be used on a C/X adapter.
|
|
*
|
|
* Revision 1.8 1994/07/31 14:37:25 rik
|
|
* Added 200 baud to baud table.
|
|
*
|
|
* Fixed problem w/ getting line configuration.
|
|
*
|
|
* Revision 1.7 1993/08/20 11:07:25 rik
|
|
* Added support for MC C/X controllers.
|
|
*
|
|
* Revision 1.6 1993/06/25 09:28:08 rik
|
|
* Added support for baud rates 57600 & 115200
|
|
*
|
|
* Revision 1.5 1993/05/20 21:52:42 rik
|
|
* Added support for 14400 and 28800 baud for the new FEP code.
|
|
*
|
|
* Revision 1.4 1993/02/25 19:22:08 rik
|
|
* Added 28800 to the baud rate table.
|
|
*
|
|
* Revision 1.3 1992/12/10 16:17:33 rik
|
|
* Added entries for abstracting the line status registers on the different
|
|
* controllers.
|
|
*
|
|
* Revision 1.2 1992/10/19 11:27:32 rik
|
|
* Defintions and various other information for ntcx.c
|
|
*
|
|
|
|
--*/
|
|
|
|
|
|
|
|
#ifndef _NTCX_DOT_H
|
|
# define _NTCX_DOT_H
|
|
static char RCSInfo_NTCXDotH[] = "$Header: s:/win/nt/ntcx/rcs/ntcx.h 2.1 1995/10/03 09:34:18 dirkh Exp $";
|
|
#endif
|
|
|
|
#define FEP_MEM_ENABLE 0x80
|
|
|
|
#define FEP_GLOBAL_WINDOW 0x00
|
|
#define FEP_EVENT_WINDOW FEP_GLOBAL_WINDOW
|
|
#define FEP_COMMAND_WINDOW FEP_GLOBAL_WINDOW
|
|
|
|
#define FEP_COMMAND_OFFSET 0x0400
|
|
#define FEP_EVENT_OFFSET 0x0800
|
|
#define FEP_CHANNEL_STRUCTURE 0x1000
|
|
|
|
//
|
|
// Baud rate settings
|
|
//
|
|
#define B50 0x0001
|
|
#define B75 0x0002
|
|
#define B110 0x0003
|
|
#define B134 0x0004
|
|
#define B150 0x0005
|
|
#define B200 0x0006
|
|
#define B300 0x0007
|
|
#define B600 0x0008
|
|
#define B1200 0x0009
|
|
#define B1800 0x000A
|
|
#define B2400 0x000B
|
|
#define B4800 0x000C
|
|
#define B9600 0x000D // or 0x0000
|
|
#define B14400 0x0404
|
|
#define B19200 0x000E
|
|
#define B28800 0x040A
|
|
#define B38400 0x000F
|
|
#define B57600 0x0401
|
|
#define B115200 0x0403 // or 0x0408 // Only good on newer concentrators. SWA
|
|
|
|
// unsupported baud rates
|
|
#define B2000 -1
|
|
#define B3600 -1
|
|
#define B7200 -1
|
|
#define B56000 -1
|
|
#define B128000 -1
|
|
#define B256000 -1
|
|
#define B512000 -1
|
|
|
|
|
|
//
|
|
// We need to export the Modem Control & Status bitfields.
|
|
// These values are placed in an area which has been defined to mean:
|
|
// ModemSignals[] = { DTR, RTS, RESERVE1, RESERVE2, CTS, DSR, RI, DCD };
|
|
//
|
|
// Each entry represents the bit value of the related signal for this particular controller.
|
|
//
|
|
#define DTR_CONTROL 0x01
|
|
#define RTS_CONTROL 0x02
|
|
#define RESERVED1 0x04
|
|
#define RESERVED2 0x08
|
|
#define CTS_STATUS 0x10
|
|
#define DSR_STATUS 0x20
|
|
#define RI_STATUS 0x40
|
|
#define DCD_STATUS 0x80
|
|
|
|
#define DEFAULT_LINE_SPEED ((ULONG)0x0000000E)
|
|
#define DEFAULT_NUMBER_OF_PORTS ((ULONG)16)
|
|
|
|
//
|
|
// The following defines are used for MCA support
|
|
//
|
|
#define MCA_IO_PORT_MASK 0x0070
|
|
#define MCA_MEMORY_MASK 0xFF80
|
|
#define MCA_IRQ_MASK 0x000E
|
|
|
|
typedef struct _FEP5_DOWNLOAD_
|
|
{
|
|
UCHAR Type; // Message Type, ignored by HOST
|
|
UCHAR Seq; // Download Sequence
|
|
USHORT SRev; // Software Revision Number
|
|
USHORT LRev; // Low EPROM Revision Number
|
|
USHORT HRev; // High EPROM Revision Number
|
|
USHORT Seg; // Start address (8018x segment)
|
|
USHORT Size; // Number of Data bytes.
|
|
UCHAR Data[1024]; // Download data
|
|
} FEP5_DOWNLOAD, *PFEP5_DOWNLOAD;
|
|
|