📄 pddmain.h
字号:
/*
*
* Copyright (C) 2003-2004, MOTOROLA, INC. All Rights Reserved
* THIS SOURCE CODE IS CONFIDENTIAL AND PROPRIETARY AND MAY NOT
* BE USED OR DISTRIBUTED WITHOUT THE WRITTEN PERMISSION OF
* MOTOROLA, INC.
*
* Copyright (C) 2004-2006, Freescale Semiconductor, Inc. All Rights Reserved.
* THIS SOURCE CODE, AND ITS USE AND DISTRIBUTION, IS SUBJECT TO THE TERMS
* AND CONDITIONS OF THE APPLICABLE LICENSE AGREEMENT
*
*/
#ifndef __PDDMAIN_H_
#define __PDDMAIN_H_
/*+Public include files******************************************************
Include any files to export any inherited data type *necessary* needed by
client to use the services of this module. Files which are included for
internal use within this module should be done in a later section, and should
*not* be exported un-necessarily.
**************************************************************************-*/
#include <windows.h>
#include <types.h>
#include "socksv2.h"
#include <ceddk.h>
#include <devload.h>
#include <pcibus.h>
#include "Resource.h"
#include "pcmciabridge.h"
#include "pcmciasock.h"
/*+Public Macro definitions**************************************************
Define all public macros or macros to be used only within the module for
bootstapping the definitions of other items
**************************************************************************-*/
/*+Public Type definitions***************************************************
Define all types which will be exported from this module. Type definitions
to be used within the module should be defined in the later section.
**************************************************************************-*/
#ifdef __PDDMAIN_CPP__
/*+Local include files*******************************************************
Include all files that will be used only within this module here.
**************************************************************************-*/
/*-------------------------- Local context - START ---------------------------*/
#define VISIBLE /* Mark as LOCAL context */
/*+Local Macro definitions***************************************************
Define all macros that will only be used within the module here.
**************************************************************************-*/
/*+Local function prototypes*************************************************
Declare all proto-types for functions/procedures only used within the module.
**************************************************************************-*/
/*+Local data declarations***************************************************
Define all data objects that will used within the module here.
**************************************************************************-*/
CPcmciaBusBridge* gpPcmciaBridge = NULL;
#ifdef DEBUG
DBGPARAM dpCurSettings =
{
TEXT( "MX27" ),
{
TEXT( "Errors" ),
TEXT( "Warnings" ),
TEXT( "Functions" ),
TEXT( "Callbacks" ),
TEXT( "STSCHG Int" ),
TEXT( "IREQ Int" ),
TEXT( "MDD Init" ),
TEXT( "PCI Enum" ),
TEXT( "PDD" ),
TEXT( "PDD Init" ),
TEXT( "CIS Tuples" ),
TEXT( "MDD" ),
TEXT( "Undefined" ),
TEXT( "Undefined" ),
TEXT( "Undefined" ),
TEXT( "Undefined" ) },
0xffff
};
#endif // DEBUG
/*-------------------------- Local context - END ---------------------------*/
#else // !__PDDMAIN_CPP__
#define VISIBLE extern /* Mark as GLOBAL context */
#endif //__PDDMAIN_CPP__
/*------------------------- Global context - START -------------------------*/
/*+Public data declarations**************************************************
Define all data objects that will be exported here.
**************************************************************************-*/
/*+Public function prototypes************************************************
Define all proto-types for public functions/procedures here.
**************************************************************************-*/
#ifdef __cplusplus
extern "C" {
#endif
VISIBLE STATUS PDCardAccessMemory( HANDLE hSocket, PSS_MEMORY_ACCESS pMemoryAccess );
VISIBLE STATUS PDCardGetSocket( HANDLE hSocket, PSS_SOCKET_STATE pState );
VISIBLE STATUS PDCardGetWindow( UINT32 uWindow, PSS_WINDOW_STATE pWindowState);
VISIBLE STATUS PDCardInquireSocket( HANDLE hSocket, PSS_SOCKET_INFO pSocketInfo );
VISIBLE STATUS PDCardInquireWindow( UINT32 uWindow, PSS_WINDOW_INFO pWinInfo);
VISIBLE STATUS PDCardResetSocket( HANDLE hSocket );
VISIBLE STATUS PDCardSetSocket( HANDLE hSocket, PSS_SOCKET_STATE pState);
VISIBLE STATUS PDCardSetWindow( UINT32 uWindow, PSS_WINDOW_STATE pWindowState);
VISIBLE STATUS PDGetPowerEntry( HANDLE hSocket, PDWORD pdwNumOfEnery, PSS_POWER_ENTRY pPowerEntry );
VISIBLE CPcmciaSocket* GetSocket( HANDLE hSocket );
#ifdef __cplusplus
};
#endif
/*-------------------------- Global context - END --------------------------*/
#undef VISIBLE
#endif //__PDDMAIN_H_
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -