oalintr.h

来自「WinCE 3.0 BSP, 包含Inter SA1110, Intel_815」· C头文件 代码 · 共 61 行

H
61
字号
// Copyright (c) 1999-2000 Microsoft Corporation.  All rights reserved.
/*
 *    Module Name:  
 *       oalintr.h
 *
 *    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.
 *
 */

// Note : The CEPC is a bit unusual since we allow various
// cards to be a different addresses without actually defining
// a new platform.  So, for those drivers there is no need
// to define an actual SYSINTR value.  Just use MapIrq2SysIntr
// to get a SYSINTR ID that matches the physical interrupt.
// The only exception is keyboard/mouse which is always at 
// IRQ 1/12.
#define SYSINTR_KEYBOARD    (SYSINTR_FIRMWARE+1)
#define SYSINTR_TOUCH       (SYSINTR_FIRMWARE+12)

// And Audio hasn't been modified yet, but should be.
#define SYSINTR_AUDIO       (SYSINTR_FIRMWARE+4)

//
// CEPC device drivers should get their IRQ number from the registry and use
// MapIrq2SysIntr to get the appropriate SYSINTR_* number to use.
_inline
DWORD
MapIrq2SysIntr(DWORD _Irq)
{
    if( _Irq<=15 )
        return ( SYSINTR_FIRMWARE + _Irq );
    else
        return (0xffffffff);
}


// Here are the names of the values stored in the registry
#define PC_REG_IRQ_VAL_NAME TEXT("IRQ") 
#define PC_REG_IRQ_VAL_LEN  sizeof( DWORD )

#define PC_REG_IOBASE_VAL_NAME TEXT("IoBase") 
#define PC_REG_IOBASE_VAL_LEN  sizeof( DWORD )
#define PC_REG_IOLEN_VAL_NAME TEXT("IoLen") 
#define PC_REG_IOLEN_VAL_LEN  sizeof( DWORD )

#define PC_REG_CONFIGBASE_VAL_NAME TEXT("ConfigBase") 
#define PC_REG_CONFIGBASE_VAL_LEN  sizeof( DWORD )
#define PC_REG_CONFIGLEN_VAL_NAME TEXT("ConfigLen") 
#define PC_REG_CONFIGLEN_VAL_LEN  sizeof( DWORD )

#define PC_REG_DMA_VAL_NAME TEXT("DMA") 
#define PC_REG_DMA_VAL_LEN  sizeof( DWORD )

#define PC_REG_DEVINDEX_VAL_NAME TEXT("DeviceArrayIndex") 
#define PC_REG_DEVINDEX_VAL_LEN  sizeof( DWORD )


⌨️ 快捷键说明

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