summaryrefslogtreecommitdiffstats
path: root/private/ntos/ndis/ne3200/ne3200sw.h
blob: 28300334fdfb54549e42d0e85b3798180fe6a602 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
/*++

Copyright (c) 1992  Microsoft Corporation

Module Name:

    ne3200sw.h

Abstract:

    Software specific values for the Novell NE3200 NDIS 3.0 driver.

Author:

    Keith Moore (KeithMo) 08-Jan-1991

Environment:

    Architecturally, there is an assumption in this driver that we are
    on a little endian machine.

Notes:

    optional-notes

Revision History:


--*/

#ifndef _NE3200SOFTWARE_
#define _NE3200SOFTWARE_

#include <ndis.h>
#include <ne3200hw.h>

//
// Debugging flags.  This buffer is used to record whenever the driver
// does something important.  If there is a bug, then this buffer
// can be viewed from the debugger and an effective trace of events
// can be found.
//

#if DBG

#define IF_NE3200DBG(flag) if (NE3200Debug & (NE3200_DEBUG_ ## flag))

//
// Macro for putting a character in the buffer.
//
#define IF_LOG(ch) { \
    UCHAR lp = Adapter->LogPlace; \
    Adapter->LogPlace++; \
    Adapter->Log[(UCHAR)(lp+3)] = (UCHAR)'\0'; \
    Adapter->Log[lp] = (ch); \
    }

//
// Debug flag, determines what debug information is kept around
//
extern ULONG NE3200Debug;

//
// Possible values for the above flag
//
#define NE3200_DEBUG_DUMP_LOOKAHEAD     0x00000001  // dump lookahead buffer
#define NE3200_DEBUG_DUMP_TRANSFER      0x00000002  // dump transfer buffer
#define NE3200_DEBUG_DUMP_SEND          0x00000004  // dump send packet
#define NE3200_DEBUG_DUMP_COMMAND       0x00000008  // dump command block & buffer

#define NE3200_DEBUG_ACQUIRE            0x00000010  // NE3200AcquireCommandBlock activity
#define NE3200_DEBUG_SUBMIT             0x00000020  // NE3200SubmitCommandBlock activity
#define NE3200_DEBUG_ASSIGN             0x00000040  // NE3200AssignPacketToCommandBlock activity
#define NE3200_DEBUG_RECEIVE            0x00000080  // ProcessReceiveInterrupts activity

#define NE3200_DEBUG_LOUD               0x00000100  // print things
#define NE3200_DEBUG_VERY_LOUD          0x00000200  // print lots of things

#define DPrint1(fmt) DbgPrint(fmt)
#define DPrint2(fmt,v1) DbgPrint(fmt,v1)
#define DPrint3(fmt,v1,v2) DbgPrint(fmt,v1,v2)
#define DPrint4(fmt,v1,v2,v3) DbgPrint(fmt,v1,v2,v3)

#else // DBG

#define IF_LOG(ch)

#define IF_NE3200DBG(flag) if (0)
#define DPrint1(fmt)
#define DPrint2(fmt,v1)
#define DPrint3(fmt,v1,v2)
#define DPrint4(fmt,v1,v2,v3)

#endif // DBG

//
// Keep symbols for internal functions
//
#define STATIC

//
// NDIS version of this driver
//
#define NE3200_NDIS_MAJOR_VERSION 3
#define NE3200_NDIS_MINOR_VERSION 0


extern NDIS_PHYSICAL_ADDRESS MinusOne;

//
// Macro for allocating memory
//
#define NE3200_ALLOC_PHYS(_Status, _pBuffer, _Length) \
{ \
    *(_Status) = NdisAllocateMemory( \
                     (PVOID*)(_pBuffer), \
                     (_Length), \
                     0, \
                     MinusOne); \
}

//
// Macro for freeing memory
//
#define NE3200_FREE_PHYS(_Buffer) NdisFreeMemory((_Buffer), 0, 0)


//
// Macro for moving memory around
//
#define NE3200_MOVE_MEMORY(Destination,Source,Length) NdisMoveMemory(Destination,Source,Length)

//
// Size of ethernet header
//
#define NE3200_HEADER_SIZE 14

//
// Size of lookahead buffer for loopback packets
//
#define NE3200_SIZE_OF_LOOPBACK 256


