Skip to content

Commit

Permalink
platform: remove platform/drivers/idc.h for Intel platforms
Browse files Browse the repository at this point in the history
For Zephyr builds, only definition needed from platform/drivers/idc.h
was prototype for idc_send_msg(). There's no need to keep the platform
layer just for this, so add the definition to rtos/idc.h for Zephyr
builds, and remove the platform/drivers/idc.h for all Intel platforms.

Signed-off-by: Kai Vehmanen <[email protected]>
  • Loading branch information
kv2019i committed Apr 15, 2024
1 parent 2cfc85e commit 2f5045e
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 124 deletions.
25 changes: 0 additions & 25 deletions src/platform/intel/ace/include/ace/drivers/idc.h

This file was deleted.

39 changes: 0 additions & 39 deletions src/platform/intel/cavs/include/cavs/drivers/idc.h

This file was deleted.

19 changes: 0 additions & 19 deletions src/platform/lunarlake/include/platform/drivers/idc.h

This file was deleted.

19 changes: 0 additions & 19 deletions src/platform/meteorlake/include/platform/drivers/idc.h

This file was deleted.

21 changes: 0 additions & 21 deletions src/platform/tigerlake/include/platform/drivers/idc.h

This file was deleted.

9 changes: 8 additions & 1 deletion zephyr/include/rtos/idc.h
Original file line number Diff line number Diff line change
Expand Up @@ -14,13 +14,16 @@
#ifndef __ZEPHYR_RTOS_IDC_H__
#define __ZEPHYR_RTOS_IDC_H__

#include <platform/drivers/idc.h>
#include <rtos/task.h>
#include <sof/trace/trace.h>
#include <user/trace.h>
#include <stdint.h>
#include <rtos/cache.h>

#if defined(CONFIG_LIBRARY) || defined(CONFIG_ZEPHYR_POSIX)
#include <platform/drivers/idc.h>
#endif

/** \brief IDC send blocking flag. */
#define IDC_BLOCKING 0

Expand Down Expand Up @@ -199,8 +202,12 @@ int idc_wait_in_blocking_mode(uint32_t target_core, bool (*cond)(int));

int idc_msg_status_get(uint32_t core);

int idc_init(void);

void idc_init_thread(void);

int idc_send_msg(struct idc_msg *msg, uint32_t mode);

struct idc **idc_get(void);

#endif /* __ZEPHYR_RTOS_IDC_H__ */

0 comments on commit 2f5045e

Please sign in to comment.