mirror of
https://github.com/reactos/reactos.git
synced 2025-08-02 13:16:07 +00:00
[DDK]
* Annotate ntddpcm.h and apply some formatting consistency to it. svn path=/trunk/; revision=60020
This commit is contained in:
parent
074c447003
commit
a56630f977
1 changed files with 111 additions and 87 deletions
|
@ -20,6 +20,8 @@
|
|||
*
|
||||
*/
|
||||
|
||||
#pragma once
|
||||
|
||||
#ifndef _NTDDPCMH_
|
||||
#define _NTDDPCMH_
|
||||
|
||||
|
@ -84,19 +86,32 @@ typedef struct _PCMCIA_SOCKET_INFORMATION {
|
|||
#define PcmciaModelFromControllerType(type) (((type) >> 8) & 0x3ffff)
|
||||
#define PcmciaRevisionFromControllerType(type) ((type) >> 26)
|
||||
|
||||
|
||||
DEFINE_GUID(GUID_PCMCIA_INTERFACE_STANDARD, \
|
||||
0xbed5dadfL, 0x38fb, 0x11d1, 0x94, 0x62, 0x00, 0xc0, 0x4f, 0xb9, 0x60, 0xee);
|
||||
|
||||
typedef ULONG MEMORY_SPACE;
|
||||
|
||||
typedef ULONG
|
||||
(NTAPI *PPCMCIA_READ_WRITE_CONFIG)(
|
||||
IN PVOID Context,
|
||||
IN ULONG WhichSpace,
|
||||
IN PUCHAR Buffer,
|
||||
IN ULONG Offset,
|
||||
IN ULONG Length);
|
||||
typedef
|
||||
_Function_class_(PCMCIA_READ_CONFIG)
|
||||
ULONG
|
||||
(NTAPI PCMCIA_READ_CONFIG)(
|
||||
_In_opt_ PVOID Context,
|
||||
_In_ ULONG WhichSpace,
|
||||
_Out_writes_bytes_all_(Length) PUCHAR Buffer,
|
||||
_In_ ULONG Offset,
|
||||
_In_ ULONG Length);
|
||||
typedef PCMCIA_READ_CONFIG *PPCMCIA_READ_CONFIG;
|
||||
|
||||
typedef
|
||||
_Function_class_(PCMCIA_WRITE_CONFIG)
|
||||
ULONG
|
||||
(NTAPI PCMCIA_WRITE_CONFIG)(
|
||||
_In_opt_ PVOID Context,
|
||||
_In_ ULONG WhichSpace,
|
||||
_In_reads_bytes_(Length) PUCHAR Buffer,
|
||||
_In_ ULONG Offset,
|
||||
_In_ ULONG Length);
|
||||
typedef PCMCIA_WRITE_CONFIG *PPCMCIA_WRITE_CONFIG;
|
||||
|
||||
#define PCCARD_PCI_CONFIGURATION_SPACE 0
|
||||
#define PCCARD_ATTRIBUTE_MEMORY 1
|
||||
|
@ -117,29 +132,38 @@ typedef struct _PCMCIA_BUS_INTERFACE_STANDARD {
|
|||
#define PCMCIA_MEMORY_8BIT_ACCESS 0
|
||||
#define PCMCIA_MEMORY_16BIT_ACCESS 1
|
||||
|
||||
typedef BOOLEAN
|
||||
(NTAPI *PPCMCIA_MODIFY_MEMORY_WINDOW)(
|
||||
IN PVOID Context,
|
||||
IN ULONGLONG HostBase,
|
||||
IN ULONGLONG CardBase,
|
||||
IN BOOLEAN Enable,
|
||||
IN ULONG WindowSize OPTIONAL,
|
||||
IN UCHAR AccessSpeed OPTIONAL,
|
||||
IN UCHAR BusWidth OPTIONAL,
|
||||
IN BOOLEAN IsAttributeMemory OPTIONAL);
|
||||
typedef
|
||||
_Function_class_(PCMCIA_MODIFY_MEMORY_WINDOW)
|
||||
BOOLEAN
|
||||
(NTAPI PCMCIA_MODIFY_MEMORY_WINDOW)(
|
||||
_In_opt_ PVOID Context,
|
||||
_In_ ULONGLONG HostBase,
|
||||
_In_ ULONGLONG CardBase,
|
||||
_In_ BOOLEAN Enable,
|
||||
_In_opt_ ULONG WindowSize,
|
||||
_In_opt_ UCHAR AccessSpeed,
|
||||
_In_opt_ UCHAR BusWidth,
|
||||
_In_opt_ BOOLEAN IsAttributeMemory);
|
||||
typedef PCMCIA_MODIFY_MEMORY_WINDOW *PPCMCIA_MODIFY_MEMORY_WINDOW;
|
||||
|
||||
#define PCMCIA_VPP_0V 0
|
||||
#define PCMCIA_VPP_12V 1
|
||||
#define PCMCIA_VPP_IS_VCC 2
|
||||
|
||||
typedef BOOLEAN
|
||||
(NTAPI *PPCMCIA_SET_VPP)(
|
||||
IN PVOID Context,
|
||||
IN UCHAR VppLevel);
|
||||
typedef
|
||||
_Function_class_(PCMCIA_SET_VPP)
|
||||
BOOLEAN
|
||||
(NTAPI PCMCIA_SET_VPP)(
|
||||
_In_opt_ PVOID Context,
|
||||
_In_ UCHAR VppLevel);
|
||||
typedef PCMCIA_SET_VPP *PPCMCIA_SET_VPP;
|
||||
|
||||
typedef BOOLEAN
|
||||
(NTAPI *PPCMCIA_IS_WRITE_PROTECTED)(
|
||||
IN PVOID Context);
|
||||
typedef
|
||||
_Function_class_(PCMCIA_IS_WRITE_PROTECTED)
|
||||
BOOLEAN
|
||||
(NTAPI PCMCIA_IS_WRITE_PROTECTED)(
|
||||
_In_opt_ PVOID Context);
|
||||
typedef PCMCIA_IS_WRITE_PROTECTED *PPCMCIA_IS_WRITE_PROTECTED;
|
||||
|
||||
typedef struct _PCMCIA_INTERFACE_STANDARD {
|
||||
USHORT Size;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue