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.

65 lines
3.0 KiB

  1. /*****************************************************************************\
  2. * *
  3. * comdev.h -
  4. * *
  5. * Version 1.0 *
  6. * *
  7. * Copyright (c) 1994, Microsoft Corp. All rights reserved. *
  8. * *
  9. \*****************************************************************************/
  10. /*************************************************************************
  11. **
  12. ** Miscelaneous definitions.
  13. */
  14. typedef unsigned short ushort;
  15. typedef unsigned char uchar;
  16. #define NULL 0
  17. #define FALSE 0
  18. #define TRUE 1
  19. #define LPTx 0x80 /* Mask to indicate cid is for LPT device */ /*081985*/
  20. #define LPTxMask 0x7F /* Mask to get cid for LPT device */ /*081985*/
  21. #define PIOMAX 3 /* Max number of LPTx devices in high level */ /*081985*/
  22. #define CDEVMAX 10 /* Max number of COMx devices in high level */
  23. #define DEVMAX 13 /* Max number of devices in high level */ /*081985*/
  24. /*************************************************************************
  25. **
  26. ** Extended Functions
  27. **
  28. ** SETXOFF - Causes transmit to behave as if an X-OFF character had
  29. ** been received. Valid only if transmit X-ON/X-OFF specified
  30. ** in the dcb.
  31. ** SETXON - Causes transmit to behave as if an X-ON character had
  32. ** been received. Valid only if transmit X-ON/X-OFF specified
  33. ** in the dcb.
  34. *************************************************************************/
  35. #define SETXOFF 1 /* Set X-Off for output control */
  36. #define SETXON 2 /* Set X-ON for output control */
  37. #define SETRTS 3 /* Set RTS high */
  38. #define CLRRTS 4 /* Set RTS low */
  39. #define SETDTR 5 /* Set DTR high */
  40. #define CLRDTR 6 /* Set DTR low */
  41. #define RESETDEV 7 /* Reset device if possible */ /*081985*/
  42. /*=========================================================================
  43. ;
  44. ; qdb
  45. ; Queue definition block. Passed to setqueue, defines the location and
  46. ; size of the transmit and receive circular queue's used for interrupt
  47. ; transmit and recieve processing.
  48. ;
  49. ;=========================================================================*/
  50. typedef struct tagQDB
  51. {
  52. char _far *QueueRxAddr; //Pointer to RX Queue, Offset
  53. unsigned QueueRxSize; //Size of RX Queue in bytes
  54. char _far *QueueTxAddr; //Pointer to TX Queue, Offset
  55. unsigned QueueTxSize; //Size of TX Queue in bytes
  56. } QDB;