;/*****************************************************************************
;*
;* SOURCE FILE NAME = DEVHLP.ASM
;*
;* DESCRIPTIVE NAME =
;*
;* COPYRIGHT    COPYRIGHT IBM CORPORATION, 1991, 1992 - PATENT PENDING
;*              LICENSED MATERIAL - PROGRAM PROPERTY OF IBM
;*              REFER TO COPYRIGHT INSTRUCTION FORM#G120-2083
;*              RESTRICTED MATERIALS OF IBM
;*              IBM CONFIDENTIAL
;*
;* 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
