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

📄 os_intr.h

📁 Usb Host/Periphel Control TD1120 codes
💻 H
字号:
/*------------------------------------------------------------------------------
$File: //hodad/usblink/3.4/source/os/linux_2_4_18/os_intr.h $
$DateTime: 2003/11/14 17:19:59 $
$Revision: #2 $
Purpose: This file holds all prototypes and information for to operating
         system specific interrupt functionality.
------------------------------------------------------------------------------*/
/*------------------------------------------------------------------------------
CONFIDENTIAL AND PROPRIETARY INFORMATION OF SOFTCONNEX TECHNOLOGIES, INC.

THIS NOTICE IS NOT TO BE DELETED, MODIFIED, MOVED OR CHANGED IN ANY WAY.

Copyright (c) 1999 - 2003 by SoftConnex Technologies, Inc.

This software is protected by copyright laws and international copyright
treaties, as well as other intellectual property laws and treaties.  This
software is a CONFIDENTIAL, unpublished work of authorship, and with portions
constituting TRADE SECRETS of SoftConnex Technologies, Inc., a Delaware USA
corporation.  Any unauthorized use, disclosure, and/or reproduction of this
software, or any part of this software; or distribution of this software in any
form or by any means; or storage of this software in any database or retrieval
system, without the express written consent of, and license from, SoftConnex
Technologies, Inc. is strictly prohibited.  This software is protected under the
copyright and/or trade secret laws in other countries in addition to USA.  All
Rights Reserved.  Failure to abide by the use, disclosure and/or reproduction
restrictions may result in civil and /or criminal penalties, and will be
prosecuted to the maximum extent of the law.
------------------------------------------------------------------------------*/
#ifndef _SOFTCONNEX_OS_INTR_H_
#define _SOFTCONNEX_OS_INTR_H_


/*******************************************************************************
 Public Definitions
*******************************************************************************/

#define SCC_MASK_ALL_INTERRUPTS  0xFFFFFFFF
#define SCC_USB_INTERRUPT_ID     0xFEADFACE


/*******************************************************************************
 Public Functions
*******************************************************************************/

/* This macro is used in an interrupt service routine for any work that needs
   to be done on first entry into the ISR. */
#define OS_ENTER_ISR()

/* This macro is used to do work that is needed before we leave and ISR. */
#define OS_EXIT_ISR()

#define OS_INTERRUPT_HANDLER_PROTOTYPE(handlerName)  void handlerName(int val)
typedef void (*InterruptHandler)(int val);

SctStatus OS_HookPCIInterruptVector(U32 irq, InterruptHandler vectorHandler);
SctStatus OS_HookNonPCIInterruptVector(U32 irq, InterruptHandler vectorHandler);

#define OS_UnhookNonPCIInterruptVector(irq)  (SCS_SUCCESS)

SctStatus OS_UnhookPCIInterruptVector(U32 irq);
#define OS_AckInterrupt(irq)

void OS_DisableInterrupts(U32 irq);
void OS_EnableInterrupts(U32 irq);


#endif  /* _SOFTCONNEX_OS_INTR_H_ */

⌨️ 快捷键说明

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