//
// The implementation of RESET.
//
// The NE3200 must be "held by the hand" during the reset & download
// operations.  Typically, the reset (or download) is initiated and
// the status ports are POLLED, waiting for pass/fail status.  This
// is unacceptable in NT.
//
// To handle this cleanly in NT, the reset & download operations will
// be controlled by a state machine.  This state machine will be
// contained by a flag and driven by a Timer Object.
//
// This ENUM represents the current state of the reset operation.
//
typedef enum _NE3200_RESET_STATE {

    NE3200ResetStateStarting,
    NE3200ResetStateResetting,
    NE3200ResetStateDownloading,
    NE3200ResetStateReloadAddress,
    NE3200ResetStateComplete

} NE3200_RESET_STATE, *PNE3200_RESET_STATE;

//
// This ENUM represents the result of the reset operation.
//
typedef enum _NE3200_RESET_RESULT {

    NE3200ResetResultSuccessful,
    NE3200ResetResultResetFailure,
    NE3200ResetResultResetTimeout,
    NE3200ResetResultInitializationFailure,
    NE3200ResetResultInitializationTimeout,
    NE3200ResetResultInvalidState,
    NE3200ResetResultResources

} NE3200_RESET_RESULT, *PNE3200_RESET_RESULT;


struct _NE3200_ADAPTER;

//
// This structure defines the global data needed by the driver.
//
typedef struct _NE3200_GLOBAL_DATA {

    //
    // We need to allocate a buffer to contain the MAC.BIN code to be
    // downloaded to the NE3200 adapter(s).  This field will contain
    // the virtual address of this buffer.
    //
    PVOID MacBinVirtualAddress;
    NDIS_PHYSICAL_ADDRESS MacBinPhysicalAddress;

    //
    // Chain of Adapters
    //
    LIST_ENTRY AdapterList;

    //
    // The handle of the adapter used for the allocaton of
    // the MAC.BIN buffer (the first one added for this MAC).
    //
    NDIS_HANDLE MacBinAdapterHandle;

    //
    // Handle to our driver
    //
    NDIS_HANDLE NE3200DriverHandle;

    //
    // Handle for NdisTerminateWrapper
    //
    NDIS_HANDLE NE3200NdisWrapperHandle;

    //
    // This field contains the actual length (in bytes) of MAC.BIN.
    //
    USHORT MacBinLength;

} NE3200_GLOBAL_DATA, *PNE3200_GLOBAL_DATA;

//
// In addition to the Command Block fields which the NE3200
// defines, we need some additional fields for our own purposes.
// To ensure that these fields are properly aligned (and to
// ensure that the actual Command Block is properly aligned)
// we'll defined a Super Command Block.  This structure will
// contain a "normal" NE3200 Command Block plus some additional
// fields.
//
typedef struct _NE3200_SUPER_COMMAND_BLOCK {

    //
    // The actual NE3200 Command Block.
    //
    NE3200_COMMAND_BLOCK Hardware;

    //
    // This contains the physical address of the above Command Block.
    //
    NDIS_PHYSICAL_ADDRESS Self;

    //
    // Points to the packet from which data is being transmitted
    // through this Command Block.
    //
    PNDIS_PACKET OwningPacket;

    //
    // This tells if the command block is a public or private command block.
    //
    PUINT AvailableCommandBlockCounter;

    //
    // This contains the virtual address of the next pending command.
    //
    struct _NE3200_SUPER_COMMAND_BLOCK *NextCommand;

    //
    // Is this from a set
    //
    BOOLEAN Set;

    //
    // This field is used to timestamp the command blocks
    // as they are placed into the command queue.  If a
    // block fails to execute, the adapter will get a kick in the ass to
    // start it up again.
    //
    BOOLEAN Timeout;

    //
    // If this is a public (adapter-wide) command block, then
    // this will contain this block's index into the adapter's
    // command queue.
    //
    USHORT CommandBlockIndex;

    //
    // Count of the number of times we have retried a command.
    //
    UCHAR TimeoutCount;

    //
    // When a packet is submitted to the hardware we record
    // here whether it used adapter buffers and if so, the buffer
    // index.
    //
    BOOLEAN UsedNE3200Buffer;
    UINT NE3200BuffersIndex;

} NE3200_SUPER_COMMAND_BLOCK, *PNE3200_SUPER_COMMAND_BLOCK;

