1 | /** @file
|
---|
2 | This header file declares functions consuming MIPI Sys-T submodule.
|
---|
3 |
|
---|
4 | Copyright (c) 2023, Intel Corporation. All rights reserved.<BR>
|
---|
5 |
|
---|
6 | SPDX-License-Identifier: BSD-2-Clause-Patent
|
---|
7 |
|
---|
8 | **/
|
---|
9 |
|
---|
10 | #ifndef MIPI_SYST_LIB_H_
|
---|
11 | #define MIPI_SYST_LIB_H_
|
---|
12 |
|
---|
13 | /**
|
---|
14 | Invoke initialization function in Mipi Sys-T module to initialize Mipi Sys-T handle.
|
---|
15 |
|
---|
16 | @param[in, out] MipiSystHandle A pointer to MIPI_SYST_HANDLE structure.
|
---|
17 |
|
---|
18 | @retval RETURN_SUCCESS MIPI_SYST_HANDLE instance was initialized.
|
---|
19 | @retval Other MIPI_SYST_HANDLE instance was not initialized.
|
---|
20 | **/
|
---|
21 | RETURN_STATUS
|
---|
22 | EFIAPI
|
---|
23 | InitMipiSystHandle (
|
---|
24 | IN OUT VOID *MipiSystHandle
|
---|
25 | );
|
---|
26 |
|
---|
27 | /**
|
---|
28 | Invoke write_debug_string function in Mipi Sys-T module.
|
---|
29 |
|
---|
30 | @param[in] MipiSystHandle A pointer to MIPI_SYST_HANDLE structure.
|
---|
31 | @param[in] Severity Severity type of input message.
|
---|
32 | @param[in] Len Length of data buffer.
|
---|
33 | @param[in] Str A pointer to data buffer.
|
---|
34 |
|
---|
35 | @retval RETURN_SUCCESS Data in buffer was processed.
|
---|
36 | @retval RETURN_ABORTED No data need to be written to Trace Hub.
|
---|
37 | @retval RETURN_INVALID_PARAMETER On entry, MipiSystHandle or Str is a NULL pointer.
|
---|
38 | **/
|
---|
39 | RETURN_STATUS
|
---|
40 | EFIAPI
|
---|
41 | MipiSystWriteDebug (
|
---|
42 | IN VOID *MipiSystHandle,
|
---|
43 | IN UINT32 Severity,
|
---|
44 | IN UINT16 Len,
|
---|
45 | IN CONST CHAR8 *Str
|
---|
46 | );
|
---|
47 |
|
---|
48 | /**
|
---|
49 | Invoke catalog_write_message function in Mipi Sys-T module.
|
---|
50 |
|
---|
51 | @param[in] MipiSystHandle A pointer to MIPI_SYST_HANDLE structure.
|
---|
52 | @param[in] Severity Severity type of input message.
|
---|
53 | @param[in] CatId Catalog Id.
|
---|
54 |
|
---|
55 | @retval RETURN_SUCCESS Data in buffer was processed.
|
---|
56 | @retval RETURN_INVALID_PARAMETER On entry, MipiSystHandle is a NULL pointer.
|
---|
57 | **/
|
---|
58 | RETURN_STATUS
|
---|
59 | EFIAPI
|
---|
60 | MipiSystWriteCatalog (
|
---|
61 | IN VOID *MipiSystHandle,
|
---|
62 | IN UINT32 Severity,
|
---|
63 | IN UINT64 CatId
|
---|
64 | );
|
---|
65 |
|
---|
66 | #endif // MIPI_SYST_LIB_H_
|
---|