Windows NT 4.0 source code leak
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.
 
 
 
 
 
 

139 lines
4.0 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:
ntepc.h
Abstract:
This module is responsible EPC specific definitions. This module is used
by ntepc.c and contains all information specific to the EPC.
Revision History:
* $Log: ntepc.h $
* Revision 2.0 1995/09/19 14:59:52 dirkh
* Express modem signals as explicit values, not bit numbers.
*
* Revision 1.3 1994/07/31 14:50:15 rik
* Added 200 baud to baud table.
*
* Revision 1.2 1994/05/18 00:39:34 rik
* Added support for 230Kb baud
*
* Revision 1.1 1994/01/25 19:06:42 rik
* Initial revision
*
--*/
#ifndef _NTEPC_DOT_H
# define _NTEPC_DOT_H
static char RCSInfo_NTEPCDotH[] = "$Header: s:/win/nt/ntepc/rcs/ntepc.h 2.0 1995/09/19 14:59:52 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
#define NIMAGES 2
//
// 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
#define B14400 0x0404
#define B19200 0x000E
#define B28800 0x0405
#define B38400 0x000F
#define B57600 0x0401
#define B115200 0x0403
#define B256000 0x0406
// unsupported baud rates
#define B2000 -1
#define B3600 -1
#define B7200 -1
#define B56000 -1
#define B128000 -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)0x0000004A)
#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 0x0080
#define MCA_IRQ_MASK 0x000E
#define MCA_EPC_POS_ID 0x7F9C
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;