AM62Ax MCU+ SDK  09.01.00
sdl_lbist_priv.h
Go to the documentation of this file.
1 /*
2  * Copyright (C) 2023 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 
41 #ifndef SDL_LBIST_PRIV_H_
42 #define SDL_LBIST_PRIV_H_
43 
44 #include <sdl/dpl/sdl_dpl.h>
45 
46 #if defined (IP_VERSION_LBIST_V0)
48 #endif
49 #ifdef __cplusplus
50 extern "C" {
51 #endif
52 
53 #define LBIST_NOT_DONE (0x0U)
54 #define LBIST_DONE (0x1U)
55 
56 typedef void (*LBIST_handlerPtr)(uint32_t coreIndex);
57 
58 typedef struct
59 {
63  uint32_t *pLBISTSig;
65  uint32_t expectedMISR;
67  uint32_t interruptNumber;
69  volatile uint32_t doneFlag;
75 
76 
78 
79 void SDL_LBIST_eventHandler(void *arg);
80 
81 
82 #ifdef __cplusplus
83 }
84 #endif
85 
86 #endif /* SDL_LBIST_PRIV_H_ */
87 
LBIST_handlerPtr
void(* LBIST_handlerPtr)(uint32_t coreIndex)
Definition: sdl_lbist_priv.h:56
SDL_lbistRegs
Definition: sdlr_lbist.h:52
SDL_lbistInstInfo::handler
LBIST_handlerPtr handler
Definition: sdl_lbist_priv.h:73
SDL_LBIST_getInstInfo
SDL_lbistInstInfo * SDL_LBIST_getInstInfo(uint32_t instance)
SDL_lbistInstInfo::pLBISTSig
uint32_t * pLBISTSig
Definition: sdl_lbist_priv.h:63
sdl_ip_lbist.h
SDL_lbistInstInfo
Definition: sdl_lbist_priv.h:59
SDL_LBIST_eventHandler
void SDL_LBIST_eventHandler(void *arg)
sdl_dpl.h
This file contains the SDL DPL API's.
SDL_lbistInstInfo::doneFlag
volatile uint32_t doneFlag
Definition: sdl_lbist_priv.h:69
SDL_lbistInstInfo::interruptNumber
uint32_t interruptNumber
Definition: sdl_lbist_priv.h:67
SDL_lbistInstInfo::LBISTConfig
SDL_LBIST_config_t LBISTConfig
Definition: sdl_lbist_priv.h:71
SDL_lbistInstInfo::pLBISTRegs
SDL_lbistRegs * pLBISTRegs
Definition: sdl_lbist_priv.h:61
SDL_lbistInstInfo::expectedMISR
uint32_t expectedMISR
Definition: sdl_lbist_priv.h:65
SDL_LBIST_config_t
This structure contains the different configuration used for LBIST Note that the LBIST configuration ...
Definition: sdl_ip_lbist.h:66