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.

78 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. typedef struct _HOST_INFO {
  15. struct _HOST_INFO *Next;
  16. ULONG DeviceIndex;
  17. PUCHAR InstanceID;
  18. ULONG ControllerType;
  19. ULONG SocketNumber;
  20. } HOST_INFO, *PHOST_INFO;
  21. extern
  22. CHAR
  23. getopt (ULONG argc, PUCHAR *argv, PCHAR opts);
  24. VOID
  25. DumpCIS(
  26. PHOST_INFO HostInfo
  27. );
  28. VOID
  29. DumpIrqScanInfo(
  30. VOID
  31. );
  32. HANDLE
  33. GetHandleForIoctl(
  34. IN PHOST_INFO hostInfo
  35. );
  36. //
  37. // Constants
  38. //
  39. #define PCMCIA_DEVICE_NAME "\\DosDevices\\Pcmcia"
  40. #define BUFFER_SIZE 4096
  41. #define CISTPL_END 0xFF
  42. typedef struct _StringTable {
  43. PUCHAR CommandName;
  44. UCHAR CommandCode;
  45. } StringTable, *PStringTable;
  46. typedef struct _OLD_PCCARD_DEVICE_DATA {
  47. ULONG DeviceId;
  48. ULONG LegacyBaseAddress;
  49. UCHAR IRQMap[16];
  50. } OLD_PCCARD_DEVICE_DATA, *POLD_PCCARD_DEVICE_DATA;