Software Library API naibrd 2.24.0
See all documentation at naii.docs.com
naibrd_post.c File Reference

Functions

static nai_status_t naibrd_POST_SendFRAMCommand (int32_t cardIndex, uint32_t cmd, uint32_t param1, uint32_t param2, uint32_t param3, uint32_t *p_outresponseCode)
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_GetHostCurrentLogBufferIndex (int32_t cardIndex, int32_t *p_outbufIndex)
 Retrieves the index for the buffer holding current POST Log (FRAM) results for the Host processor (T2080).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_GetHostResult (int32_t cardIndex, int32_t bufIndex, naibrd_post_mb_test_t testType, uint32_t *p_outresult)
 Retrieves the 32-bit value associated with the POST results for the Host processor (T2080) test type.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_GetCurrentLogBufferIndex (int32_t cardIndex, int32_t *p_outbufIndex, uint32_t *p_outresponseCode)
 Retrieves the index for the buffer holding current POST Log (FRAM) results for the platform processor.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_CopyPlatformResultToScratchpad (int32_t cardIndex, int32_t bufIndex, uint32_t *p_outresponseCode)
 Copies all (50) 32-bit registers of Platform POST results for the Buffer Index specified to the Scratchpad Registers so that the POST results can be retrieved from the Memory Register Read API. After calling this function, make a separate call to naibrd_POST_GetPlatformResultFromScratchpad to read the result from the Scratchpad register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_GetPlatformResultFromScratchpad (int32_t cardIndex, naibrd_post_mb_test_t testType, uint32_t *p_outresult)
 This function is used in conjunction with the naibrd_POST_CopyPlatformResultToScratchpad() API which copies the POST data to Scratchpad registers. This routine will retrieve the test results from the Scratchpad registers.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_CopyModuleResultToScratchpad (int32_t cardIndex, int32_t module, int32_t bufIndex, uint32_t *p_outresponseCode)
 Copies the (24) 32-bit registers of Module POST results for the Buffer Index specified to the Scratchpad Registers so that the POST results can be retrieved from the Memory Register Read API. After calling this function, make a separate call to naibrd_POST_GetModuleResultFromScratchpad to read the result from the Scratchpad register.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_GetModuleResultFromScratchpad (int32_t cardIndex, naibrd_post_module_test_t testType, uint32_t *p_outresult)
 This function is used in conjunction with the naibrd_POST_CopyModuleResultToScratchpad() API which copies the module POST data to Scratchpad registers. This routine will retrieve the test results from the Scratchpad registers.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_ClearPlatformResult (int32_t cardIndex, int32_t bufIndex, uint32_t *p_outresponseCode)
 Clears all (50) 32-bit registers of Platform POST results for the Buffer Index specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_ClearModuleResult (int32_t cardIndex, int32_t module, int32_t bufIndex, uint32_t *p_outresponseCode)
 Clears all (24) 32-bit registers of Module POST results for the Buffer Index and module specified.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_POST_ParseResult (uint32_t bitResult, uint8_t *p_outconfig, uint8_t *p_outstatus, uint8_t *p_outsubtest, uint8_t *p_outsubteststatus)
 Parses the 32-bit test result to the four components: Config, Status, SubTest, and SubTest Status.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_Log_CopyDataToScratchpad (int32_t cardIndex, uint32_t offset, uint32_t reqCount, uint32_t *p_outresponseCode)
 Copies the data from the Logging (FRAM) device that is connected to the platform processor to the Scratchpad Register area so that it can be accessed via the Native Bus (PCI/cPCI/PCIe, VME).
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_Log_ClearData (int32_t cardIndex, uint32_t offset, uint32_t reqCount, uint32_t *p_outresponseCode)
 Clears the data in the Log (FRAM) device that is connected to the platform processor.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_Log_ClearAllData (int32_t cardIndex, uint32_t *p_outresponseCode)
 Clears all the data in the Log (FRAM) device that is connected to the platform processor.
 
NAIBRDFUNC nai_status_t NAIAPI naibrd_Log_GetLastWDTExpiredStatus (int32_t cardIndex, bool_t *p_outwdtLastStatusExpired)
 Retrieve information from the platform processor if host watchdog timer has expired since it was last enabled. Note: this value gets cleared in the platform processor's FRAM when the WDT is next enabled.
 

Variables

static const uint32_t naibrd_post_mb_test_type_offset [NAIBRD_POST_MB_TEST_COUNT]
 
static const uint32_t naibrd_post_module_test_type_offset [NAIBRD_POST_MOD_TEST_COUNT]
 

Function Documentation

◆ naibrd_POST_SendFRAMCommand()

static nai_status_t naibrd_POST_SendFRAMCommand ( int32_t cardIndex,
uint32_t cmd,
uint32_t param1,
uint32_t param2,
uint32_t param3,
uint32_t * p_outresponseCode )
static

Variable Documentation

◆ naibrd_post_mb_test_type_offset

const uint32_t naibrd_post_mb_test_type_offset[NAIBRD_POST_MB_TEST_COUNT]
static
Initial value:
=
{
0x00000008u,
0x0000000Cu,
0x00000010u,
0x00000014u,
0x00000018u,
0x0000001Cu,
0x00000020u,
0x00000024u,
0x00000028u,
0x0000002Cu,
0x00000030u,
0x00000034u,
0x00000038u,
0x0000003Cu,
0x00000040u,
0x00000074u
}

◆ naibrd_post_module_test_type_offset

const uint32_t naibrd_post_module_test_type_offset[NAIBRD_POST_MOD_TEST_COUNT]
static
Initial value:
=
{
0x00000008u,
0x0000000Cu,
0x00000010u,
0x00000014u,
0x00000018u,
0x0000001Cu,
0x00000020u,
0x00000024u,
0x00000028u,
0x0000003Cu
}