windows-nt/Source/XPSP1/NT/base/busdrv/pccard/pcmcibus/db.c
2020-09-26 16:20:57 +08:00

74 lines
1 KiB
C
Raw Permalink Blame History

This file contains invisible Unicode characters

This file contains invisible Unicode characters that are indistinguishable to humans but may be processed differently by a computer. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

/*++
Copyright (c) 1994 Microsoft Corporation
Module Name:
db.c
Abstract:
This module contains the code that contains
Databook carbus controller specific initialization and
other dispatches
Author:
Ravisankar Pudipeddi (ravisp) 1-Nov-97
Environment:
Kernel mode
Revision History :
--*/
#include "pch.h"
VOID
DBInitialize(IN PFDO_EXTENSION FdoExtension)
/*++
Routine Description:
Initialize Databook cardbus controllers
Arguments:
FdoExtension - Pointer to the device extension for the controller FDO
Return Value:
None
--*/
{
PcicWriteSocket(FdoExtension->SocketList,
PCIC_INTERRUPT,
(UCHAR) (PcicReadSocket(FdoExtension->SocketList, PCIC_INTERRUPT)
| IGC_INTR_ENABLE));
}
BOOLEAN
DBSetZV(
IN PSOCKET Socket,
IN BOOLEAN Enable
)
{
if (Enable) {
PcicWriteSocket(Socket, PCIC_DBK_ZV_ENABLE, DBK_ZVE_MM_MODE);
} else {
PcicWriteSocket(Socket, PCIC_DBK_ZV_ENABLE, DBK_ZVE_STANDARD_MODE);
}
return TRUE;
}