home *** CD-ROM | disk | FTP | other *** search
- ;*DDK*************************************************************************/
- ;
- ; COPYRIGHT Copyright (C) 1995 IBM Corporation
- ;
- ; The following IBM OS/2 WARP source code is provided to you solely for
- ; the purpose of assisting you in your development of OS/2 WARP device
- ; drivers. You may use this code in accordance with the IBM License
- ; Agreement provided in the IBM Device Driver Source Kit for OS/2. This
- ; Copyright statement may not be removed.;
- ;*****************************************************************************/
- ; SCCSID = %w% %e%
- ;**************************************************************************
- ;*
- ;* SOURCE FILE NAME = DHCALL6.ASM
- ;*
- ;* DESCRIPTIVE NAME = C callable DevHelp Interface
- ;* Interrupt/Thread Management DevHelp Calls
- ;*
- ;*
- ;* VERSION = V2.0
- ;*
- ;* DATE
- ;*
- ;* DESCRIPTION :
- ;*
- ;* Purpose:
- ;*
- ;*
- ;*
- ;*
- ;* FUNCTIONS :
- ;*
- ;*
- ;*
- ;*
- ;*
- ;*
- ;*
- ;* NOTES
- ;*
- ;*
- ;* STRUCTURES
- ;*
- ;* EXTERNAL REFERENCES
- ;*
- ;*
- ;*
- ;* EXTERNAL FUNCTIONS
- ;*
- ;* CHANGE ACTIVITY =
- ;* DATE FLAG APAR CHANGE DESCRIPTION
- ;* -------- ---------- ----- --------------------------------------
- ;* 10/22/93 @V74979 74979 Change return type to USHORT
- ;* 2/ 5/94 78794 File broken apart.
- ;*
- ;****************************************************************************
-
- .xlist
- include dhmacs.inc
- .list
-
- ;*
- ;* Interrupt Management
- ;*
-
- Code segment dword public 'CODE'
- assume CS:Code,DS:_DATA
-
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_SetIRQ( NPFN IRQHandler, USHORT IRQLevel,
- ;* USHORT SharedFlag );
- ;*
- ;*
-
- DHDef SetIRQ
- DHArgs NPFN, IRQHandler
- DHArgs USHORT, IRQLevel
- DHArgs USHORT, SharedFlag
-
- mov ax, Stk.IRQHandler
- mov bx, Stk.IRQLevel
- mov dh, Stk.SharedFlag
-
- DHCall
-
- DHRet1
-
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_UnSetIRQ( USHORT IRQLevel );
- ;*
- ;*
-
- DHDef UnSetIRQ
- DHArgs USHORT, IRQLevel
-
- mov bx, Stk.IRQLevel
-
- DHCall
-
- DHRet1
-
-
- ;*
- ;*
- ;* USHORT APIENTRY DevHlp_EOI( USHORT IRQLevel );
- ;*
- ;*
-
- DHDef EOI
- DHArgs USHORT, IRQLevel
-
- mov al, Stk.IRQLevel
-
- DHCall
-
- DHRet1
-
-
-
- Code Ends
- End
-