//
// In addition to the Receive Entry fields which the NE3200
// defines, we need some additional fields for our own purposes.
// To ensure that these fields are properly aligned (and to
// ensure that the actual Receive Entry is properly aligned)
// we'll defined a Super Receive Entry.  This structure will
// contain a "normal" NE3200 Receive Entry plus some additional
// fields.
//
typedef struct _NE3200_SUPER_RECEIVE_ENTRY {

    //
    // The actual NE3200 Receive Entry.
    //
    NE3200_RECEIVE_ENTRY Hardware;

    //
    // This contains the physical address of the above Receive Entry.
    //
    NDIS_PHYSICAL_ADDRESS Self;

    //
    // This contains the virtual address of the next
    // Receive Entry in the Receive Queue.
    //
    struct _NE3200_SUPER_RECEIVE_ENTRY *NextEntry;

    //
    // This contains the virtual address of this Receive Entry's
    // frame buffer.
    //
    PVOID ReceiveBuffer;
    NDIS_PHYSICAL_ADDRESS ReceiveBufferPhysical;

    //
    // Points to an NDIS buffer which describes this buffer
    //
    PNDIS_BUFFER FlushBuffer;

} NE3200_SUPER_RECEIVE_ENTRY, *PNE3200_SUPER_RECEIVE_ENTRY;



//
// This record type is inserted into the MiniportReserved portion
// of the packet header when the packet is going through the
// staged allocation of buffer space prior to the actual send.
//
typedef struct _NE3200_RESERVED {

    //
    // Points to the next packet in the chain of queued packets
    // being allocated or waiting for the finish of transmission.
    //
    PNDIS_PACKET Next;

    //
    // If TRUE then the packet caused an adapter buffer to
    // be allocated.
    //
    BOOLEAN UsedNE3200Buffer;

    //
    // If the previous field was TRUE then this gives the
    // index into the array of adapter buffer descriptors that
    // contains the old packet information.
    //
    UCHAR NE3200BuffersIndex;

    //
    // Gives the index of the Command Block as well as the
    // command block to packet structure.
    //
    USHORT CommandBlockIndex;

} NE3200_RESERVED,*PNE3200_RESERVED;

//
// This macro will return a pointer to the NE3200 reserved portion
// of a packet given a pointer to a packet.
//
#define PNE3200_RESERVED_FROM_PACKET(Packet) \
    ((PNE3200_RESERVED)((Packet)->MiniportReserved))

//
// If an ndis packet does not meet the hardware contraints then
// an adapter buffer will be allocated.  Enough data will be copied
// out of the ndis packet so that by using a combination of the
// adapter buffer and remaining ndis buffers the hardware
// constraints are satisfied.
//
// In the NE3200_ADAPTER structure three threaded lists are kept in
// one array.  One points to a list of NE3200_BUFFER_DESCRIPTORS
// that point to small adapter buffers.  Another is for medium sized
// buffers and the last for full sized (large) buffers.
//
// The allocation is controlled via a free list head and
// the free lists are "threaded" by a field in the adapter buffer
// descriptor.
//
typedef struct _NE3200_BUFFER_DESCRIPTOR {

    //
    // A physical pointer to a small, medium, or large buffer.
    //
    NDIS_PHYSICAL_ADDRESS PhysicalNE3200Buffer;

    //
    // A virtual pointer to a small, medium, or large buffer.
    //
    PVOID VirtualNE3200Buffer;

    //
    // Flush buffer
    //
    PNDIS_BUFFER FlushBuffer;

    //
    // Threads the elements of an array of these descriptors into
    // a free list. -1 implies no more entries in the list.
    //
    INT Next;

    //
    // Holds the amount of space (in bytes) available in the buffer
    //
    UINT BufferSize;

    //
    // Holds the length of data placed into the buffer.  This
    // can (and likely will) be less that the actual buffers
    // length.
    //
    UINT DataLength;

} NE3200_BUFFER_DESCRIPTOR,*PNE3200_BUFFER_DESCRIPTOR;

//
// This is the main structure for each adapter.
//
typedef struct _NE3200_ADAPTER {

#if DBG
    PUCHAR LogAddress;
#endif

    PUCHAR SystemDoorbellInterruptPort;
    PUCHAR SystemDoorbellMaskPort;

    //
    // Flag that when enabled lets routines know that a reset
    // is in progress.
    //
    BOOLEAN ResetInProgress;

    //
    // TRUE when a receive interrupt is received
    //
    BOOLEAN ReceiveInterrupt;

    BOOLEAN InterruptsDisabled;

    //
    // Handle given by NDIS when the widget was initialized.
    //
    NDIS_HANDLE MiniportAdapterHandle;

    //
    // Pointer to the head of the Receive Queue.
    //
    PNE3200_SUPER_RECEIVE_ENTRY ReceiveQueueHead;

    //
    // Pointer to the tail of the Receive Queue.
    //
    PNE3200_SUPER_RECEIVE_ENTRY ReceiveQueueTail;

    //
    // Packet counts
    //
    UINT GoodReceives;

    //
    // Pointer to the next command to complete execution.
    //
    PNE3200_SUPER_COMMAND_BLOCK FirstCommandOnCard;

    //
    // Pointers to an array of adapter buffer descriptors.
    // The array will actually be threaded together by
    // three free lists.  The lists will be for small,
    // medium and full sized packets.
    //
    PNE3200_BUFFER_DESCRIPTOR NE3200Buffers;

    //
    // List head for the adapters buffers.  If the list
    // head is equal to -1 then there are no free elements
    // on the list.
    //
    INT NE3200BufferListHead;

    UINT GoodTransmits;

    //
    // Is there an outstanding request
    //
    BOOLEAN RequestInProgress;

    //
    // Is this a packet resubmission?
    //
    BOOLEAN PacketResubmission;

    //
    // Pointer to the most recently submitted command.
    //
    PNE3200_SUPER_COMMAND_BLOCK LastCommandOnCard;

    //
    // Pointer to the first command waiting to be put on the list to the card.
    //
    PNE3200_SUPER_COMMAND_BLOCK FirstWaitingCommand;

    //
    // Pointer to the last command waiting to be put on the list to the card.
    //
    PNE3200_SUPER_COMMAND_BLOCK LastWaitingCommand;

    PUCHAR BaseMailboxPort;

    //
    // Total number of Command Blocks in the PublicCommandQueue.
    //
    UINT NumberOfPublicCommandBlocks;

    //
    // Number of available Command Blocks in the Command Queue.
    //
    UINT NumberOfAvailableCommandBlocks;

    //
    // Pointer to the next available Command Block.
    //
    PNE3200_SUPER_COMMAND_BLOCK NextCommandBlock;

    PNE3200_SUPER_COMMAND_BLOCK LastCommandBlockAllocated;
//----
    //
    // Used for filter and statistics operations
    //
    PNE3200_SUPER_COMMAND_BLOCK PublicCommandQueue;
    NDIS_PHYSICAL_ADDRESS PublicCommandQueuePhysical;

    //
    // Used for padding short packets
    //
    PUCHAR PaddingVirtualAddress;
    NDIS_PHYSICAL_ADDRESS PaddingPhysicalAddress;

    //
    // Points to the card multicast entry table
    //
    PUCHAR CardMulticastTable;
    NDIS_PHYSICAL_ADDRESS CardMulticastTablePhysical;

    //
    // Holds the interrupt object for this adapter.
    //
    NDIS_MINIPORT_INTERRUPT Interrupt;

    //
    // Current packet filter on adapter
    //
    UINT CurrentPacketFilter;

    //
    // Is this the initial initialization reset?
    //
    BOOLEAN InitialInit;

    //
    // These variables hold information about a pending request.
    //
    PUINT BytesWritten;
    PUINT BytesNeeded;
    NDIS_OID Oid;
    PVOID InformationBuffer;
    UINT InformationBufferLength;

    //
    // The EISA Slot Number for this adapter.
    //
    USHORT EisaSlot;

    //
    // The I/O Base address of the adapter.
    //
    ULONG AdapterIoBase;

    //
    // Various mapped I/O Port Addresses for this adapter.
    //
    PUCHAR ResetPort;
    PUCHAR SystemInterruptPort;
    PUCHAR LocalDoorbellInterruptPort;

    //
    // Count of CheckForHang calls that have occurred without
    // a receive interrupt.
    //
    UCHAR NoReceiveInterruptCount;

    //
    // TRUE when a send interrupt is received
    //
    BOOLEAN SendInterrupt;

    //
    // Should we use an alternative address
    //
    BOOLEAN AddressChanged;

    //
    // The network address from the hardware.
    //
    CHAR NetworkAddress[NE3200_LENGTH_OF_ADDRESS];
    CHAR CurrentAddress[NE3200_LENGTH_OF_ADDRESS];

    //
    // Pointer to the Receive Queue.
    //
    PNE3200_SUPER_RECEIVE_ENTRY ReceiveQueue;
    NDIS_PHYSICAL_ADDRESS ReceiveQueuePhysical;

    //
    // Pointer to the Command Queue.
    //
    PNE3200_SUPER_COMMAND_BLOCK CommandQueue;
    NDIS_PHYSICAL_ADDRESS CommandQueuePhysical;

    //
    // Next free public command block
    //
    UINT NextPublicCommandBlock;

    //
    // Total number of Command Blocks in the Command Queue.
    //
    UINT NumberOfCommandBlocks;

    //
    // Total number of Receive Buffers.
    //
    UINT NumberOfReceiveBuffers;

    //
    // Total number of Transmit Buffers.
    //
    UINT NumberOfTransmitBuffers;

    //
    // The Flush buffer pool
    //
    PNDIS_HANDLE FlushBufferPoolHandle;

    //
    // Is the reset to be done asynchronously?
    //
    BOOLEAN ResetAsynchronous;

    //
    // Used to store the command block for asynchronous resetting.
    //
    PNE3200_SUPER_COMMAND_BLOCK ResetHandlerCommandBlock;

    //
    // Index of the receive ring descriptor that started the
    // last packet not completely received by the hardware.
    //
    UINT CurrentReceiveIndex;

    //
    // Counters to hold the various number of errors/statistics for both
    // reception and transmission.
    //

    //
    // Packet counts
    //
    UINT TransmitsQueued;

    //
    // Count of transmit errors
    //
    UINT RetryFailure;
    UINT LostCarrier;
    UINT UnderFlow;
    UINT NoClearToSend;
    UINT Deferred;
    UINT OneRetry;
    UINT MoreThanOneRetry;

    //
    // Count of receive errors
    //
    UINT CrcErrors;
    UINT AlignmentErrors;
    UINT OutOfResources;
    UINT DmaOverruns;

    //
    // This holds the current state of the reset operation.
    //
    NE3200_RESET_STATE ResetState;

    //
    // This hold the result of the reset operation.
    //
    NE3200_RESET_RESULT ResetResult;

    //
    // This is a timeout counter.  Before a timed operation is
    // started, a positive value is placed in this field.  Every
    // time the particular state is entered in the ResetDpc, this
    // value is decremented.  If this value becomes zero, then
    // the operation has timed-out and the adapter is toast.
    //
    UINT ResetTimeoutCounter;

    //
    // This timer object will be used to queue the deferred processing routine
    //
    NDIS_MINIPORT_TIMER DeferredTimer;

    //
    // This timer is for handling resets from when the card is dead.
    //
    NDIS_MINIPORT_TIMER ResetTimer;

    //
    // Place for holding command block for pending commands during
    // reset processing.
    //
    PNE3200_SUPER_COMMAND_BLOCK ResetCommandBlock;

    //
    // This is a pointer to the Configuration Block for this
    // adapter.  The Configuration Block will be modified during
    // changes to the packet filter.
    //
    PNE3200_CONFIGURATION_BLOCK ConfigurationBlock;
    NDIS_PHYSICAL_ADDRESS ConfigurationBlockPhysical;

    //
    // This points to the next adapter registered for the same Mac
    //
    LIST_ENTRY AdapterList;

#if DBG
    UCHAR Log[256];
    UCHAR LogPlace;
#endif

} NE3200_ADAPTER,*PNE3200_ADAPTER;

//
// Given a MiniportContextHandle return the PNE3200_ADAPTER
// it represents.
//
#define PNE3200_ADAPTER_FROM_CONTEXT_HANDLE(Handle) \
    ((PNE3200_ADAPTER)(Handle))

//
// Procedures which do error logging
//

typedef enum _NE3200_PROC_ID{
    allocateAdapterMemory,
    initialInit,
    setConfigurationBlockAndInit,
    registerAdapter,
    openAdapter,
    wakeUpDpc,
    resetDpc
}NE3200_PROC_ID;

//
// Error log codes.
//
#define NE3200_ERRMSG_ALLOC_MEM         (ULONG)0x01
#define NE3200_ERRMSG_INIT_INTERRUPT    (ULONG)0x02
#define NE3200_ERRMSG_NO_DELAY          (ULONG)0x03
#define NE3200_ERRMSG_INIT_DB           (ULONG)0x04
#define NE3200_ERRMSG_OPEN_DB           (ULONG)0x05
#define NE3200_ERRMSG_BAD_STATE         (ULONG)0x06
#define NE3200_ERRMSG_                  (ULONG)0x06


//
// Define our block of global data.  The actual data resides in NE3200.C.
//
extern NE3200_GLOBAL_DATA NE3200Globals;

#include <ne3200pr.h>

#endif // _NE3200SOFTWARE_