📄 bvd_ser_pdd.h
字号:
/* Copyright ?1999 Intel Corp. */
/*++
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.
Copyright (c) 1995-1998 Microsoft Corporation
Module Name:
BVD_SER_PDD.h
Abstract:
Holds definitions for sample Bulverde's 16550 compatible serial interface.
Notes:
--*/
#ifndef __BVD_SER_PDD_H__
#define __BVD_SER_PDD_H__
#ifdef __cplusplus
extern "C" {
#endif
/*
* @doc HWINTERNAL
* @struct SER_INFO | Private structure.
*/
typedef struct __SER_PDD_INFO {
// Put lib struct first so we can easily cast pointers
SER16550_INFO hwSer;
// now hardware specific goodies
DWORD dwIOBase; // @field IO Base Address - unmapped
DWORD dwIOLen; // @field IO Length
DWORD dwIRQ; // @field Interrupt number for this peripheral
DWORD dwDevIndex; // @field Index of device
PULONG pBaseAddress; // @field Start of serial registers - mapped
volatile XLLP_GPIO_T *pGPIOReg; // @field for configuring GPIO pins
volatile XLLP_INTC_T *pINTCReg; // @field for configuring irq
volatile XLLP_CLKMGR_T *pClkMgrReg; // @field for configuring clk mgr
UINT8 cOpenCount; // @field Count of concurrent opens
COMMPROP CommProp; // @field Pointer to CommProp structure.
PVOID pMddHead; // @field First arg to mdd callbacks.
BOOL fIRMode; // @field Boolean, are we running in IR mode?
//From com16550.h, possibly need:
PHWOBJ pHWObj; // @field Pointer to PDDs HWObj structure
} SER_PDD_INFO, *PSER_PDD_INFO;
//Here are the names of the values stored in the registry
#define XSC1_REG_IOBASE_VAL_NAME TEXT("IoBase")
#define XSC1_REG_IOBASE_VAL_LEN sizeof( DWORD )
#define XSC1_REG_IOLEN_VAL_NAME TEXT("IoLen")
#define XSC1_REG_IOLEN_VAL_LEN sizeof( DWORD )
#define XSC1_REG_IRQ_VAL_NAME TEXT("Irq")
#define XSC1_REG_IRQ_VAL_LEN sizeof( DWORD )
#define XSC1_REG_DEVINDEX_VAL_NAME TEXT("DeviceArrayIndex")
#define XSC1_REG_DEVINDEX_VAL_LEN sizeof( DWORD )
#ifdef __cplusplus
}
#endif
#endif __BVD_SER_PDD_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -