12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061 |
- #ifndef __ANC_INNER_H__
- #define __ANC_INNER_H__
- #include <kernel.h>
- #include <stdint.h>
- #include <soc.h>
- #include "drivers/anc.h"
- #include <acts_ringbuf.h>
- #ifdef __cplusplus
- extern "C" {
- #endif
- #define ANC_COMMAND_FRAME_SIZE 0x1A0
- struct anc_acts_data {
-
- int pm_status;
-
- struct k_sem sem;
- struct k_mutex mutex;
-
- struct anc_imageinfo images;
-
- struct anc_bootargs bootargs;
- };
- struct anc_acts_config {
- int reserve;
- };
- struct anc_acts_command{
- uint32_t id;
- uint32_t data_size;
- };
- typedef struct ack_buf{
- uint32_t cmd;
- }ack_buf_t;
- int anc_wait_hw_idle_timeout(int usec_to_wait);
- int anc_acts_request_image(struct device *dev, const struct anc_imageinfo *image);
- int anc_acts_release_image(struct device *dev);
- #ifdef __cplusplus
- }
- #endif
- #endif
|