Source code of Windows XP (NT5)
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.

72 lines
1.1 KiB

  1. /*++
  2. Copyright (c) 1991 Microsoft Corporation
  3. Module Name:
  4. pcmcmd.h
  5. Abstract:
  6. This file provides definitions for the pcmcmd utility
  7. Author:
  8. Neil Sandlin
  9. Environment:
  10. User process.
  11. Notes:
  12. Revision History:
  13. --*/
  14. extern
  15. CHAR
  16. getopt (ULONG argc, PUCHAR *argv, PCHAR opts);
  17. VOID
  18. DumpCIS(
  19. HANDLE Handle,
  20. ULONG Slot,
  21. PUCHAR Buffer,
  22. ULONG BufferSize
  23. );
  24. VOID
  25. DumpIrqScanInfo(
  26. VOID
  27. );
  28. //
  29. // Constants
  30. //
  31. #define PCMCIA_DEVICE_NAME "\\DosDevices\\Pcmcia"
  32. #define BUFFER_SIZE 4096
  33. #define CISTPL_END 0xFF
  34. #define CMD_DUMP_TUPLES 0x00000001
  35. #define CMD_DUMP_CONFIGURATION 0x00000002
  36. #define CMD_DUMP_REGISTERS 0x00000004
  37. #define CMD_DUMP_SOCKET_INFO 0x00000008
  38. #define CMD_DUMP_IRQ_SCAN_INFO 0x00000010
  39. typedef struct _StringTable {
  40. PUCHAR CommandName;
  41. UCHAR CommandCode;
  42. } StringTable, *PStringTable;
  43. typedef struct _OLD_PCCARD_DEVICE_DATA {
  44. ULONG DeviceId;
  45. ULONG LegacyBaseAddress;
  46. UCHAR IRQMap[16];
  47. } OLD_PCCARD_DEVICE_DATA, *POLD_PCCARD_DEVICE_DATA;