;*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 = DHCALL3A.ASM
;*
;* DESCRIPTIVE NAME = C callable DevHelp Interface
;*		      Request Packet Management DevHlp 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 created
;*
;*
;****************************************************************************

	.xlist
	include dhmacs.inc
	.list

;*
;*  Request Packet Management
;*

Code	segment dword public 'CODE'
	assume	CS:Code,DS:_DATA


;*
;*
;* USHORT APIENTRY DevHlp_PullParticular( NPBYTE Queue, PBYTE ReqPktAddr );
;*
;*

	DHDef	PullParticular
	DHArgs	NPBYTE,  Queue
	DHArgs	PBYTE,	 ReqPktAddr

	mov	si, Stk.Queue
	les	bx, Stk.ReqPktAddr

	DHCall

	DHRet1


;*
;*
;* USHORT APIENTRY DevHlp_PullReqPacket( NPBYTE Queue,	PBYTE *ReqPktAddr );
;*
;*

	DHDef	PullRequest
	DHArgs	NPBYTE,  Queue
	DHArgs	PBYTE,	 ReqPktAddr

	mov	si, Stk.Queue

	DHCall

	push	es
	push	bx
	les	bx, Stk.ReqPktAddr
	pop	es:[bx][0]
	pop	es:[bx][2]

	DHRet1


;*
;*
;* USHORT APIENTRY DevHlp_PushReqPacket( NPBYTE Queue,	PBYTE ReqPktAddr );
;*
;*

	DHDef	PushRequest
	DHArgs	NPBYTE,  Queue
	DHArgs	PBYTE,	 ReqPktAddr

	mov	si, Stk.Queue
	les	bx, Stk.ReqPktAddr

	DHCall

	DHRet1

;*
;*
;* USHORT APIENTRY DevHlp_SortRequest( NPBYTE Queue,  PBYTE ReqPktAddr );
;*
;*

	DHDef	SortRequest
	DHArgs	NPBYTE,  Queue
	DHArgs	PBYTE,	 ReqPktAddr

	mov	si, Stk.Queue
	les	bx, Stk.ReqPktAddr

	DHCall

	DHRet1




Code	Ends
	End
