📄 xspcmciadcs.h
字号:
/******************************************************************************
**
** COPYRIGHT (C) 2000, 2001 Intel Corporation.
**
** This software as well as the software described in it is furnished under
** license and may only be used or copied in accordance with the terms of the
** license. The information in this file is furnished for informational use
** only, is subject to change without notice, and should not be construed as
** a commitment by Intel Corporation. Intel Corporation assumes no
** responsibility or liability for any errors or inaccuracies that may appear
** in this document or any software that may be provided in association with
** this document.
** Except as permitted by such license, no part of this document may be
** reproduced, stored in a retrieval system, or transmitted in any form or by
** any means without the express written consent of Intel Corporation.
**
** FILENAME: XsPcmciaDCS.h
**
** PURPOSE: This is the header file that defines the Device Context
** Structure (DCS) used by the Sandgate PCMCIA driver.
**
** LAST MODIFIED: $Modtime: 7/17/03 1:01p $
******************************************************************************/
#ifndef _XsPcmciaDCS_h
#define _XsPcmciaDCS_h
typedef enum PCMCIA_SLOTSE {
PCMCIA_SLOT0 = 0,
PCMCIA_SLOT1
} PCMCIA_SLOTST;
/*
*******************************************************************************
* This is the Device Context Structure for PCMCIA.
*******************************************************************************
*/
typedef struct XS_PCMCIA_DCSS
{
UINT32 loggedError; // Error log
UINT32 isrError; // Error log
// PCMCIA APIs
XsPcmciaHWSetupT XsPcmciaHWSetupFnP; // HW init
XsPcmciaHWShutdownT XsPcmciaHWShutdownFnP; // Cleanup routine
XsPcmciaGetSocketT XsPcmciaGetSocketFnP; // Get socket status
XsPcmciaEnableSocketT XsPcmciaEnableSocketFnP; // Enable socket
XsPcmciaDisableSocketT XsPcmciaDisableSocketFnP; // Disable socket
// Socket information
UINT socket; // Socket number
// State of PCMCIA socket
SocketStatusT status; // Socket status
CIS_EntryT cis; // Card Information
UINT cfDetect; // Card detect flag
UINT cfEnabled; // Card enable flag
UINT cfReady; // Card ready flag
} XS_PCMCIA_DCST;
/*
*******************************************************************************
* HEADER FILES
*******************************************************************************
*/
#define MAX_SLOTS 2
#ifdef EXTRN
#undef EXTRN
#endif
#ifdef XS_PCMCIA_GLOBALS
#define EXTRN
#else
#define EXTRN extern
#endif
EXTRN XS_PCMCIA_DCST XS_PCMCIA_DCS[MAX_SLOTS];
#undef EXTRN
#endif // _XsPcmciaDCS_h
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -