OpenBIC
OpenSource Bridge-IC
plat_i2c_target.c File Reference
#include <zephyr.h>
#include <stdio.h>
#include <stdlib.h>
#include <logging/log.h>
#include "plat_i2c_target.h"
#include "plat_mctp.h"
#include "plat_class.h"
#include <drivers/flash.h>
Include dependency graph for plat_i2c_target.c:

Functions

 LOG_MODULE_REGISTER (plat_i2c_target)
 
void set_slot_handle (struct k_work *work)
 
void plat_set_slot_init (int slot_id)
 
 K_WORK_DELAYABLE_DEFINE (set_slot_work, set_slot_handle)
 

Variables

const bool I2C_TARGET_ENABLE_TABLE [MAX_TARGET_NUM]
 
const struct _i2c_target_config I2C_TARGET_CONFIG_TABLE [MAX_TARGET_NUM]
 

Function Documentation

◆ K_WORK_DELAYABLE_DEFINE()

K_WORK_DELAYABLE_DEFINE ( set_slot_work  ,
set_slot_handle   
)

◆ LOG_MODULE_REGISTER()

LOG_MODULE_REGISTER ( plat_i2c_target  )

◆ plat_set_slot_init()

void plat_set_slot_init ( int  slot_id)
Here is the call graph for this function:

◆ set_slot_handle()

void set_slot_handle ( struct k_work *  work)
Here is the call graph for this function:

Variable Documentation

◆ I2C_TARGET_CONFIG_TABLE

const struct _i2c_target_config I2C_TARGET_CONFIG_TABLE[MAX_TARGET_NUM]
Initial value:
= {
{ 0xFF, 0xA },
{ 0xFF, 0xA },
{ 0xFF, 0xA },
{ 0x40, 0xA },
{ 0xFF, 0xA },
{ 0x40, 0xA },
{ 0xFF, 0xA },
{ 0xFF, 0xA },
{ 0xFF, 0xA },
{ 0xFF, 0xA },
{ 0x42, 0xA, command_reply_data_handle, command_set_slot_handle },
{ 0xFF, 0xA },
}

◆ I2C_TARGET_ENABLE_TABLE

const bool I2C_TARGET_ENABLE_TABLE[MAX_TARGET_NUM]
Initial value:
= {
}
#define TARGET_DISABLE
Definition: plat_i2c_target.h:24
#define TARGET_ENABLE
Definition: plat_i2c_target.h:23