📄 mpsc_dy4.h
字号:
/* mpsc_dy4.h - Header File for MPSC devices on GT-64x60 *//************************************************************************** * * Copyright (c) 2005 Curtiss-Wright Controls, Inc. All rights * reserved. This Source Code is the Property of Curtiss-Wright * Controls, Inc. and can only be used in accordance with Source * Code License Agreement(s) of Curtiss-Wright Controls, Inc. or any * of its subsidiaries. * **************************************************************************//******************************************************************************** (c), Copyright 2001, Marvell International Ltd. ** THIS CODE CONTAINS CONFIDENTIAL INFORMATION OF MARVELL SEMICONDUCTOR, INC. ** NO RIGHTS ARE GRANTED HEREIN UNDER ANY PATENT, MASK WORK RIGHT OR COPYRIGHT ** OF MARVELL OR ANY THIRD PARTY. MARVELL RESERVES THE RIGHT AT ITS SOLE ** DISCRETION TO REQUEST THAT THIS CODE BE IMMEDIATELY RETURNED TO MARVELL. ** THIS CODE IS PROVIDED "AS IS". MARVELL MAKES NO WARRANTIES, EXPRESS, IMPLIED ** OR OTHERWISE, REGARDING ITS ACCURACY, COMPLETENESS OR PERFORMANCE. *********************************************************************************//*modification history--------------------01d,08dec05,tis rename Discovery_II directory to Discovery_III CR#12835.01c,02Nov02,deb PTR Add Functions to contain access to register data 01b,07may02,aak integrate into VME-181 BSP rel 1.001a,26sep01,marvell EV-64260A-BP BSP Version 2.2/1*/#ifndef _MPSC_OS_H #define _MPSC_OS_H/* includes */#include <vxWorks.h>#if defined (SCP_124) || defined (VME_183)#include "h/drv/discovery_III/sio/mpscLow_dy4.h"#include "h/drv/discovery_III/sio/sdma_dy4.h"#include "h/drv/discovery_III/sio/brg_dy4.h"#else#include "h/drv/discovery_II/sio/mpscLow_dy4.h"#include "h/drv/discovery_II/sio/sdma_dy4.h"#include "h/drv/discovery_II/sio/brg_dy4.h"#endif#ifdef __cplusplusextern "C" {#endif/* defines *//* typedefs */typedef struct MpscPortConfiguration{ UINT protocol :3; /* protocol type */ /* MPSC main struct as defined in the low level */ MPSC_MAIN_STRUCT main; UINT32 portconf; /* protocol configuration */ MPSC_CHANNEL_STRUCT channel; /* MPSC channel register */} MPSC_PORT_CONFIG;/* API list */STATUS mpscGetDefaultPortConfig (MPSC_PORT_CONFIG* portConfig,UINT32 MpscPort);STATUS mpscGetPortConfig (MPSC_PORT_CONFIG* portConfig,UINT32 MpscPort);STATUS mpscSetPortConfig (MPSC_PORT_CONFIG* portConfig,UINT32 MpscPort);STATUS mpscInitPort (MPSC_PORT_CONFIG* portConfig,UINT32 fMpscPort);UINT32 mpscMrrGet(void);STATUS mpscMrrSet(UINT32 mrrValue);UINT32 mpscSerialPortMuxGet(void);STATUS mpscSerialPortMuxSet(UINT32 serialPortMuxValue);UINT32 mpscRcrrGet(void);STATUS mpscRcrrSet(UINT32 rcrrValue);UINT32 mpscTcrrGet(void);STATUS mpscTcrrSet(UINT32 tcrrValue);#ifdef __cplusplus}#endif#endif /* _MPSC_OS_H */
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -