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.

67 lines
1.9 KiB

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Copyright (C) Cyclades Corporation, 2000.
  4. * All rights reserved.
  5. *
  6. * Cyclades-Z Enumerator/Port Driver
  7. *
  8. * This file: cyzhw.h
  9. *
  10. * Description: This module contains the common hardware declarations
  11. * for the parent driver (cyclad-z) and child driver
  12. * (cyzport).
  13. *
  14. * Notes: This code supports Windows 2000 and x86 processor.
  15. *
  16. * Complies with Cyclades SW Coding Standard rev 1.3.
  17. *
  18. *--------------------------------------------------------------------------
  19. */
  20. /*-------------------------------------------------------------------------
  21. *
  22. * Change History
  23. *
  24. *--------------------------------------------------------------------------
  25. *
  26. *
  27. *--------------------------------------------------------------------------
  28. */
  29. #ifndef CYZHW_H
  30. #define CYZHW_H
  31. #define MAX_DEVICE_ID_LEN 200 // This definition was copied from NTDDK\inc\cfgmgr32.h
  32. // Always check if this value was changed.
  33. // This is the maximum length for the Hardware ID.
  34. #define CYZPORT_PNP_ID_WSTR L"Cyclades-Z\\Port"
  35. #define CYZPORT_PNP_ID_STR "Cyclades-Z\\Port"
  36. #define CYZPORT_DEV_ID_STR "Cyclades-Z\\Port"
  37. #ifdef POLL
  38. #define CYZ_NUMBER_OF_RESOURCES 2 // Memory, PLX Memory
  39. #else
  40. #define CYZ_NUMBER_OF_RESOURCES 3 // Memory, PLX Memory, IRQ
  41. #endif
  42. // Cyclades-Z hardware
  43. #define CYZ_RUNTIME_LENGTH 0x00000080
  44. #define CYZ_MAX_PORTS 64
  45. #define CYZ_WRITE_ULONG(Pointer,Data) \
  46. WRITE_REGISTER_ULONG(Pointer,Data)
  47. #define CYZ_WRITE_UCHAR(Pointer,Data) \
  48. WRITE_REGISTER_UCHAR(Pointer,Data)
  49. #define CYZ_READ_ULONG(Pointer) \
  50. READ_REGISTER_ULONG(Pointer)
  51. #define CYZ_READ_UCHAR(Pointer) \
  52. READ_REGISTER_UCHAR(Pointer)
  53. #endif // endif CYZHW_H