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.

68 lines
1.9 KiB

  1. /*--------------------------------------------------------------------------
  2. *
  3. * Copyright (C) Cyclades Corporation, 2000-2001.
  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 Windows XP,
  15. * x86 and ia64 processors.
  16. *
  17. * Complies with Cyclades SW Coding Standard rev 1.3.
  18. *
  19. *--------------------------------------------------------------------------
  20. */
  21. /*-------------------------------------------------------------------------
  22. *
  23. * Change History
  24. *
  25. *--------------------------------------------------------------------------
  26. *
  27. *
  28. *--------------------------------------------------------------------------
  29. */
  30. #ifndef CYZHW_H
  31. #define CYZHW_H
  32. #define MAX_DEVICE_ID_LEN 200 // This definition was copied from NTDDK\inc\cfgmgr32.h
  33. // Always check if this value was changed.
  34. // This is the maximum length for the Hardware ID.
  35. #define CYZPORT_PNP_ID_WSTR L"Cyclades-Z\\Port"
  36. #define CYZPORT_PNP_ID_STR "Cyclades-Z\\Port"
  37. #define CYZPORT_DEV_ID_STR "Cyclades-Z\\Port"
  38. #ifdef POLL
  39. #define CYZ_NUMBER_OF_RESOURCES 2 // Memory, PLX Memory
  40. #else
  41. #define CYZ_NUMBER_OF_RESOURCES 3 // Memory, PLX Memory, IRQ
  42. #endif
  43. // Cyclades-Z hardware
  44. #define CYZ_RUNTIME_LENGTH 0x00000080
  45. #define CYZ_MAX_PORTS 64
  46. #define CYZ_WRITE_ULONG(Pointer,Data) \
  47. WRITE_REGISTER_ULONG(Pointer,Data)
  48. #define CYZ_WRITE_UCHAR(Pointer,Data) \
  49. WRITE_REGISTER_UCHAR(Pointer,Data)
  50. #define CYZ_READ_ULONG(Pointer) \
  51. READ_REGISTER_ULONG(Pointer)
  52. #define CYZ_READ_UCHAR(Pointer) \
  53. READ_REGISTER_UCHAR(Pointer)
  54. #endif // endif CYZHW_H