AM62L FreeRTOS SDK  11.00.00
scmi_base.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2025 Texas Instruments Incorporated
3  *
4  * Redistribution and use in source and binary forms, with or without
5  * modification, are permitted provided that the following conditions
6  * are met:
7  *
8  * Redistributions of source code must retain the above copyright
9  * notice, this list of conditions and the following disclaimer.
10  *
11  * Redistributions in binary form must reproduce the above copyright
12  * notice, this list of conditions and the following disclaimer in the
13  * documentation and/or other materials provided with the
14  * distribution.
15  *
16  * Neither the name of Texas Instruments Incorporated nor the names of
17  * its contributors may be used to endorse or promote products derived
18  * from this software without specific prior written permission.
19  *
20  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
21  * "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
22  * LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
23  * A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
24  * OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
25  * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
26  * LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
27  * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
28  * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
29  * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
30  * OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
31  */
32 
49 #ifndef SCMI_BASE_H
50 #define SCMI_BASE_H
51 
52 /* ========================================================================== */
53 /* Include Files */
54 /* ========================================================================== */
55 
56 #include <stdint.h>
58 
59 /* ========================================================================== */
60 /* Macros & Typedefs */
61 /* ========================================================================== */
62 
63 /* None */
64 
65 /* ========================================================================== */
66 /* Structure Declarations */
67 /* ========================================================================== */
68 
69 /* None */
70 
71 /* ========================================================================== */
72 /* Function Declarations */
73 /* ========================================================================== */
74 
85  SCMI_StandardProtocol protocolId,
86  uint32_t *version);
87 
96 int32_t SCMI_getBaseProtocolVersion(SCMI_Handle handle, uint32_t *version);
97 
108 int32_t SCMI_baseGetProtocolAttributes(SCMI_Handle handle, uint32_t *numAgents,
109  uint32_t *numProtocols);
110 
120 int32_t SCMI_baseGetMessageAttributes(SCMI_Handle handle, uint32_t messageId,
121  uint32_t *attributes);
122 
131 int32_t SCMI_baseDiscoverVendor(SCMI_Handle handle, uint8_t *vendor);
132 
141 int32_t SCMI_baseDiscoverSubVendor(SCMI_Handle handle, uint8_t *subVendor);
142 
152  uint32_t *implVersion);
153 
164  uint32_t *protocolCount,
165  uint8_t *protocols);
166 
167 
168 #endif /* SCMI_BASE_H */
169 
SCMI_baseDiscoverImplementationVersion
int32_t SCMI_baseDiscoverImplementationVersion(SCMI_Handle handle, uint32_t *implVersion)
API to get vendor implementation version.
SCMI_getBaseProtocolVersion
int32_t SCMI_getBaseProtocolVersion(SCMI_Handle handle, uint32_t *version)
API to get base protocol version.
SCMI_StandardProtocol
SCMI_StandardProtocol
Definition: scmi_protocol.h:120
SCMI_baseDiscoverVendor
int32_t SCMI_baseDiscoverVendor(SCMI_Handle handle, uint8_t *vendor)
API to get vendor name string.
SCMI_Handle
void * SCMI_Handle
A handle that is returned from a SCMI_open() call.
Definition: scp/scmi/v0/scmi.h:68
SCMI_baseGenericProtocolVersion
int32_t SCMI_baseGenericProtocolVersion(SCMI_Handle handle, SCMI_StandardProtocol protocolId, uint32_t *version)
API to get generic protocol version.
scmi.h
SCMI Driver API/interface file. This is SCMI top level include for applications.
SCMI_baseGetMessageAttributes
int32_t SCMI_baseGetMessageAttributes(SCMI_Handle handle, uint32_t messageId, uint32_t *attributes)
API to get message attributes for base protocol.
SCMI_baseDiscoverSubVendor
int32_t SCMI_baseDiscoverSubVendor(SCMI_Handle handle, uint8_t *subVendor)
API to get Sub-vendor name string.
SCMI_baseGetProtocolAttributes
int32_t SCMI_baseGetProtocolAttributes(SCMI_Handle handle, uint32_t *numAgents, uint32_t *numProtocols)
API to get protocol attributes for base protocol. This gives number of agents and number of protocols...
SCMI_baseDiscoverListProtocols
int32_t SCMI_baseDiscoverListProtocols(SCMI_Handle handle, uint32_t *protocolCount, uint8_t *protocols)
API to get supported protocols count and list by platform.