arch/ppc-sam440: No more need for the Parthenope hack
[AROS.git] / rom / dos / sendpkt.c
blob88c258d809c53f840a517d9a9ea76405b1294ee4
1 /*
2 Copyright © 1995-2011, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 #include <aros/debug.h>
10 #include <dos/dosextens.h>
11 #include <dos/notify.h>
12 #include <proto/exec.h>
13 #include <exec/initializers.h>
14 #include <proto/utility.h>
16 #include <string.h>
18 #include "dos_intern.h"
20 /*****************************************************************************
22 NAME */
23 #include <proto/dos.h>
25 AROS_LH3I(void, SendPkt,
27 /* SYNOPSIS */
28 AROS_LHA(struct DosPacket *, dp, D1),
29 AROS_LHA(struct MsgPort *, port, D2),
30 AROS_LHA(struct MsgPort *, replyport, D3),
32 /* LOCATION */
33 struct DosLibrary *, DOSBase, 41, Dos)
35 /* FUNCTION
37 Send a packet to a handler without waiting for the result. The packet will
38 be returned to 'replyport'.
40 INPUTS
42 packet -- the (initialized) packet to send
43 port -- the MsgPort to send the packet to
44 replyport -- the MsgPort to which the packet will be replied
46 RESULT
48 This function is callable from a task.
50 NOTES
52 EXAMPLE
54 BUGS
56 SEE ALSO
58 DoPkt(), WaitPkt(), AbortPkt()
60 INTERNALS
62 *****************************************************************************/
64 AROS_LIBFUNC_INIT
66 D(bug("[DOS] SendPkt(0x%p, 0x%p, 0x%p)\n", dp, port, replyport));
68 internal_SendPkt(dp, port, replyport);
70 AROS_LIBFUNC_EXIT
71 } /* SendPkt */
73 /* Also needed by Dos/DoPkt() */
74 void internal_SendPkt(struct DosPacket *dp, struct MsgPort *port, struct MsgPort *replyport)
76 dp->dp_Port = replyport;
77 dp->dp_Link->mn_ReplyPort = replyport;
79 PutMsg(port, dp->dp_Link);