From e611b132f9b8abe35b362e5870b74bce94a1e58e Mon Sep 17 00:00:00 2001 From: Adam Date: Sat, 16 May 2020 20:51:50 -0700 Subject: initial commit --- private/ntos/ndis/lt200/lthrd.h | 85 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 85 insertions(+) create mode 100644 private/ntos/ndis/lt200/lthrd.h (limited to 'private/ntos/ndis/lt200/lthrd.h') diff --git a/private/ntos/ndis/lt200/lthrd.h b/private/ntos/ndis/lt200/lthrd.h new file mode 100644 index 000000000..dc5378f89 --- /dev/null +++ b/private/ntos/ndis/lt200/lthrd.h @@ -0,0 +1,85 @@ +/*++ + +Copyright (c) 1992 Microsoft Corporation + +Module Name: + + lthrd.h + +Abstract: + + This module contains the hardware specific defines. + +Author: + + Stephen Hou (stephh@microsoft.com) + Nikhil Kamkolkar (nikhilk@microsoft.com) + +Revision History: + 19 Jun 1992 Initial Version (dch@pacvax.pacersoft.com) + +Notes: Tab stop: 4 +--*/ + +#ifndef _LTHRD_ +#define _LTHRD_ + + +#define LT_DEFAULT_SLOT_NUMBER 1 +#define LT_DEFAULT_BUS_NUMBER 0 +#define LT_DEFAULT_RECEIVE_BUFFERS 3 +#define LT_DEFAULT_IO_BASE_ADDRESS 0x340 +#define LT_MAX_ADAPTERS 8 +#define LT_NUMBER_OF_PORTS 4 +#define LT_MAXIMUM_PACKET_SIZE 603 + +#define LT_MINIMUM_PACKET_SIZE 3 +#define LT_LENGTH_OF_ADDRESS 1 + +#define LT_ADAPTER_POLLED_MODE 0xFF // Adapter in polling mode + +// LT command/response codes. + +#define LT_CMD_LAP_INIT 1 // initialize command. +#define LT_RSP_LAP_INIT 2 // Initialize response. +#define LT_CMD_LAP_WRITE 3 // Transmit a lap frame. +#define LT_RSP_LAP_FRAME 4 // Received lap frameresponse. +#define LT_CMD_GET_STATUS 5 // Get LAP hardware status command. +#define LT_RSP_STATUS 6 // LAP Hardware status response. + +typedef struct _LT_STATUS_RESPONSE { + + UCHAR NodeId; // Adapters LocalTalk Address. + UCHAR RomVer; // Version of LT ROM. + UCHAR SwVer; // Version of downloaded Firmware + +} LT_STATUS_RESPONSE, *PLT_STATUS_RESPONSE; + +typedef struct _LT_INIT_RESPONSE { + UCHAR NodeId; + UCHAR RomVer; +} LT_INIT_RESPONSE, *PLT_INIT_RESPONSE; + +// Definition for the LT Transfer Control Status Register. +#define TX_READY 1 +#define RX_READY 2 + +// I/O Port Address Mapping Definitions +#define XFER_PORT Adapter->MappedIoBaseAddr+0 // (Adapter->LtPortAddress) +#define SC_PORT Adapter->MappedIoBaseAddr+1 // (Adapter->LtPortAddress+1) +#define RESET_PORT Adapter->MappedIoBaseAddr+3 // (Adapter->LtPortAddress+3) + +typedef struct _LT_CARD_IO { + USHORT IoLen; // Length of io_data + UCHAR IoCode; // Command response + UCHAR IoData[1]; // Command response Data. +} LtCardIo, *PLtCardIo; + +#ifdef LTHRD_LOCALS + +#endif // LTHRD_LOCALS + + +#endif // _LTHRD_ + + -- cgit v1.2.3