;*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.;
;*****************************************************************************/
;/*****************************************************************************
;*
;* SOURCE FILE NAME = DEVHLP.ASM
;*
;* DESCRIPTIVE NAME =
;*
;*
;* VERSION
;*
;* DATE
;*
;* DESCRIPTION
;*
;* FUNCTIONS
;*
;*
;* NOTES        NONE
;*
;* STRUCTURES   NONE
;*
;* EXTERNAL REFERENCES
;*
;*              NONE
;*
;* EXTERNAL FUNCTIONS
;*
;*              NONE
;*
;* CHANGE ACTIVITY =
;*   DATE      FLAG        APAR   CHANGE DESCRIPTION
;*   --------  ----------  -----  --------------------------------------
;*   mm/dd/yy  @Vr.mpppxx  xxxxx  xxxxxxx
;*****************************************************************************/

.286
.287

_DATA   SEGMENT WORD PUBLIC 'DATA'
_DATA   ENDS

_BSS    SEGMENT WORD PUBLIC 'BSS'
_BSS    ENDS

CONST   SEGMENT WORD PUBLIC 'CONST'
CONST   ENDS

_TEXT   SEGMENT WORD PUBLIC 'CODE'
_TEXT   ENDS

DGROUP  GROUP   _DATA, CONST, _BSS
CGRP    GROUP   _TEXT


_DATA   SEGMENT
PUBLIC Device_help
Device_help DW 2 DUP (0)
_DATA   ENDS


_TEXT   SEGMENT WORD PUBLIC 'CODE'
        ASSUME cs:CGRP, ds:DGROUP, es:NOTHING, ss:NOTHING

;/***************************************************************************
;*
;* FUNCTION NAME = _devhlp_init
;*
;* DESCRIPTION   = void devhlp_init(ULONG)
;*                 This function stores device helper services entry point
;*
;* INPUT         =
;*
;* OUTPUT        =
;*
;* RETURN-NORMAL =
;*
;* RETURN-ERROR  =
;*
;**************************************************************************/

PUBLIC _devhlp_init
_devhlp_init proc near

DEVICE_HELP_LOW  equ <[bp+4]>
DEVICE_HELP_HIGH equ <[bp+6]>

        push    bp                     ; point to parameters - save registers
        mov     bp,sp

                                       ; store the entry point
        mov     ax,word ptr DEVICE_HELP_LOW
        mov     dx,word ptr DEVICE_HELP_HIGH
        mov     word ptr Device_help,ax
        mov     word ptr Device_help+2,dx

        pop     bp                     ; restore registers

        ret                            ; done
_devhlp_init ENDP

_TEXT ENDS

        END
