📄 sdmatrans.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.
//
//-----------------------------------------------------------------------------
//
// Header: sdmatrans.h
//
// Provides definitions for specifying a data transfer handled by the SDMA.
//
//-----------------------------------------------------------------------------
#ifndef __SDMATRANS_H__
#define __SDMATRANS_H__
#if __cplusplus
extern "C" {
#endif
//-----------------------------------------------------------------------------
// Defines
//-----------------------------------------------------------------------------
// Types
typedef struct
{
BOOL bDoneIntr;
UINT16 numBytes;
UINT32 srcAddrPA;
UINT32 destAddrPA;
} SDMA_MEM_TRANS, *PSDMA_MEM_TRANS;
typedef struct
{
BOOL bReady;
BOOL bError;
} SDMA_TRANS_STATUS, *PSDMA_TRANS_STATUS;
//-----------------------------------------------------------------------------
// Functions
BOOL SdmaInit(void);
BOOL SdmaDeinit(void);
UINT8 SdmaOpenChan(UINT32 dmaReq, UINT8 priority);
BOOL SdmaCloseChan(UINT8 chan);
BOOL SdmaMapMemTransList(UINT8 chan, UINT32 numTrans,
PSDMA_MEM_TRANS pTransList);
BOOL SdmaUpdateMemTrans(UINT8 chan, UINT32 transIndex, PSDMA_MEM_TRANS pTrans);
BOOL SdmaResetTransStatus(UINT8 chan, UINT32 transIndex);
BOOL SdmaGetTransStatus(UINT8 chan, UINT32 transIndex,
PSDMA_TRANS_STATUS pStatus);
BOOL SdmaResetTransList(UINT8 chan);
BOOL SdmaUnmapTransList(UINT8 chan);
BOOL SdmaStartChan(UINT8 chan);
BOOL SdmaStopChan(UINT8 chan, BOOL bKill);
#ifdef __cplusplus
}
#endif
#endif // __SDMATRANS_H__
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -