Leaked source code of windows server 2003
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.

66 lines
1.6 KiB

  1. /*++
  2. Copyright (c) 1990 Microsoft Corporation
  3. Module Name:
  4. async.c
  5. Abstract:
  6. The main program for a ASYNC (Local Area Network Controller
  7. Am 7990) MAC driver.
  8. Author:
  9. Anthony V. Ercolano (tonye) creation-date 19-Jun-1990
  10. Environment:
  11. This driver is expected to work in DOS, OS2 and NT at the equivalent
  12. of kernal mode.
  13. Architecturally, there is an assumption in this driver that we are
  14. on a little endian machine.
  15. Notes:
  16. optional-notes
  17. Revision History:
  18. --*/
  19. #ifndef _ASYNCHARDWARE_
  20. #define _ASYNCHARDWARE_
  21. //
  22. // All registers on the ASYNC are 16 bits.
  23. //
  24. //
  25. // Masks for the normal summary bits in the transmit descriptor.
  26. //
  27. #define ASYNC_TRANSMIT_END_OF_PACKET ((UCHAR)(0x01))
  28. #define ASYNC_TRANSMIT_START_OF_PACKET ((UCHAR)(0x02))
  29. #define ASYNC_TRANSMIT_DEFERRED ((UCHAR)(0x04))
  30. #define ASYNC_TRANSMIT_ONE_RETRY ((UCHAR)(0x08))
  31. #define ASYNC_TRANSMIT_MORE_THAN_ONE_RETRY ((UCHAR)(0x10))
  32. #define ASYNC_TRANSMIT_ANY_ERRORS ((UCHAR)(0x40))
  33. #define ASYNC_TRANSMIT_OWNED_BY_CHIP ((UCHAR)(0x80))
  34. //
  35. // Set of masks to recover particular errors that a transmit can encounter.
  36. //
  37. #define ASYNC_TRANSMIT_TDR ((USHORT)(0x03ff))
  38. #define ASYNC_TRANSMIT_RETRY ((USHORT)(0x0400))
  39. #define ASYNC_TRANSMIT_LOST_CARRIER ((USHORT)(0x0800))
  40. #define ASYNC_TRANSMIT_LATE_COLLISION ((USHORT)(0x0100))
  41. #define ASYNC_TRANSMIT_UNDERFLOW ((USHORT)(0x4000))
  42. #define ASYNC_TRANSMIT_BUFFER ((USHORT)(0x8000))
  43. #endif // _ASYNCHARDWARE_
  44.