1 /***************************************************************************
2 * Copyright (c) 2024 Microsoft Corporation
3 *
4 * This program and the accompanying materials are made available under the
5 * terms of the MIT License which is available at
6 * https://opensource.org/licenses/MIT.
7 *
8 * SPDX-License-Identifier: MIT
9 **************************************************************************/
10
11
12 /**************************************************************************/
13 /**************************************************************************/
14 /** */
15 /** ThreadX Component */
16 /** */
17 /** Module */
18 /** */
19 /**************************************************************************/
20 /**************************************************************************/
21
22 #define TXM_MODULE
23 #include "txm_module.h"
24 #ifndef TXM_MODULE_APPLICATION_REQUEST_CALL_NOT_USED
25 /**************************************************************************/
26 /* */
27 /* FUNCTION RELEASE */
28 /* */
29 /* txm_module_application_request PORTABLE C */
30 /* 6.1.10 */
31 /* AUTHOR */
32 /* */
33 /* Scott Larson, Microsoft Corporation */
34 /* */
35 /* DESCRIPTION */
36 /* */
37 /* This function sends an application-specific request to the resident */
38 /* code. */
39 /* */
40 /* INPUT */
41 /* */
42 /* request Request ID (application defined) */
43 /* param_1 First parameter */
44 /* param_2 Second parameter */
45 /* param_3 Third parameter */
46 /* */
47 /* OUTPUT */
48 /* */
49 /* status Completion status */
50 /* */
51 /* CALLS */
52 /* */
53 /* _txm_module_kernel_call_dispatcher */
54 /* */
55 /* CALLED BY */
56 /* */
57 /* Module application code */
58 /* */
59 /* RELEASE HISTORY */
60 /* */
61 /* DATE NAME DESCRIPTION */
62 /* */
63 /* 09-30-2020 Scott Larson Initial Version 6.1 */
64 /* 01-31-2022 Scott Larson Modified comments and added */
65 /* CALL_NOT_USED option, */
66 /* resulting in version 6.1.10 */
67 /* */
68 /**************************************************************************/
txm_module_application_request(ULONG request,ALIGN_TYPE param_1,ALIGN_TYPE param_2,ALIGN_TYPE param_3)69 UINT txm_module_application_request(ULONG request, ALIGN_TYPE param_1, ALIGN_TYPE param_2, ALIGN_TYPE param_3)
70 {
71
72 UINT return_value;
73
74 /* Call module manager dispatcher. */
75 return_value = (UINT)(_txm_module_kernel_call_dispatcher)(TXM_APPLICATION_REQUEST_ID_BASE+request, param_1, param_2, param_3);
76
77 /* Return value to the caller. */
78 return(return_value);
79 }
80 #endif
81