1 /* SPDX-License-Identifier: GPL-2.0 */ 2 /* 3 * Support for Intel Camera Imaging ISP subsystem. 4 * Copyright (c) 2010 - 2015, Intel Corporation. 5 */ 6 7 #ifndef __IBUF_CTRL_RMGR_H_INCLUDED__ 8 #define __IBUF_CTRL_RMGR_H_INCLUDED__ 9 10 #define MAX_IBUF_HANDLES 24 11 #define MAX_INPUT_BUFFER_SIZE (64 * 1024) 12 #define IBUF_ALIGN 8 13 14 typedef struct ibuf_handle_s ibuf_handle_t; 15 struct ibuf_handle_s { 16 u32 start_addr; 17 u32 size; 18 bool active; 19 }; 20 21 typedef struct ibuf_rsrc_s ibuf_rsrc_t; 22 struct ibuf_rsrc_s { 23 u32 free_start_addr; 24 u32 free_size; 25 u16 num_active; 26 u16 num_allocated; 27 ibuf_handle_t handles[MAX_IBUF_HANDLES]; 28 }; 29 30 #endif /* __IBUF_CTRL_RMGR_H_INCLUDED */ 31