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

📄 oalintr.h

📁 ARM9基于WINDOWSCE的BSP源代码
💻 H
字号:

/*
*   The content of this file or document is CONFIDENTIAL and PROPRIETARY
*   to Jade Technologies Co., Ltd.  It is subjected to the terms of a
*   License Agreement between Licensee and Jade Technologies Co., Ltd.
*   restricting among other things, the use, reproduction, distribution
*   and transfer.  Each of the embodiments, including this information 
*   and any derivative work shall retain this copyright notice.
* 
*   Copyright (c) 2004 - 2005 Jade Technologies Co., Ltd. 
*   All rights reserved.
 * ----------------------------------------------------------------
 * File:     oalintr.h,v
 * Revision: 10
 * ----------------------------------------------------------------
 * $
 *
 *    Abstract:
 *       System Interrupt definitions for OAL layer.  SYSINTR_FIRMWARE is
 *       defined in nkintr.h.  The OAL can use any values in the range
 *       SYSINTR_FIRMWARE thru SYSINTR_MAXIMUM.
 *
 */

#ifndef __oalintr_h
#define __oalintr_h

#include <nkintr.h>

#ifdef __cplusplus
extern "C"{
#endif

    #define LOGINTR_UNDEFINED       (-1)


#define LOGINTR_WDOG     			1
#define LOGINTR_SOFTINT             		2
#define LOGINTR_CPUINT0             		3
#define LOGINTR_CPUINT1             		4
#define LOGINTR_TIMER0              		5
#define LOGINTR_TIMER1              		6
#define LOGINTR_IIC                 		7
#define LOGINTR_CF                  		8
#define LOGINTR_RTC                 		9
#define LOGINTR_USB                 		10
#define LOGINTR_UART0				11
#define LOGINTR_UART1				12
#define LOGINTR_UART2				13
#define LOGINTR_UART3				14
#define LOGINTR_SD0					15
#define LOGINTR_FIRI	            		16
#define LOGINTR_SCI                 		17
#define LOGINTR_CLCD1               		18
#define LOGINTR_SD1                 		19
#define LOGINTR_DMA                 		20
#define LOGINTR_PWRFAIL             		21
#define LOGINTR_SSP0                		22
#define LOGINTR_IIS                 		23
#define LOGINTR_KBD                 		24
#define LOGINTR_AUDIO               		25
#define LOGINTR_SSP1                		26
#define LOGINTR_CLCD0               		27
#define LOGINTR_DMA23              		28
#define LOGINTR_VIA                 		29
#define LOGINTR_MP4D                		30
#define LOGINTR_MP4E                		31
#define LOGINTR_EXTINT0				32
#define LOGINTR_EXTINT1             		33

#define MAXLOGINTR					LOGINTR_EXTINT1

#define LOGINTR_EDBG 		LOGINTR_EXTINT1
                                                           
                                                           
/*                                                         
*************************************************************
**
** LOGINTR_MAX is used to dimension an array that maps 
** system to logical interrupt numbers.  The array HAS to be one 
** larger than the LOGINTR_MAX value otherwise an out of 
** bounds array access occurs when the using the highest value 
** defined above.  
*************************************************************
*/
#define LOGINTR_MAX            	(LOGINTR_EXTINT1)
#define LOGINTR_MIN            	(0)


/*
***************************************************************
**
** SYSINTR values
**
** System Interrupt definitions for OAL layer.
** SYSINTR_FIRMWARE is defined in nkintr.h and has a value of 16. 
** The OAL can use any values in the range from SYSINTR_FIRMWARE
** through to SYSINTR_MAXIMUM () i.e. from 16 to 39.
** 
***************************************************************
*/

/* Static hardcoded mappings */                         
#define SYSINTR_AUDIO           	(SYSINTR_FIRMWARE)    
#define SYSINTR_SERIAL1         	(SYSINTR_FIRMWARE+1)  
#define SYSINTR_EDBG         		(SYSINTR_FIRMWARE+2) 
#define SYSINTR_TIMER0			(SYSINTR_FIRMWARE+3) 
#define SYSINTR_TIMER1			(SYSINTR_FIRMWARE+4) 
#define SYSINTR_TIMER2          	(SYSINTR_FIRMWARE+5)
#define SYSINTR_MPGE            		(SYSINTR_FIRMWARE+6)  
#define SYSINTR_MPGD            		(SYSINTR_FIRMWARE+7) 
#define SYSINTR_SSP0             		(SYSINTR_FIRMWARE+8)  
#define SYSINTR_TOUCH	        	(SYSINTR_FIRMWARE+9)
#define SYSINTR_CF         			(SYSINTR_FIRMWARE+10)
#define SYSINTR_SD0	        		(SYSINTR_FIRMWARE+11)
#define SYSINTR_SCI	        		(SYSINTR_FIRMWARE+12)
#define SYSINTR_USB          		(SYSINTR_FIRMWARE+13)
#define SYSINTR_OHCI			(SYSINTR_FIRMWARE+14)
#define SYSINTR_VIA         		(SYSINTR_FIRMWARE+15)
#define SYSINTR_KBD				(SYSINTR_FIRMWARE+16)
#define SYSINTR_DMA2				(SYSINTR_FIRMWARE+17)


/* Start of SYSINTR mappings for dynamic use (by RequestSysIntr()) */
#define SYSINTR_DYNAMIC         	(SYSINTR_FIRMWARE+19)


                                                        
// Function prototypes
DWORD
OEMTranslateIrq(
    DWORD Irq 
    );

DWORD
OEMRequestSysIntr(
    DWORD Irq 
    );
        
DWORD
OEMReleaseSysIntr(
    DWORD SysIntr
    );
        
DWORD
OEMTranslateSysIntr(
    DWORD SysIntr
    );
    
BOOL
OEMGetInterrupt(
    PDEVICE_LOCATION pDevLoc,
    PDWORD pIrq
    );

#ifdef __cplusplus
}
#endif 

#endif /* ndef __oalintr_h */

/* EOF oalintr.h */

⌨️ 快捷键说明

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