summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/lt200/lthrd.h
diff options
context:
space:
mode:
authorAdam <you@example.com>2020-05-17 05:51:50 +0200
committerAdam <you@example.com>2020-05-17 05:51:50 +0200
commite611b132f9b8abe35b362e5870b74bce94a1e58e (patch)
treea5781d2ec0e085eeca33cf350cf878f2efea6fe5 /private/ntos/ndis/lt200/lthrd.h
downloadNT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.gz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.bz2
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.lz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.xz
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.tar.zst
NT4.0-e611b132f9b8abe35b362e5870b74bce94a1e58e.zip
Diffstat (limited to 'private/ntos/ndis/lt200/lthrd.h')
-rw-r--r--private/ntos/ndis/lt200/lthrd.h85
1 files changed, 85 insertions, 0 deletions
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_
+
+