You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
99 lines
1.7 KiB
99 lines
1.7 KiB
#ifndef __PLXPCI_9054_FUNC_H
|
|
#define __PLXPCI_9054_FUNC_H
|
|
|
|
#ifdef __cplusplus
|
|
extern "C" {
|
|
#endif
|
|
|
|
#ifndef PLX_LINUX
|
|
#define PLX_LINUX
|
|
#endif
|
|
/******************************************************************************
|
|
*
|
|
* File Name:
|
|
*
|
|
* PlxPci_9054_Func.h
|
|
*
|
|
* Description:
|
|
*
|
|
*
|
|
*
|
|
******************************************************************************/
|
|
|
|
#include "PlxTypes.h"
|
|
#include "PlxApi.h"
|
|
#include "PlxInit.h"
|
|
|
|
|
|
|
|
typedef enum __REGISTER_SET{
|
|
Pci9054,
|
|
Lcr9054,
|
|
Dma9054,
|
|
Eep9054
|
|
}REGISTER_SET;
|
|
/**********************************************
|
|
* Functions
|
|
*********************************************/
|
|
BOOLEAN PlxPci_9054_SelDevice(U32 Dkey);
|
|
|
|
BOOLEAN PlxPci_9054_Open(void);
|
|
|
|
|
|
BOOLEAN
|
|
PlxPci_9054_DMATransfer(
|
|
U32 LocalAddress,
|
|
VOID *pUserBuffer,
|
|
U32 BufferByteCount
|
|
);
|
|
|
|
BOOLEAN
|
|
PlxPci_9054_ReadBar(
|
|
U32 PBOffset,
|
|
VOID *pUserBuffer,
|
|
U32 UserBuffersize
|
|
);
|
|
|
|
BOOLEAN
|
|
PlxPci_9054_WriteBar(
|
|
U32 PBOffset,
|
|
VOID *pUserBuffer,
|
|
U32 UserBuffersize
|
|
);
|
|
|
|
BOOLEAN
|
|
PlxPci_9054_ReadEep(
|
|
U16 RegOffset,
|
|
U32 *RegBuffer
|
|
);
|
|
|
|
BOOLEAN
|
|
PlxPci_9054_WriteEep(
|
|
U16 RegOffset,
|
|
U32 RegVal
|
|
);
|
|
|
|
BOOLEAN PlxPci_9054_Reset(void);
|
|
|
|
BOOLEAN PlxPci_9054_Close(void);
|
|
|
|
BOOLEAN PlxPci_9054_LoadE2pToFPGA(void);
|
|
|
|
BOOLEAN PlxPci_9054_EnableInterrupt(void);
|
|
|
|
BOOLEAN PlxPci_9054_DisableInterrupt(void);
|
|
|
|
BOOLEAN PlxPci_9054_WaitForInterrupt(U32 TimeOut);
|
|
|
|
BOOLEAN PlxPci_9054_ChipTypeGet(U8 Revision,
|
|
U16 ChipType);
|
|
|
|
BOOLEAN PlxPci_9054_DMAChannelOpen(void);
|
|
|
|
BOOLEAN PlxPci_9054_DMAChannelClose(void);
|
|
|
|
#ifdef __cplusplus
|
|
}
|
|
#endif
|
|
|
|
#endif
|
|
|