Windows NT 4.0 source code leak
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.

59 lines
1.6 KiB

4 years ago
  1. //-----------------------------------------------------------------------
  2. //
  3. // FILE: n53c400.h
  4. //
  5. // N53C400 Definitions File
  6. //
  7. // Revisions:
  8. // 09-01-92 KJB First.
  9. // 03-19-93 JAP Implemented condition build FAR and NEAR pointers
  10. // 03-25-93 JAP Fixed up prototype typedef inconsistencies
  11. // 04-01-03 KJB Moved N53C400 register offsets away from here to
  12. // cardt13b.h. So we can use this module with the
  13. // t358.
  14. //
  15. //-----------------------------------------------------------------------
  16. // Control Register for 53C400
  17. #define CR_RST 0x80
  18. #define CR_DIR 0x40
  19. #define CR_BFR_INT 0x20
  20. #define CR_5380_INT 0x10
  21. #define CR_SH_INT 0x8
  22. // Status Register for 53C400
  23. #define SR_ACCESS 0x80
  24. #define SR_DIR 0x40
  25. #define SR_BFR_INT 0x20
  26. #define SR_5380_INT 0x10
  27. #define SR_SH_INT 0x8
  28. #define SR_HBFR_RDY 0x4
  29. #define SR_SBFR_RDY 0x2
  30. #define SR_IRQ_RDY 0x1
  31. //
  32. // Redefined routines
  33. //
  34. // Each N53C400 has a 5380 built in
  35. #define N5380PortPut(g,reg,byte) \
  36. N53C400PortPut(g,N53C400_5380+reg,byte);
  37. #define N5380PortGet(g,reg,byte) \
  38. N53C400PortGet(g,N53C400_5380+reg,byte);
  39. //
  40. // public functions
  41. //
  42. BOOLEAN N53C400CheckAdapter(PADAPTER_INFO g);
  43. USHORT N53C400WriteBytesFast(PADAPTER_INFO g, PUCHAR pbytes,
  44. ULONG len, PULONG pActualLen, UCHAR phase);
  45. USHORT N53C400ReadBytesFast(PADAPTER_INFO g, PUCHAR pbytes,
  46. ULONG len, PULONG pActualLen, UCHAR phase);
  47. VOID N53C400EnableInterrupt(PADAPTER_INFO g);
  48. VOID N53C400DisableInterrupt(PADAPTER_INFO g);
  49. VOID N53C400ResetBus(PADAPTER_INFO g);