#ifndef __IVPU_HW_H__
#define __IVPU_HW_H__
#include <linux/kfifo.h>
#include "ivpu_drv.h"
#include "ivpu_hw_btrs.h"
#include "ivpu_hw_ip.h"
#define IVPU_HW_IRQ_FIFO_LENGTH …
#define IVPU_HW_IRQ_SRC_IPC …
#define IVPU_HW_IRQ_SRC_MMU_EVTQ …
#define IVPU_HW_IRQ_SRC_DCT …
struct ivpu_addr_range { … };
struct ivpu_hw_info { … };
int ivpu_hw_init(struct ivpu_device *vdev);
int ivpu_hw_power_up(struct ivpu_device *vdev);
int ivpu_hw_power_down(struct ivpu_device *vdev);
int ivpu_hw_reset(struct ivpu_device *vdev);
int ivpu_hw_boot_fw(struct ivpu_device *vdev);
void ivpu_hw_profiling_freq_drive(struct ivpu_device *vdev, bool enable);
void ivpu_irq_handlers_init(struct ivpu_device *vdev);
void ivpu_hw_irq_enable(struct ivpu_device *vdev);
void ivpu_hw_irq_disable(struct ivpu_device *vdev);
irqreturn_t ivpu_hw_irq_handler(int irq, void *ptr);
static inline u32 ivpu_hw_btrs_irq_handler(struct ivpu_device *vdev, int irq)
{ … }
static inline u32 ivpu_hw_ip_irq_handler(struct ivpu_device *vdev, int irq)
{ … }
static inline void ivpu_hw_range_init(struct ivpu_addr_range *range, u64 start, u64 size)
{ … }
static inline u64 ivpu_hw_range_size(const struct ivpu_addr_range *range)
{ … }
static inline u32 ivpu_hw_ratio_to_freq(struct ivpu_device *vdev, u32 ratio)
{ … }
static inline void ivpu_hw_irq_clear(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_pll_freq_get(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_profiling_freq_get(struct ivpu_device *vdev)
{ … }
static inline void ivpu_hw_diagnose_failure(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_telemetry_offset_get(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_telemetry_size_get(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_telemetry_enable_get(struct ivpu_device *vdev)
{ … }
static inline bool ivpu_hw_is_idle(struct ivpu_device *vdev)
{ … }
static inline int ivpu_hw_wait_for_idle(struct ivpu_device *vdev)
{ … }
static inline void ivpu_hw_ipc_tx_set(struct ivpu_device *vdev, u32 vpu_addr)
{ … }
static inline void ivpu_hw_db_set(struct ivpu_device *vdev, u32 db_id)
{ … }
static inline u32 ivpu_hw_ipc_rx_addr_get(struct ivpu_device *vdev)
{ … }
static inline u32 ivpu_hw_ipc_rx_count_get(struct ivpu_device *vdev)
{ … }
#endif