Files
luban-lite/bsp/artinchip/include/drv_bare/gpai.h

34 lines
739 B
C
Raw Normal View History

2024-04-03 16:40:57 +08:00
/*
2024-10-30 16:50:31 +08:00
* Copyright (c) 2024, ArtInChip Technology Co., Ltd
2024-04-03 16:40:57 +08:00
*
* SPDX-License-Identifier: Apache-2.0
*
2024-10-30 16:50:31 +08:00
* Authors: Siyao Li <siyao.li@artinchip.com>
2024-04-03 16:40:57 +08:00
*/
2025-01-08 19:12:06 +08:00
#ifndef __BL_GPAI_H_
#define __BL_GPAI_H_
#ifdef __cplusplus
extern "C" {
2024-04-03 16:40:57 +08:00
#endif
2025-01-08 19:12:06 +08:00
#include "hal_gpai.h"
void drv_gpai_init(void);
int drv_gpai_chan_init(int ch);
int drv_gpai_get_data_mode(int ch);
int drv_gpai_get_mode(int ch);
int drv_gpai_irq_callback(struct aic_gpai_irq_info *irq_info);
int drv_gpai_enabled(int ch, bool enabled);
int drv_gpai_get_ch_info(struct aic_gpai_ch_info *chan_info);
int drv_gpai_config_dma(struct aic_dma_transfer_info *dma_info);
int drv_gpai_get_dma_data(int ch);
int drv_gpai_stop_dma(int ch);
#ifdef __cplusplus
}
2024-04-03 16:40:57 +08:00
#endif
2025-01-08 19:12:06 +08:00
#endif /* __BL_GPAI_H_ */