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.

58 lines
2.3 KiB

4 years ago
  1. //-----------------------------------------------------------------------
  2. //
  3. // CARD.H
  4. //
  5. // Functions exported from the lower level driver. These functions
  6. // are in the cardtxxx.c files.
  7. //
  8. // Only these routines may be accessed from a given cardtxxx.lib file
  9. // for a given operating system.
  10. //
  11. // To use these routines, include TYPEDEFS.H, STATUS.H before this file.
  12. //
  13. // Revisions:
  14. // 03-22-93 KJB First.
  15. // 03-25-93 JAP Comment changes only.
  16. // 03-26-93 JAP Fixed up prototype typedef inconsistencies
  17. // 04-22-93 JAP Added CardGetIRQ() prototype.
  18. // 05-12-93 KJB Added CardParseCommandString for card specific
  19. // standard string parsing across platforms.
  20. // Changed CardCheckAdapter to accept an
  21. // Initialization info from command line, ie
  22. // force bi-directional ports, etc.
  23. // All functions that used to take an PBASE_REGISTER
  24. // parameter now take PWORKSPACE. CardCheckAdapter
  25. // takes the both the PBASE_REGISTER and the
  26. // PWORKSPACE parameters. Auto Request Sense is
  27. // now supported.
  28. // 05-14-93 KJB CardCheckAdapter now takes only two parameters:
  29. // PWORKSPACE and PINIT. The baseIoAddress is inside
  30. // the PINIT structure and must be filled.
  31. // 05-17-93 KJB Fixed CardParseCommandString parameter warning.
  32. //
  33. //-----------------------------------------------------------------------
  34. //
  35. // Functions
  36. //
  37. PBASE_REGISTER CardAddress (USHORT i);
  38. USHORT CardNumberOfAddressRanges (VOID);
  39. ULONG CardMaxTransferSize (VOID);
  40. BOOLEAN CardAddressRangeInIoSpace (VOID);
  41. USHORT CardAddressRangeLength (VOID);
  42. BOOLEAN CardSupportsInterrupts (VOID);
  43. UCHAR CardDefaultInterruptLevel (VOID);
  44. USHORT CardStartCommandInterrupt (PTSRB t);
  45. USHORT CardFinishCommandInterrupt (PTSRB t);
  46. USHORT CardDoCommand (PTSRB t);
  47. BOOLEAN CardCheckAdapter (PWORKSPACE w, PINIT init);
  48. BOOLEAN CardInterrupt (PWORKSPACE w);
  49. VOID CardResetBus (PWORKSPACE w);
  50. PUCHAR CardGetName (VOID);
  51. PUCHAR CardGetShortName (VOID);
  52. UCHAR CardGetType (VOID);
  53. USHORT CardGetIRQ (USHORT i);
  54. USHORT CardGetWorkspaceSize (VOID);
  55. BOOLEAN CardParseCommandString (PINIT init, PCHAR str);