⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 ref3_prphr.h

📁 用于TM1300/PNX1300系列DSP(主要用于视频处理)的设备库的源码
💻 H
字号:
/*
 *  +-------------------------------------------------------------------+
 *  | Copyright (c) 1995,1996,1997 by TriMedia Technologies.            |
 *  |                                                                   |
 *  | This software  is furnished under a license  and may only be used |
 *  | and copied in accordance with the terms  and conditions of such a |
 *  | license  and with  the inclusion of this  copyright notice.  This |
 *  | software or any other copies of this software may not be provided |
 *  | or otherwise  made available  to any other person.  The ownership |
 *  | and title of this software is not transferred.                    |
 *  |                                                                   |
 *  | The information  in this software  is subject  to change  without |
 *  | any  prior notice  and should not be construed as a commitment by |
 *  | TriMedia Technologies.                                            |
 *  |                                                                   |
 *  | This  code  and  information  is  provided  "as is"  without  any |
 *  | warranty of any kind,  either expressed or implied, including but |
 *  | not limited  to the implied warranties  of merchantability and/or |
 *  | fitness for any particular purpose.                               |
 *  +-------------------------------------------------------------------+
 *
 *
 *  Module name              : ref3_prphr.h    1.4
 *
 *  Last update              : 18:59:27 - 00/11/09
 *
 *  Description              : Defines typedefs and functions used by ref3 
 *                             peripherals
 *
 *  Revision                 :
 *
 */

#ifndef  _REF3_PRPHR_H
#define  _REF3_PRPHR_H

enum { /* sequence correspond to FPGA reg7 definitions, DON'T CHANGE */
	INT_UNDEFINED,
	INT_PCMCIA,
	INT_COMM_A,
	INT_MICRO,
	INT_RTC,
	INT_1394,
	INT_SOUTH_BRIDGE,
	INT_MODEM
}REF3_FPGA_REG7;

/********************* ISA MEMORY MAP DEVICE INTERFACE *****************/
/* Fpga Write /Read functions */
void  FpgaWriteReg(UInt8 Register, UInt8 FieldMask, UInt8 Data);
UInt8 FpgaReadReg(UInt8 Register);

/* ISA_MEM_CTL_WR function */
void IsaMemCtlWrite(UInt8 FieldMask, UInt8 Data);

/************ Error Definitions ******************/
#define Err_base_Prphr  (Err_base_LIBDEV | 0x0F000000)
#define Err_base_PIC    (Err_base_Prphr  | 0x00020000)
#define Err_base_INTC   (Err_base_Prphr  | 0x00030000)

/* PIC */
#define PIC_INT_C_ERR   (Err_base_PIC    | 0x00000001)
#define PIC_IRQNUM_ERR  (Err_base_PIC    | 0x00000002)
#define PIC_HANDLER_ERR (Err_base_PIC    | 0x00000003)
#define PIC_BUSY_ERR    (Err_base_PIC    | 0x00000004)

/* INT C */
#define INTC_ERR        (Err_base_INTC   | 0x00000001)



#endif /* _REF3_PRPHR_H */

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -