📄 ser_card.h
字号:
//
// Copyright (c) Microsoft Corporation. All rights reserved.
//
//
// Use of this source code is subject to the terms of the Microsoft end-user
// license agreement (EULA) under which you licensed this SOFTWARE PRODUCT.
// If you did not accept the terms of the EULA, you are not authorized to use
// this source code. For a copy of the EULA, please see the LICENSE.RTF on your
// install media.
//
/*++
THIS CODE AND INFORMATION IS PROVIDED "AS IS" WITHOUT WARRANTY OF
ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING BUT NOT LIMITED TO
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND/OR FITNESS FOR A
PARTICULAR PURPOSE.
Module Name:
ser_card.h
Abstract:
Definitions for the PCMCIA Card serial PDD.
Notes:
--*/
#ifndef __SER_CARD_H__
#define __SER_CARD_H__
#ifdef __cplusplus
extern "C" {
#endif
/*
* @doc HWINTERNAL
* @struct SER_CARD_INFO | Private structure.
*/
typedef struct __SER_CARD_INFO
{
//Put lib struct first so we can easily cast pointers
SER16550_INFO ser16550;
// now PCMCIA specific goodies
CARD_SOCKET_HANDLE hCardSock;
CARD_CLIENT_HANDLE hCardClient;
CARD_WINDOW_HANDLE hCardWindow;
PVOID pCardIOWin;
UINT32 IO_Granularity;
// And whatever else we need
UINT8 cOpenCount; // @field Count of concurrent opens
HANDLE hDevice; // @field Device ID from RegisterDevice
COMMPROP CommProp; // @field CommProp structure.
PVOID pMddHead; // @field First arg to mdd callbacks.
BOOL fIRMode; // @field Boolean, are we running in IR mode?
DWORD ResetDelay; // @field Delay after reset, in ms
BOOL NoScratchPad; // @field Is this UART missing its scratch pad register?
UCHAR FakeScratchPad; // @field If no real scratch register, here's a substitute.
BOOL fPowerCycle; // @field It is true If power cycle after driver opened.
PHWOBJ pHWObj; // @field Pointer to PDDs HWObj structure
} SER_CARD_INFO, *PSER_CARD_INFO;
#ifdef __cplusplus
}
#endif
#endif __SER_DK2_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -