The PCMCIA_MODIFY_MEMORY_WINDOW interface routine sets the attributes of a memory window for a PCMCIA memory card. The memory window is mapped by the PCMCIA bus driver.
BOOLEAN
(*PPCMCIA_MODIFY_MEMORY_WINDOW)(
IN PVOID Context,
IN PHYSICAL_MEMORY HostBase,
IN PHYSICAL_MEMORY CardBase,
IN BOOLEAN Enable,
IN ULONG WindowSize,
IN UCHAR AccessSpeed,
IN UCHAR BusWidth,
IN BOOLEAN AttributeMemory
);
If Enable is FALSE, BusWidth is not used.
The PCMCIA_MODIFY_MEMORY_WINDOW interface routine returns TRUE if the memory window is successfully enabled or disabled, as specified by the Enable parameter.
Declared in ntddpcm.h. Include ntddpcm.h.
A caller must set the Context parameter to the context that is specified by the PCMCIA bus driver. The PCMCIA bus driver returns the context for the interface routines in the Context member of the same PCMCIA_INTERFACE_STANDARD structure that contains the pointers to the interface routines. If the Context parameter is not valid, system behavior is not defined, and the system might halt.
Callers of this routine must be running at IRQL <= DISPATCH_LEVEL. To maintain overall system performance, it is recommended that drivers call this routine at IRQL < DISPATCH_LEVEL.
PCMCIA_IS_WRITE_PROTECTED, PCMCIA_SET_VPP, PCMCIA_INTERFACE_STANDARD