home *** CD-ROM | disk | FTP | other *** search
/ H4CK3R 14 / hacker14.iso / programacao / cwin / c.exe / $INSTDIR / include / ddk / miniport.h < prev    next >
Encoding:
C/C++ Source or Header  |  2003-12-15  |  1.7 KB  |  83 lines

  1. /*
  2.  * miniport.h
  3.  *
  4.  * Type definitions for miniport drivers
  5.  *
  6.  * This file is part of the w32api package.
  7.  *
  8.  * Contributors:
  9.  *   Created by Casper S. Hornstrup <chorns@users.sourceforge.net>
  10.  *
  11.  * THIS SOFTWARE IS NOT COPYRIGHTED
  12.  *
  13.  * This source code is offered for use in the public domain. You may
  14.  * use, modify or distribute it freely.
  15.  *
  16.  * This code is distributed in the hope that it will be useful but
  17.  * WITHOUT ANY WARRANTY. ALL WARRANTIES, EXPRESS OR IMPLIED ARE HEREBY
  18.  * DISCLAIMED. This includes but is not limited to warranties of
  19.  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
  20.  *
  21.  */
  22.  
  23. #ifndef __MINIPORT_H
  24. #define __MINIPORT_H
  25.  
  26. #if __GNUC__ >=3
  27. #pragma GCC system_header
  28. #endif
  29.  
  30. #ifdef __cplusplus
  31. extern "C" {
  32. #endif
  33.  
  34. #pragma pack(push,4)
  35.  
  36. #include "ntddk.h"
  37.  
  38.  
  39. #define EMULATOR_READ_ACCESS              0x01
  40. #define EMULATOR_WRITE_ACCESS             0x02
  41.  
  42. typedef enum _EMULATOR_PORT_ACCESS_TYPE {
  43.     Uchar,
  44.     Ushort,
  45.     Ulong
  46. } EMULATOR_PORT_ACCESS_TYPE, *PEMULATOR_PORT_ACCESS_TYPE;
  47.  
  48.  
  49. typedef struct _EMULATOR_ACCESS_ENTRY {
  50.   ULONG  BasePort;
  51.   ULONG  NumConsecutivePorts;
  52.   EMULATOR_PORT_ACCESS_TYPE  AccessType;
  53.   UCHAR  AccessMode;
  54.   UCHAR  StringSupport;
  55.   PVOID  Routine;
  56. } EMULATOR_ACCESS_ENTRY, *PEMULATOR_ACCESS_ENTRY;
  57.  
  58. #ifndef VIDEO_ACCESS_RANGE_DEFINED /* also in video.h */
  59. #define VIDEO_ACCESS_RANGE_DEFINED
  60. typedef struct _VIDEO_ACCESS_RANGE {
  61.   PHYSICAL_ADDRESS  RangeStart;
  62.   ULONG  RangeLength;
  63.   UCHAR  RangeInIoSpace;
  64.   UCHAR  RangeVisible;
  65.   UCHAR  RangeShareable;
  66.   UCHAR  RangePassive;
  67. } VIDEO_ACCESS_RANGE, *PVIDEO_ACCESS_RANGE;
  68. #endif
  69.  
  70. typedef VOID DDKAPI
  71. (*PBANKED_SECTION_ROUTINE)(
  72.   IN ULONG  ReadBank,
  73.   IN ULONG  WriteBank,
  74.   IN PVOID  Context);
  75.  
  76. #pragma pack(pop)
  77.  
  78. #ifdef __cplusplus
  79. }
  80. #endif
  81.  
  82. #endif /* __MINIPORT_H */
  83.