Commit 4c5133f5 authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab

media: atomisp: get rid of storage_class.h

Don't hide function declaration on ugly macros.
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
Acked-by: default avatarSakari Ailus <sakari.ailus@iki.fi>
parent 3708713f
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
#include <sp.h> #include <sp.h>
#include <type_support.h> #include <type_support.h>
#include <math_support.h> #include <math_support.h>
#include <storage_class.h>
#include <assert_support.h> #include <assert_support.h>
#include <platform_support.h> #include <platform_support.h>
#include "ia_css_circbuf_comm.h" #include "ia_css_circbuf_comm.h"
...@@ -45,7 +44,7 @@ struct ia_css_circbuf_s { ...@@ -45,7 +44,7 @@ struct ia_css_circbuf_s {
* @param elems An array of elements. * @param elems An array of elements.
* @param desc The descriptor set to the size using ia_css_circbuf_desc_init(). * @param desc The descriptor set to the size using ia_css_circbuf_desc_init().
*/ */
STORAGE_CLASS_EXTERN void ia_css_circbuf_create( extern void ia_css_circbuf_create(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
ia_css_circbuf_elem_t *elems, ia_css_circbuf_elem_t *elems,
ia_css_circbuf_desc_t *desc); ia_css_circbuf_desc_t *desc);
...@@ -55,7 +54,7 @@ STORAGE_CLASS_EXTERN void ia_css_circbuf_create( ...@@ -55,7 +54,7 @@ STORAGE_CLASS_EXTERN void ia_css_circbuf_create(
* *
* @param cb The pointer to the circular buffer. * @param cb The pointer to the circular buffer.
*/ */
STORAGE_CLASS_EXTERN void ia_css_circbuf_destroy( extern void ia_css_circbuf_destroy(
ia_css_circbuf_t *cb); ia_css_circbuf_t *cb);
/** /**
...@@ -68,7 +67,7 @@ STORAGE_CLASS_EXTERN void ia_css_circbuf_destroy( ...@@ -68,7 +67,7 @@ STORAGE_CLASS_EXTERN void ia_css_circbuf_destroy(
* *
* @return the pop-out value. * @return the pop-out value.
*/ */
STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_pop( extern uint32_t ia_css_circbuf_pop(
ia_css_circbuf_t *cb); ia_css_circbuf_t *cb);
/** /**
...@@ -82,7 +81,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_pop( ...@@ -82,7 +81,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_pop(
* *
* @return the extracted value. * @return the extracted value.
*/ */
STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_extract( extern uint32_t ia_css_circbuf_extract(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
int offset); int offset);
...@@ -97,7 +96,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_extract( ...@@ -97,7 +96,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_extract(
* @param elem The pointer to the element. * @param elem The pointer to the element.
* @param val The value to be set. * @param val The value to be set.
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_elem_set_val( static inline void ia_css_circbuf_elem_set_val(
ia_css_circbuf_elem_t *elem, ia_css_circbuf_elem_t *elem,
uint32_t val) uint32_t val)
{ {
...@@ -111,7 +110,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_set_val( ...@@ -111,7 +110,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_set_val(
* *
* @param elem The pointer to the element. * @param elem The pointer to the element.
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_elem_init( static inline void ia_css_circbuf_elem_init(
ia_css_circbuf_elem_t *elem) ia_css_circbuf_elem_t *elem)
{ {
OP___assert(elem != NULL); OP___assert(elem != NULL);
...@@ -124,7 +123,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_init( ...@@ -124,7 +123,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_init(
* @param src The element as the copy source. * @param src The element as the copy source.
* @param dest The element as the copy destination. * @param dest The element as the copy destination.
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_elem_cpy( static inline void ia_css_circbuf_elem_cpy(
ia_css_circbuf_elem_t *src, ia_css_circbuf_elem_t *src,
ia_css_circbuf_elem_t *dest) ia_css_circbuf_elem_t *dest)
{ {
...@@ -143,7 +142,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_cpy( ...@@ -143,7 +142,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_elem_cpy(
* *
* @return the position at offset. * @return the position at offset.
*/ */
STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_get_pos_at_offset( static inline uint8_t ia_css_circbuf_get_pos_at_offset(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
uint32_t base, uint32_t base,
int offset) int offset)
...@@ -176,7 +175,7 @@ STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_get_pos_at_offset( ...@@ -176,7 +175,7 @@ STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_get_pos_at_offset(
* *
* @return the offset. * @return the offset.
*/ */
STORAGE_CLASS_INLINE int ia_css_circbuf_get_offset( static inline int ia_css_circbuf_get_offset(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
uint32_t src_pos, uint32_t src_pos,
uint32_t dest_pos) uint32_t dest_pos)
...@@ -201,7 +200,7 @@ STORAGE_CLASS_INLINE int ia_css_circbuf_get_offset( ...@@ -201,7 +200,7 @@ STORAGE_CLASS_INLINE int ia_css_circbuf_get_offset(
* *
* TODO: Test this API. * TODO: Test this API.
*/ */
STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_size( static inline uint32_t ia_css_circbuf_get_size(
ia_css_circbuf_t *cb) ia_css_circbuf_t *cb)
{ {
OP___assert(cb != NULL); OP___assert(cb != NULL);
...@@ -217,7 +216,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_size( ...@@ -217,7 +216,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_size(
* *
* @return the number of available elements. * @return the number of available elements.
*/ */
STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_num_elems( static inline uint32_t ia_css_circbuf_get_num_elems(
ia_css_circbuf_t *cb) ia_css_circbuf_t *cb)
{ {
int num; int num;
...@@ -239,7 +238,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_num_elems( ...@@ -239,7 +238,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_num_elems(
* - true when it is empty. * - true when it is empty.
* - false when it is not empty. * - false when it is not empty.
*/ */
STORAGE_CLASS_INLINE bool ia_css_circbuf_is_empty( static inline bool ia_css_circbuf_is_empty(
ia_css_circbuf_t *cb) ia_css_circbuf_t *cb)
{ {
OP___assert(cb != NULL); OP___assert(cb != NULL);
...@@ -257,7 +256,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_is_empty( ...@@ -257,7 +256,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_is_empty(
* - true when it is full. * - true when it is full.
* - false when it is not full. * - false when it is not full.
*/ */
STORAGE_CLASS_INLINE bool ia_css_circbuf_is_full(ia_css_circbuf_t *cb) static inline bool ia_css_circbuf_is_full(ia_css_circbuf_t *cb)
{ {
OP___assert(cb != NULL); OP___assert(cb != NULL);
OP___assert(cb->desc != NULL); OP___assert(cb->desc != NULL);
...@@ -274,7 +273,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_is_full(ia_css_circbuf_t *cb) ...@@ -274,7 +273,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_is_full(ia_css_circbuf_t *cb)
* @param cb The pointer to the circular buffer. * @param cb The pointer to the circular buffer.
* @param elem The new element. * @param elem The new element.
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_write( static inline void ia_css_circbuf_write(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
ia_css_circbuf_elem_t elem) ia_css_circbuf_elem_t elem)
{ {
...@@ -298,7 +297,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_write( ...@@ -298,7 +297,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_write(
* @param cb The pointer to the circular buffer. * @param cb The pointer to the circular buffer.
* @param val The value to be pushed in. * @param val The value to be pushed in.
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_push( static inline void ia_css_circbuf_push(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
uint32_t val) uint32_t val)
{ {
...@@ -321,7 +320,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_push( ...@@ -321,7 +320,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_push(
* *
* @return: The number of free elements. * @return: The number of free elements.
*/ */
STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_free_elems( static inline uint32_t ia_css_circbuf_get_free_elems(
ia_css_circbuf_t *cb) ia_css_circbuf_t *cb)
{ {
OP___assert(cb != NULL); OP___assert(cb != NULL);
...@@ -338,7 +337,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_free_elems( ...@@ -338,7 +337,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_get_free_elems(
* *
* @return the elements value. * @return the elements value.
*/ */
STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek( extern uint32_t ia_css_circbuf_peek(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
int offset); int offset);
...@@ -350,7 +349,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek( ...@@ -350,7 +349,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek(
* *
* @return the elements value. * @return the elements value.
*/ */
STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek_from_start( extern uint32_t ia_css_circbuf_peek_from_start(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
int offset); int offset);
...@@ -369,7 +368,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek_from_start( ...@@ -369,7 +368,7 @@ STORAGE_CLASS_EXTERN uint32_t ia_css_circbuf_peek_from_start(
* @return true on succesfully increasing the size * @return true on succesfully increasing the size
* false on failure * false on failure
*/ */
STORAGE_CLASS_EXTERN bool ia_css_circbuf_increase_size( extern bool ia_css_circbuf_increase_size(
ia_css_circbuf_t *cb, ia_css_circbuf_t *cb,
unsigned int sz_delta, unsigned int sz_delta,
ia_css_circbuf_elem_t *elems); ia_css_circbuf_elem_t *elems);
......
...@@ -17,7 +17,6 @@ ...@@ -17,7 +17,6 @@
#include <type_support.h> #include <type_support.h>
#include <math_support.h> #include <math_support.h>
#include <storage_class.h>
#include <platform_support.h> #include <platform_support.h>
#include <sp.h> #include <sp.h>
#include "ia_css_circbuf_comm.h" #include "ia_css_circbuf_comm.h"
...@@ -35,7 +34,7 @@ ...@@ -35,7 +34,7 @@
* - true when it is empty. * - true when it is empty.
* - false when it is not empty. * - false when it is not empty.
*/ */
STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_empty( static inline bool ia_css_circbuf_desc_is_empty(
ia_css_circbuf_desc_t *cb_desc) ia_css_circbuf_desc_t *cb_desc)
{ {
OP___assert(cb_desc != NULL); OP___assert(cb_desc != NULL);
...@@ -52,7 +51,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_empty( ...@@ -52,7 +51,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_empty(
* - true when it is full. * - true when it is full.
* - false when it is not full. * - false when it is not full.
*/ */
STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_full( static inline bool ia_css_circbuf_desc_is_full(
ia_css_circbuf_desc_t *cb_desc) ia_css_circbuf_desc_t *cb_desc)
{ {
OP___assert(cb_desc != NULL); OP___assert(cb_desc != NULL);
...@@ -65,7 +64,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_full( ...@@ -65,7 +64,7 @@ STORAGE_CLASS_INLINE bool ia_css_circbuf_desc_is_full(
* @param cb_desc The pointer circular buffer descriptor * @param cb_desc The pointer circular buffer descriptor
* @param size The size of the circular buffer * @param size The size of the circular buffer
*/ */
STORAGE_CLASS_INLINE void ia_css_circbuf_desc_init( static inline void ia_css_circbuf_desc_init(
ia_css_circbuf_desc_t *cb_desc, ia_css_circbuf_desc_t *cb_desc,
int8_t size) int8_t size)
{ {
...@@ -82,7 +81,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_desc_init( ...@@ -82,7 +81,7 @@ STORAGE_CLASS_INLINE void ia_css_circbuf_desc_init(
* *
* @return the position in the circular buffer descriptor. * @return the position in the circular buffer descriptor.
*/ */
STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_desc_get_pos_at_offset( static inline uint8_t ia_css_circbuf_desc_get_pos_at_offset(
ia_css_circbuf_desc_t *cb_desc, ia_css_circbuf_desc_t *cb_desc,
uint32_t base, uint32_t base,
int offset) int offset)
...@@ -114,7 +113,7 @@ STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_desc_get_pos_at_offset( ...@@ -114,7 +113,7 @@ STORAGE_CLASS_INLINE uint8_t ia_css_circbuf_desc_get_pos_at_offset(
* *
* @return the offset. * @return the offset.
*/ */
STORAGE_CLASS_INLINE int ia_css_circbuf_desc_get_offset( static inline int ia_css_circbuf_desc_get_offset(
ia_css_circbuf_desc_t *cb_desc, ia_css_circbuf_desc_t *cb_desc,
uint32_t src_pos, uint32_t src_pos,
uint32_t dest_pos) uint32_t dest_pos)
...@@ -135,7 +134,7 @@ STORAGE_CLASS_INLINE int ia_css_circbuf_desc_get_offset( ...@@ -135,7 +134,7 @@ STORAGE_CLASS_INLINE int ia_css_circbuf_desc_get_offset(
* *
* @return The number of available elements. * @return The number of available elements.
*/ */
STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_desc_get_num_elems( static inline uint32_t ia_css_circbuf_desc_get_num_elems(
ia_css_circbuf_desc_t *cb_desc) ia_css_circbuf_desc_t *cb_desc)
{ {
int num; int num;
...@@ -155,7 +154,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_desc_get_num_elems( ...@@ -155,7 +154,7 @@ STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_desc_get_num_elems(
* *
* @return: The number of free elements. * @return: The number of free elements.
*/ */
STORAGE_CLASS_INLINE uint32_t ia_css_circbuf_desc_get_free_elems( static inline uint32_t ia_css_circbuf_desc_get_free_elems(
ia_css_circbuf_desc_t *cb_desc) ia_css_circbuf_desc_t *cb_desc)
{ {
uint32_t num; uint32_t num;
......
...@@ -34,7 +34,7 @@ ...@@ -34,7 +34,7 @@
* @brief Get the csi rx fe state. * @brief Get the csi rx fe state.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_state( static inline void csi_rx_fe_ctrl_get_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
csi_rx_fe_ctrl_state_t *state) csi_rx_fe_ctrl_state_t *state)
{ {
...@@ -73,7 +73,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_state( ...@@ -73,7 +73,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_state(
* @brief Get the state of the csi rx fe dlane process. * @brief Get the state of the csi rx fe dlane process.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_dlane_state( static inline void csi_rx_fe_ctrl_get_dlane_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const uint32_t lane, const uint32_t lane,
csi_rx_fe_ctrl_lane_t *dlane_state) csi_rx_fe_ctrl_lane_t *dlane_state)
...@@ -89,7 +89,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_dlane_state( ...@@ -89,7 +89,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_get_dlane_state(
* @brief dump the csi rx fe state. * @brief dump the csi rx fe state.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_dump_state( static inline void csi_rx_fe_ctrl_dump_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
csi_rx_fe_ctrl_state_t *state) csi_rx_fe_ctrl_state_t *state)
{ {
...@@ -118,7 +118,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_dump_state( ...@@ -118,7 +118,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_dump_state(
* @brief Get the csi rx be state. * @brief Get the csi rx be state.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_get_state( static inline void csi_rx_be_ctrl_get_state(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
csi_rx_be_ctrl_state_t *state) csi_rx_be_ctrl_state_t *state)
{ {
...@@ -181,7 +181,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_get_state( ...@@ -181,7 +181,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_get_state(
* @brief Dump the csi rx be state. * @brief Dump the csi rx be state.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_dump_state( static inline void csi_rx_be_ctrl_dump_state(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
csi_rx_be_ctrl_state_t *state) csi_rx_be_ctrl_state_t *state)
{ {
...@@ -225,7 +225,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_dump_state( ...@@ -225,7 +225,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_dump_state(
* @brief Load the register value. * @brief Load the register value.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_fe_ctrl_reg_load( static inline hrt_data csi_rx_fe_ctrl_reg_load(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const hrt_address reg) const hrt_address reg)
{ {
...@@ -239,7 +239,7 @@ STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_fe_ctrl_reg_load( ...@@ -239,7 +239,7 @@ STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_fe_ctrl_reg_load(
* @brief Store a value to the register. * @brief Store a value to the register.
* Refer to "ibuf_ctrl_public.h" for details. * Refer to "ibuf_ctrl_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_reg_store( static inline void csi_rx_fe_ctrl_reg_store(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const hrt_address reg, const hrt_address reg,
const hrt_data value) const hrt_data value)
...@@ -253,7 +253,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_reg_store( ...@@ -253,7 +253,7 @@ STORAGE_CLASS_CSI_RX_C void csi_rx_fe_ctrl_reg_store(
* @brief Load the register value. * @brief Load the register value.
* Refer to "csi_rx_public.h" for details. * Refer to "csi_rx_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_be_ctrl_reg_load( static inline hrt_data csi_rx_be_ctrl_reg_load(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
const hrt_address reg) const hrt_address reg)
{ {
...@@ -267,7 +267,7 @@ STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_be_ctrl_reg_load( ...@@ -267,7 +267,7 @@ STORAGE_CLASS_CSI_RX_C hrt_data csi_rx_be_ctrl_reg_load(
* @brief Store a value to the register. * @brief Store a value to the register.
* Refer to "ibuf_ctrl_public.h" for details. * Refer to "ibuf_ctrl_public.h" for details.
*/ */
STORAGE_CLASS_CSI_RX_C void csi_rx_be_ctrl_reg_store( static inline void csi_rx_be_ctrl_reg_store(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
const hrt_address reg, const hrt_address reg,
const hrt_data value) const hrt_data value)
......
...@@ -38,12 +38,12 @@ STORAGE_CLASS_FIFO_MONITOR_DATA unsigned int FIFO_SWITCH_ADDR[N_FIFO_SWITCH] = { ...@@ -38,12 +38,12 @@ STORAGE_CLASS_FIFO_MONITOR_DATA unsigned int FIFO_SWITCH_ADDR[N_FIFO_SWITCH] = {
#include "fifo_monitor_private.h" #include "fifo_monitor_private.h"
#endif /* __INLINE_FIFO_MONITOR__ */ #endif /* __INLINE_FIFO_MONITOR__ */
STORAGE_CLASS_INLINE bool fifo_monitor_status_valid ( static inline bool fifo_monitor_status_valid (
const fifo_monitor_ID_t ID, const fifo_monitor_ID_t ID,
const unsigned int reg, const unsigned int reg,
const unsigned int port_id); const unsigned int port_id);
STORAGE_CLASS_INLINE bool fifo_monitor_status_accept( static inline bool fifo_monitor_status_accept(
const fifo_monitor_ID_t ID, const fifo_monitor_ID_t ID,
const unsigned int reg, const unsigned int reg,
const unsigned int port_id); const unsigned int port_id);
...@@ -546,7 +546,7 @@ void fifo_monitor_get_state( ...@@ -546,7 +546,7 @@ void fifo_monitor_get_state(
return; return;
} }
STORAGE_CLASS_INLINE bool fifo_monitor_status_valid ( static inline bool fifo_monitor_status_valid (
const fifo_monitor_ID_t ID, const fifo_monitor_ID_t ID,
const unsigned int reg, const unsigned int reg,
const unsigned int port_id) const unsigned int port_id)
...@@ -556,7 +556,7 @@ STORAGE_CLASS_INLINE bool fifo_monitor_status_valid ( ...@@ -556,7 +556,7 @@ STORAGE_CLASS_INLINE bool fifo_monitor_status_valid (
return (data >> (((port_id * 2) + _hive_str_mon_valid_offset))) & 0x1; return (data >> (((port_id * 2) + _hive_str_mon_valid_offset))) & 0x1;
} }
STORAGE_CLASS_INLINE bool fifo_monitor_status_accept( static inline bool fifo_monitor_status_accept(
const fifo_monitor_ID_t ID, const fifo_monitor_ID_t ID,
const unsigned int reg, const unsigned int reg,
const unsigned int port_id) const unsigned int port_id)
......
...@@ -22,12 +22,12 @@ ...@@ -22,12 +22,12 @@
/* /*
* Local function declarations * Local function declarations
*/ */
STORAGE_CLASS_INLINE void gdc_reg_store( static inline void gdc_reg_store(
const gdc_ID_t ID, const gdc_ID_t ID,
const unsigned int reg, const unsigned int reg,
const hrt_data value); const hrt_data value);
STORAGE_CLASS_INLINE hrt_data gdc_reg_load( static inline hrt_data gdc_reg_load(
const gdc_ID_t ID, const gdc_ID_t ID,
const unsigned int reg); const unsigned int reg);
...@@ -110,7 +110,7 @@ int gdc_get_unity( ...@@ -110,7 +110,7 @@ int gdc_get_unity(
/* /*
* Local function implementations * Local function implementations
*/ */
STORAGE_CLASS_INLINE void gdc_reg_store( static inline void gdc_reg_store(
const gdc_ID_t ID, const gdc_ID_t ID,
const unsigned int reg, const unsigned int reg,
const hrt_data value) const hrt_data value)
...@@ -119,7 +119,7 @@ STORAGE_CLASS_INLINE void gdc_reg_store( ...@@ -119,7 +119,7 @@ STORAGE_CLASS_INLINE void gdc_reg_store(
return; return;
} }
STORAGE_CLASS_INLINE hrt_data gdc_reg_load( static inline hrt_data gdc_reg_load(
const gdc_ID_t ID, const gdc_ID_t ID,
const unsigned int reg) const unsigned int reg)
{ {
......
...@@ -81,27 +81,27 @@ static input_system_error_t input_system_multiplexer_cfg( ...@@ -81,27 +81,27 @@ static input_system_error_t input_system_multiplexer_cfg(
STORAGE_CLASS_INLINE void capture_unit_get_state( static inline void capture_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
capture_unit_state_t *state); capture_unit_state_t *state);
STORAGE_CLASS_INLINE void acquisition_unit_get_state( static inline void acquisition_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
acquisition_unit_state_t *state); acquisition_unit_state_t *state);
STORAGE_CLASS_INLINE void ctrl_unit_get_state( static inline void ctrl_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
ctrl_unit_state_t *state); ctrl_unit_state_t *state);
STORAGE_CLASS_INLINE void mipi_port_get_state( static inline void mipi_port_get_state(
const rx_ID_t ID, const rx_ID_t ID,
const mipi_port_ID_t port_ID, const mipi_port_ID_t port_ID,
mipi_port_state_t *state); mipi_port_state_t *state);
STORAGE_CLASS_INLINE void rx_channel_get_state( static inline void rx_channel_get_state(
const rx_ID_t ID, const rx_ID_t ID,
const unsigned int ch_id, const unsigned int ch_id,
rx_channel_state_t *state); rx_channel_state_t *state);
...@@ -359,7 +359,7 @@ void receiver_irq_clear( ...@@ -359,7 +359,7 @@ void receiver_irq_clear(
return; return;
} }
STORAGE_CLASS_INLINE void capture_unit_get_state( static inline void capture_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
capture_unit_state_t *state) capture_unit_state_t *state)
...@@ -421,7 +421,7 @@ STORAGE_CLASS_INLINE void capture_unit_get_state( ...@@ -421,7 +421,7 @@ STORAGE_CLASS_INLINE void capture_unit_get_state(
return; return;
} }
STORAGE_CLASS_INLINE void acquisition_unit_get_state( static inline void acquisition_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
acquisition_unit_state_t *state) acquisition_unit_state_t *state)
...@@ -471,7 +471,7 @@ STORAGE_CLASS_INLINE void acquisition_unit_get_state( ...@@ -471,7 +471,7 @@ STORAGE_CLASS_INLINE void acquisition_unit_get_state(
return; return;
} }
STORAGE_CLASS_INLINE void ctrl_unit_get_state( static inline void ctrl_unit_get_state(
const input_system_ID_t ID, const input_system_ID_t ID,
const sub_system_ID_t sub_id, const sub_system_ID_t sub_id,
ctrl_unit_state_t *state) ctrl_unit_state_t *state)
...@@ -554,7 +554,7 @@ STORAGE_CLASS_INLINE void ctrl_unit_get_state( ...@@ -554,7 +554,7 @@ STORAGE_CLASS_INLINE void ctrl_unit_get_state(
return; return;
} }
STORAGE_CLASS_INLINE void mipi_port_get_state( static inline void mipi_port_get_state(
const rx_ID_t ID, const rx_ID_t ID,
const mipi_port_ID_t port_ID, const mipi_port_ID_t port_ID,
mipi_port_state_t *state) mipi_port_state_t *state)
...@@ -590,7 +590,7 @@ STORAGE_CLASS_INLINE void mipi_port_get_state( ...@@ -590,7 +590,7 @@ STORAGE_CLASS_INLINE void mipi_port_get_state(
return; return;
} }
STORAGE_CLASS_INLINE void rx_channel_get_state( static inline void rx_channel_get_state(
const rx_ID_t ID, const rx_ID_t ID,
const unsigned int ch_id, const unsigned int ch_id,
rx_channel_state_t *state) rx_channel_state_t *state)
......
...@@ -22,13 +22,13 @@ ...@@ -22,13 +22,13 @@
#include "platform_support.h" /* hrt_sleep() */ #include "platform_support.h" /* hrt_sleep() */
STORAGE_CLASS_INLINE void irq_wait_for_write_complete( static inline void irq_wait_for_write_complete(
const irq_ID_t ID); const irq_ID_t ID);
STORAGE_CLASS_INLINE bool any_irq_channel_enabled( static inline bool any_irq_channel_enabled(
const irq_ID_t ID); const irq_ID_t ID);
STORAGE_CLASS_INLINE irq_ID_t virq_get_irq_id( static inline irq_ID_t virq_get_irq_id(
const virq_id_t irq_ID, const virq_id_t irq_ID,
unsigned int *channel_ID); unsigned int *channel_ID);
...@@ -406,7 +406,7 @@ enum hrt_isp_css_irq_status virq_get_channel_id( ...@@ -406,7 +406,7 @@ enum hrt_isp_css_irq_status virq_get_channel_id(
return status; return status;
} }
STORAGE_CLASS_INLINE void irq_wait_for_write_complete( static inline void irq_wait_for_write_complete(
const irq_ID_t ID) const irq_ID_t ID)
{ {
assert(ID < N_IRQ_ID); assert(ID < N_IRQ_ID);
...@@ -415,7 +415,7 @@ STORAGE_CLASS_INLINE void irq_wait_for_write_complete( ...@@ -415,7 +415,7 @@ STORAGE_CLASS_INLINE void irq_wait_for_write_complete(
_HRT_IRQ_CONTROLLER_ENABLE_REG_IDX*sizeof(hrt_data)); _HRT_IRQ_CONTROLLER_ENABLE_REG_IDX*sizeof(hrt_data));
} }
STORAGE_CLASS_INLINE bool any_irq_channel_enabled( static inline bool any_irq_channel_enabled(
const irq_ID_t ID) const irq_ID_t ID)
{ {
hrt_data en_reg; hrt_data en_reg;
...@@ -428,7 +428,7 @@ STORAGE_CLASS_INLINE bool any_irq_channel_enabled( ...@@ -428,7 +428,7 @@ STORAGE_CLASS_INLINE bool any_irq_channel_enabled(
return (en_reg != 0); return (en_reg != 0);
} }
STORAGE_CLASS_INLINE irq_ID_t virq_get_irq_id( static inline irq_ID_t virq_get_irq_id(
const virq_id_t irq_ID, const virq_id_t irq_ID,
unsigned int *channel_ID) unsigned int *channel_ID)
{ {
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#ifndef __ASSERT_SUPPORT_H_INCLUDED__ #ifndef __ASSERT_SUPPORT_H_INCLUDED__
#define __ASSERT_SUPPORT_H_INCLUDED__ #define __ASSERT_SUPPORT_H_INCLUDED__
#include "storage_class.h"
/** /**
* The following macro can help to test the size of a struct at compile * The following macro can help to test the size of a struct at compile
...@@ -92,7 +91,7 @@ ...@@ -92,7 +91,7 @@
* The implemenation for the pipe generation tool is in see support.isp.h */ * The implemenation for the pipe generation tool is in see support.isp.h */
#define OP___assert(cnd) assert(cnd) #define OP___assert(cnd) assert(cnd)
STORAGE_CLASS_INLINE void compile_time_assert (unsigned cond) static inline void compile_time_assert (unsigned cond)
{ {
/* Call undefined function if cond is false */ /* Call undefined function if cond is false */
extern void _compile_time_assert (void); extern void _compile_time_assert (void);
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "bamem_local.h" #include "bamem_local.h"
#ifndef __INLINE_BAMEM__ #ifndef __INLINE_BAMEM__
#define STORAGE_CLASS_BAMEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_BAMEM_H extern
#define STORAGE_CLASS_BAMEM_C #define STORAGE_CLASS_BAMEM_C
#include "bamem_public.h" #include "bamem_public.h"
#else /* __INLINE_BAMEM__ */ #else /* __INLINE_BAMEM__ */
#define STORAGE_CLASS_BAMEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_BAMEM_H static inline
#define STORAGE_CLASS_BAMEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_BAMEM_C static inline
#include "bamem_private.h" #include "bamem_private.h"
#endif /* __INLINE_BAMEM__ */ #endif /* __INLINE_BAMEM__ */
......
...@@ -30,18 +30,13 @@ ...@@ -30,18 +30,13 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "csi_rx_local.h" #include "csi_rx_local.h"
#ifndef __INLINE_CSI_RX__ #ifndef __INLINE_CSI_RX__
#define STORAGE_CLASS_CSI_RX_H STORAGE_CLASS_EXTERN
#define STORAGE_CLASS_CSI_RX_C
#include "csi_rx_public.h" #include "csi_rx_public.h"
#else /* __INLINE_CSI_RX__ */ #else /* __INLINE_CSI_RX__ */
#define STORAGE_CLASS_CSI_RX_H STORAGE_CLASS_INLINE
#define STORAGE_CLASS_CSI_RX_C STORAGE_CLASS_INLINE
#include "csi_rx_private.h" #include "csi_rx_private.h"
#endif /* __INLINE_CSI_RX__ */ #endif /* __INLINE_CSI_RX__ */
......
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "debug_local.h" #include "debug_local.h"
#ifndef __INLINE_DEBUG__ #ifndef __INLINE_DEBUG__
#define STORAGE_CLASS_DEBUG_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_DEBUG_H extern
#define STORAGE_CLASS_DEBUG_C #define STORAGE_CLASS_DEBUG_C
#include "debug_public.h" #include "debug_public.h"
#else /* __INLINE_DEBUG__ */ #else /* __INLINE_DEBUG__ */
#define STORAGE_CLASS_DEBUG_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_DEBUG_H static inline
#define STORAGE_CLASS_DEBUG_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_DEBUG_C static inline
#include "debug_private.h" #include "debug_private.h"
#endif /* __INLINE_DEBUG__ */ #endif /* __INLINE_DEBUG__ */
......
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "dma_local.h" #include "dma_local.h"
#ifndef __INLINE_DMA__ #ifndef __INLINE_DMA__
#define STORAGE_CLASS_DMA_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_DMA_H extern
#define STORAGE_CLASS_DMA_C #define STORAGE_CLASS_DMA_C
#include "dma_public.h" #include "dma_public.h"
#else /* __INLINE_DMA__ */ #else /* __INLINE_DMA__ */
#define STORAGE_CLASS_DMA_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_DMA_H static inline
#define STORAGE_CLASS_DMA_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_DMA_C static inline
#include "dma_private.h" #include "dma_private.h"
#endif /* __INLINE_DMA__ */ #endif /* __INLINE_DMA__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "event_fifo_local.h" #include "event_fifo_local.h"
#ifndef __INLINE_EVENT__ #ifndef __INLINE_EVENT__
#define STORAGE_CLASS_EVENT_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_EVENT_H extern
#define STORAGE_CLASS_EVENT_C #define STORAGE_CLASS_EVENT_C
#include "event_fifo_public.h" #include "event_fifo_public.h"
#else /* __INLINE_EVENT__ */ #else /* __INLINE_EVENT__ */
#define STORAGE_CLASS_EVENT_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_EVENT_H static inline
#define STORAGE_CLASS_EVENT_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_EVENT_C static inline
#include "event_fifo_private.h" #include "event_fifo_private.h"
#endif /* __INLINE_EVENT__ */ #endif /* __INLINE_EVENT__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "fifo_monitor_local.h" #include "fifo_monitor_local.h"
#ifndef __INLINE_FIFO_MONITOR__ #ifndef __INLINE_FIFO_MONITOR__
#define STORAGE_CLASS_FIFO_MONITOR_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_FIFO_MONITOR_H extern
#define STORAGE_CLASS_FIFO_MONITOR_C #define STORAGE_CLASS_FIFO_MONITOR_C
#include "fifo_monitor_public.h" #include "fifo_monitor_public.h"
#else /* __INLINE_FIFO_MONITOR__ */ #else /* __INLINE_FIFO_MONITOR__ */
#define STORAGE_CLASS_FIFO_MONITOR_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_FIFO_MONITOR_H static inline
#define STORAGE_CLASS_FIFO_MONITOR_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_FIFO_MONITOR_C static inline
#include "fifo_monitor_private.h" #include "fifo_monitor_private.h"
#endif /* __INLINE_FIFO_MONITOR__ */ #endif /* __INLINE_FIFO_MONITOR__ */
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "gdc_local.h" #include "gdc_local.h"
#ifndef __INLINE_GDC__ #ifndef __INLINE_GDC__
#define STORAGE_CLASS_GDC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_GDC_H extern
#define STORAGE_CLASS_GDC_C #define STORAGE_CLASS_GDC_C
#include "gdc_public.h" #include "gdc_public.h"
#else /* __INLINE_GDC__ */ #else /* __INLINE_GDC__ */
#define STORAGE_CLASS_GDC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_GDC_H static inline
#define STORAGE_CLASS_GDC_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_GDC_C static inline
#include "gdc_private.h" #include "gdc_private.h"
#endif /* __INLINE_GDC__ */ #endif /* __INLINE_GDC__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "gp_device_local.h" #include "gp_device_local.h"
#ifndef __INLINE_GP_DEVICE__ #ifndef __INLINE_GP_DEVICE__
#define STORAGE_CLASS_GP_DEVICE_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_GP_DEVICE_H extern
#define STORAGE_CLASS_GP_DEVICE_C #define STORAGE_CLASS_GP_DEVICE_C
#include "gp_device_public.h" #include "gp_device_public.h"
#else /* __INLINE_GP_DEVICE__ */ #else /* __INLINE_GP_DEVICE__ */
#define STORAGE_CLASS_GP_DEVICE_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_GP_DEVICE_H static inline
#define STORAGE_CLASS_GP_DEVICE_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_GP_DEVICE_C static inline
#include "gp_device_private.h" #include "gp_device_private.h"
#endif /* __INLINE_GP_DEVICE__ */ #endif /* __INLINE_GP_DEVICE__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" /*GP_TIMER_BASE address */ #include "system_local.h" /*GP_TIMER_BASE address */
#include "gp_timer_local.h" /*GP_TIMER register offsets */ #include "gp_timer_local.h" /*GP_TIMER register offsets */
#ifndef __INLINE_GP_TIMER__ #ifndef __INLINE_GP_TIMER__
#define STORAGE_CLASS_GP_TIMER_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_GP_TIMER_H extern
#define STORAGE_CLASS_GP_TIMER_C #define STORAGE_CLASS_GP_TIMER_C
#include "gp_timer_public.h" /* functions*/ #include "gp_timer_public.h" /* functions*/
#else /* __INLINE_GP_TIMER__ */ #else /* __INLINE_GP_TIMER__ */
#define STORAGE_CLASS_GP_TIMER_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_GP_TIMER_H static inline
#define STORAGE_CLASS_GP_TIMER_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_GP_TIMER_C static inline
#include "gp_timer_private.h" /* inline functions*/ #include "gp_timer_private.h" /* inline functions*/
#endif /* __INLINE_GP_TIMER__ */ #endif /* __INLINE_GP_TIMER__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "gpio_local.h" #include "gpio_local.h"
#ifndef __INLINE_GPIO__ #ifndef __INLINE_GPIO__
#define STORAGE_CLASS_GPIO_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_GPIO_H extern
#define STORAGE_CLASS_GPIO_C #define STORAGE_CLASS_GPIO_C
#include "gpio_public.h" #include "gpio_public.h"
#else /* __INLINE_GPIO__ */ #else /* __INLINE_GPIO__ */
#define STORAGE_CLASS_GPIO_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_GPIO_H static inline
#define STORAGE_CLASS_GPIO_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_GPIO_C static inline
#include "gpio_private.h" #include "gpio_private.h"
#endif /* __INLINE_GPIO__ */ #endif /* __INLINE_GPIO__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "hmem_local.h" #include "hmem_local.h"
#ifndef __INLINE_HMEM__ #ifndef __INLINE_HMEM__
#define STORAGE_CLASS_HMEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_HMEM_H extern
#define STORAGE_CLASS_HMEM_C #define STORAGE_CLASS_HMEM_C
#include "hmem_public.h" #include "hmem_public.h"
#else /* __INLINE_HMEM__ */ #else /* __INLINE_HMEM__ */
#define STORAGE_CLASS_HMEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_HMEM_H static inline
#define STORAGE_CLASS_HMEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_HMEM_C static inline
#include "hmem_private.h" #include "hmem_private.h"
#endif /* __INLINE_HMEM__ */ #endif /* __INLINE_HMEM__ */
......
...@@ -28,7 +28,7 @@ ...@@ -28,7 +28,7 @@
* @param[in] id The global unique ID of the csi rx fe controller. * @param[in] id The global unique ID of the csi rx fe controller.
* @param[out] state Point to the register-state. * @param[out] state Point to the register-state.
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_state( extern void csi_rx_fe_ctrl_get_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
csi_rx_fe_ctrl_state_t *state); csi_rx_fe_ctrl_state_t *state);
/** /**
...@@ -38,7 +38,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_state( ...@@ -38,7 +38,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_state(
* @param[in] id The global unique ID of the csi rx fe controller. * @param[in] id The global unique ID of the csi rx fe controller.
* @param[in] state Point to the register-state. * @param[in] state Point to the register-state.
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_dump_state( extern void csi_rx_fe_ctrl_dump_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
csi_rx_fe_ctrl_state_t *state); csi_rx_fe_ctrl_state_t *state);
/** /**
...@@ -49,7 +49,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_dump_state( ...@@ -49,7 +49,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_dump_state(
* @param[in] lane The lane ID. * @param[in] lane The lane ID.
* @param[out] state Point to the dlane state. * @param[out] state Point to the dlane state.
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_dlane_state( extern void csi_rx_fe_ctrl_get_dlane_state(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const uint32_t lane, const uint32_t lane,
csi_rx_fe_ctrl_lane_t *dlane_state); csi_rx_fe_ctrl_lane_t *dlane_state);
...@@ -60,7 +60,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_dlane_state( ...@@ -60,7 +60,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_get_dlane_state(
* @param[in] id The global unique ID of the csi rx be controller. * @param[in] id The global unique ID of the csi rx be controller.
* @param[out] state Point to the register-state. * @param[out] state Point to the register-state.
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_get_state( extern void csi_rx_be_ctrl_get_state(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
csi_rx_be_ctrl_state_t *state); csi_rx_be_ctrl_state_t *state);
/** /**
...@@ -70,7 +70,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_get_state( ...@@ -70,7 +70,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_get_state(
* @param[in] id The global unique ID of the csi rx be controller. * @param[in] id The global unique ID of the csi rx be controller.
* @param[in] state Point to the register-state. * @param[in] state Point to the register-state.
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_dump_state( extern void csi_rx_be_ctrl_dump_state(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
csi_rx_be_ctrl_state_t *state); csi_rx_be_ctrl_state_t *state);
/** end of NCI */ /** end of NCI */
...@@ -89,7 +89,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_dump_state( ...@@ -89,7 +89,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_dump_state(
* *
* @return the value of the register. * @return the value of the register.
*/ */
STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_fe_ctrl_reg_load( extern hrt_data csi_rx_fe_ctrl_reg_load(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const hrt_address reg); const hrt_address reg);
/** /**
...@@ -101,7 +101,7 @@ STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_fe_ctrl_reg_load( ...@@ -101,7 +101,7 @@ STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_fe_ctrl_reg_load(
* @param[in] value The value to be stored. * @param[in] value The value to be stored.
* *
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_reg_store( extern void csi_rx_fe_ctrl_reg_store(
const csi_rx_frontend_ID_t ID, const csi_rx_frontend_ID_t ID,
const hrt_address reg, const hrt_address reg,
const hrt_data value); const hrt_data value);
...@@ -114,7 +114,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_reg_store( ...@@ -114,7 +114,7 @@ STORAGE_CLASS_CSI_RX_H void csi_rx_fe_ctrl_reg_store(
* *
* @return the value of the register. * @return the value of the register.
*/ */
STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_be_ctrl_reg_load( extern hrt_data csi_rx_be_ctrl_reg_load(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
const hrt_address reg); const hrt_address reg);
/** /**
...@@ -126,7 +126,7 @@ STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_be_ctrl_reg_load( ...@@ -126,7 +126,7 @@ STORAGE_CLASS_CSI_RX_H hrt_data csi_rx_be_ctrl_reg_load(
* @param[in] value The value to be stored. * @param[in] value The value to be stored.
* *
*/ */
STORAGE_CLASS_CSI_RX_H void csi_rx_be_ctrl_reg_store( extern void csi_rx_be_ctrl_reg_store(
const csi_rx_backend_ID_t ID, const csi_rx_backend_ID_t ID,
const hrt_address reg, const hrt_address reg,
const hrt_data value); const hrt_data value);
......
...@@ -33,7 +33,7 @@ ...@@ -33,7 +33,7 @@
\return none, GDC[ID].lut[0...3][0...HRT_GDC_N-1] = data \return none, GDC[ID].lut[0...3][0...HRT_GDC_N-1] = data
*/ */
STORAGE_CLASS_EXTERN void gdc_lut_store( extern void gdc_lut_store(
const gdc_ID_t ID, const gdc_ID_t ID,
const int data[4][HRT_GDC_N]); const int data[4][HRT_GDC_N]);
...@@ -43,7 +43,7 @@ STORAGE_CLASS_EXTERN void gdc_lut_store( ...@@ -43,7 +43,7 @@ STORAGE_CLASS_EXTERN void gdc_lut_store(
\param in_lut[in] The data matrix to be converted \param in_lut[in] The data matrix to be converted
\param out_lut[out] The data matrix as the output of conversion \param out_lut[out] The data matrix as the output of conversion
*/ */
STORAGE_CLASS_EXTERN void gdc_lut_convert_to_isp_format( extern void gdc_lut_convert_to_isp_format(
const int in_lut[4][HRT_GDC_N], const int in_lut[4][HRT_GDC_N],
int out_lut[4][HRT_GDC_N]); int out_lut[4][HRT_GDC_N]);
...@@ -53,7 +53,7 @@ STORAGE_CLASS_EXTERN void gdc_lut_convert_to_isp_format( ...@@ -53,7 +53,7 @@ STORAGE_CLASS_EXTERN void gdc_lut_convert_to_isp_format(
\return unity \return unity
*/ */
STORAGE_CLASS_EXTERN int gdc_get_unity( extern int gdc_get_unity(
const gdc_ID_t ID); const gdc_ID_t ID);
#endif /* __GDC_PUBLIC_H_INCLUDED__ */ #endif /* __GDC_PUBLIC_H_INCLUDED__ */
...@@ -27,14 +27,13 @@ ...@@ -27,14 +27,13 @@
* Prerequisites: * Prerequisites:
* *
*/ */
#include "storage_class.h"
#ifdef INLINE_ISP_OP1W #ifdef INLINE_ISP_OP1W
#define STORAGE_CLASS_ISP_OP1W_FUNC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISP_OP1W_FUNC_H static inline
#define STORAGE_CLASS_ISP_OP1W_DATA_H STORAGE_CLASS_INLINE_DATA #define STORAGE_CLASS_ISP_OP1W_DATA_H static inline_DATA
#else /* INLINE_ISP_OP1W */ #else /* INLINE_ISP_OP1W */
#define STORAGE_CLASS_ISP_OP1W_FUNC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISP_OP1W_FUNC_H extern
#define STORAGE_CLASS_ISP_OP1W_DATA_H STORAGE_CLASS_EXTERN_DATA #define STORAGE_CLASS_ISP_OP1W_DATA_H extern_DATA
#endif /* INLINE_ISP_OP1W */ #endif /* INLINE_ISP_OP1W */
/* /*
......
...@@ -27,14 +27,13 @@ ...@@ -27,14 +27,13 @@
* Prerequisites: * Prerequisites:
* *
*/ */
#include "storage_class.h"
#ifdef INLINE_ISP_OP2W #ifdef INLINE_ISP_OP2W
#define STORAGE_CLASS_ISP_OP2W_FUNC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISP_OP2W_FUNC_H static inline
#define STORAGE_CLASS_ISP_OP2W_DATA_H STORAGE_CLASS_INLINE_DATA #define STORAGE_CLASS_ISP_OP2W_DATA_H static inline_DATA
#else /* INLINE_ISP_OP2W */ #else /* INLINE_ISP_OP2W */
#define STORAGE_CLASS_ISP_OP2W_FUNC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISP_OP2W_FUNC_H extern
#define STORAGE_CLASS_ISP_OP2W_DATA_H STORAGE_CLASS_EXTERN_DATA #define STORAGE_CLASS_ISP_OP2W_DATA_H extern_DATA
#endif /* INLINE_ISP_OP2W */ #endif /* INLINE_ISP_OP2W */
/* /*
......
...@@ -24,7 +24,7 @@ ...@@ -24,7 +24,7 @@
\return none, MMU[ID].page_table_base_index = base_index \return none, MMU[ID].page_table_base_index = base_index
*/ */
STORAGE_CLASS_EXTERN void mmu_set_page_table_base_index( extern void mmu_set_page_table_base_index(
const mmu_ID_t ID, const mmu_ID_t ID,
const hrt_data base_index); const hrt_data base_index);
...@@ -35,7 +35,7 @@ STORAGE_CLASS_EXTERN void mmu_set_page_table_base_index( ...@@ -35,7 +35,7 @@ STORAGE_CLASS_EXTERN void mmu_set_page_table_base_index(
\return MMU[ID].page_table_base_index \return MMU[ID].page_table_base_index
*/ */
STORAGE_CLASS_EXTERN hrt_data mmu_get_page_table_base_index( extern hrt_data mmu_get_page_table_base_index(
const mmu_ID_t ID); const mmu_ID_t ID);
/*! Invalidate the page table cache of MMU[ID] /*! Invalidate the page table cache of MMU[ID]
...@@ -44,7 +44,7 @@ STORAGE_CLASS_EXTERN hrt_data mmu_get_page_table_base_index( ...@@ -44,7 +44,7 @@ STORAGE_CLASS_EXTERN hrt_data mmu_get_page_table_base_index(
\return none \return none
*/ */
STORAGE_CLASS_EXTERN void mmu_invalidate_cache( extern void mmu_invalidate_cache(
const mmu_ID_t ID); const mmu_ID_t ID);
...@@ -52,7 +52,7 @@ STORAGE_CLASS_EXTERN void mmu_invalidate_cache( ...@@ -52,7 +52,7 @@ STORAGE_CLASS_EXTERN void mmu_invalidate_cache(
\return none \return none
*/ */
STORAGE_CLASS_EXTERN void mmu_invalidate_cache_all(void); extern void mmu_invalidate_cache_all(void);
/*! Write to a control register of MMU[ID] /*! Write to a control register of MMU[ID]
......
...@@ -15,14 +15,13 @@ ...@@ -15,14 +15,13 @@
#ifndef _REF_VECTOR_FUNC_H_INCLUDED_ #ifndef _REF_VECTOR_FUNC_H_INCLUDED_
#define _REF_VECTOR_FUNC_H_INCLUDED_ #define _REF_VECTOR_FUNC_H_INCLUDED_
#include "storage_class.h"
#ifdef INLINE_VECTOR_FUNC #ifdef INLINE_VECTOR_FUNC
#define STORAGE_CLASS_REF_VECTOR_FUNC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_REF_VECTOR_FUNC_H static inline
#define STORAGE_CLASS_REF_VECTOR_DATA_H STORAGE_CLASS_INLINE_DATA #define STORAGE_CLASS_REF_VECTOR_DATA_H static inline_DATA
#else /* INLINE_VECTOR_FUNC */ #else /* INLINE_VECTOR_FUNC */
#define STORAGE_CLASS_REF_VECTOR_FUNC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_REF_VECTOR_FUNC_H extern
#define STORAGE_CLASS_REF_VECTOR_DATA_H STORAGE_CLASS_EXTERN_DATA #define STORAGE_CLASS_REF_VECTOR_DATA_H extern_DATA
#endif /* INLINE_VECTOR_FUNC */ #endif /* INLINE_VECTOR_FUNC */
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "ibuf_ctrl_local.h" #include "ibuf_ctrl_local.h"
#ifndef __INLINE_IBUF_CTRL__ #ifndef __INLINE_IBUF_CTRL__
#define STORAGE_CLASS_IBUF_CTRL_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_IBUF_CTRL_H extern
#define STORAGE_CLASS_IBUF_CTRL_C #define STORAGE_CLASS_IBUF_CTRL_C
#include "ibuf_ctrl_public.h" #include "ibuf_ctrl_public.h"
#else /* __INLINE_IBUF_CTRL__ */ #else /* __INLINE_IBUF_CTRL__ */
#define STORAGE_CLASS_IBUF_CTRL_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_IBUF_CTRL_H static inline
#define STORAGE_CLASS_IBUF_CTRL_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_IBUF_CTRL_C static inline
#include "ibuf_ctrl_private.h" #include "ibuf_ctrl_private.h"
#endif /* __INLINE_IBUF_CTRL__ */ #endif /* __INLINE_IBUF_CTRL__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "input_formatter_local.h" #include "input_formatter_local.h"
#ifndef __INLINE_INPUT_FORMATTER__ #ifndef __INLINE_INPUT_FORMATTER__
#define STORAGE_CLASS_INPUT_FORMATTER_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_INPUT_FORMATTER_H extern
#define STORAGE_CLASS_INPUT_FORMATTER_C #define STORAGE_CLASS_INPUT_FORMATTER_C
#include "input_formatter_public.h" #include "input_formatter_public.h"
#else /* __INLINE_INPUT_FORMATTER__ */ #else /* __INLINE_INPUT_FORMATTER__ */
#define STORAGE_CLASS_INPUT_FORMATTER_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_INPUT_FORMATTER_H static inline
#define STORAGE_CLASS_INPUT_FORMATTER_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_INPUT_FORMATTER_C static inline
#include "input_formatter_private.h" #include "input_formatter_private.h"
#endif /* __INLINE_INPUT_FORMATTER__ */ #endif /* __INLINE_INPUT_FORMATTER__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "input_system_local.h" #include "input_system_local.h"
#ifndef __INLINE_INPUT_SYSTEM__ #ifndef __INLINE_INPUT_SYSTEM__
#define STORAGE_CLASS_INPUT_SYSTEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_INPUT_SYSTEM_H extern
#define STORAGE_CLASS_INPUT_SYSTEM_C #define STORAGE_CLASS_INPUT_SYSTEM_C
#include "input_system_public.h" #include "input_system_public.h"
#else /* __INLINE_INPUT_SYSTEM__ */ #else /* __INLINE_INPUT_SYSTEM__ */
#define STORAGE_CLASS_INPUT_SYSTEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_INPUT_SYSTEM_H static inline
#define STORAGE_CLASS_INPUT_SYSTEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_INPUT_SYSTEM_C static inline
#include "input_system_private.h" #include "input_system_private.h"
#endif /* __INLINE_INPUT_SYSTEM__ */ #endif /* __INLINE_INPUT_SYSTEM__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "irq_local.h" #include "irq_local.h"
#ifndef __INLINE_IRQ__ #ifndef __INLINE_IRQ__
#define STORAGE_CLASS_IRQ_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_IRQ_H extern
#define STORAGE_CLASS_IRQ_C #define STORAGE_CLASS_IRQ_C
#include "irq_public.h" #include "irq_public.h"
#else /* __INLINE_IRQ__ */ #else /* __INLINE_IRQ__ */
#define STORAGE_CLASS_IRQ_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_IRQ_H static inline
#define STORAGE_CLASS_IRQ_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_IRQ_C static inline
#include "irq_private.h" #include "irq_private.h"
#endif /* __INLINE_IRQ__ */ #endif /* __INLINE_IRQ__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "isp_local.h" #include "isp_local.h"
#ifndef __INLINE_ISP__ #ifndef __INLINE_ISP__
#define STORAGE_CLASS_ISP_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISP_H extern
#define STORAGE_CLASS_ISP_C #define STORAGE_CLASS_ISP_C
#include "isp_public.h" #include "isp_public.h"
#else /* __INLINE_iSP__ */ #else /* __INLINE_iSP__ */
#define STORAGE_CLASS_ISP_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISP_H static inline
#define STORAGE_CLASS_ISP_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISP_C static inline
#include "isp_private.h" #include "isp_private.h"
#endif /* __INLINE_ISP__ */ #endif /* __INLINE_ISP__ */
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "isys_dma_local.h" #include "isys_dma_local.h"
#ifndef __INLINE_ISYS2401_DMA__ #ifndef __INLINE_ISYS2401_DMA__
#define STORAGE_CLASS_ISYS2401_DMA_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISYS2401_DMA_H extern
#define STORAGE_CLASS_ISYS2401_DMA_C #define STORAGE_CLASS_ISYS2401_DMA_C
#include "isys_dma_public.h" #include "isys_dma_public.h"
#else /* __INLINE_ISYS2401_DMA__ */ #else /* __INLINE_ISYS2401_DMA__ */
#define STORAGE_CLASS_ISYS2401_DMA_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISYS2401_DMA_H static inline
#define STORAGE_CLASS_ISYS2401_DMA_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISYS2401_DMA_C static inline
#include "isys_dma_private.h" #include "isys_dma_private.h"
#endif /* __INLINE_ISYS2401_DMA__ */ #endif /* __INLINE_ISYS2401_DMA__ */
......
...@@ -16,21 +16,20 @@ ...@@ -16,21 +16,20 @@
#define __IA_CSS_ISYS_IRQ_H__ #define __IA_CSS_ISYS_IRQ_H__
#include <type_support.h> #include <type_support.h>
#include <storage_class.h>
#include <system_local.h> #include <system_local.h>
#if defined(USE_INPUT_SYSTEM_VERSION_2401) #if defined(USE_INPUT_SYSTEM_VERSION_2401)
#ifndef __INLINE_ISYS2401_IRQ__ #ifndef __INLINE_ISYS2401_IRQ__
#define STORAGE_CLASS_ISYS2401_IRQ_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISYS2401_IRQ_H extern
#define STORAGE_CLASS_ISYS2401_IRQ_C STORAGE_CLASS_EXTERN #define STORAGE_CLASS_ISYS2401_IRQ_C extern
#include "isys_irq_public.h" #include "isys_irq_public.h"
#else /* __INLINE_ISYS2401_IRQ__ */ #else /* __INLINE_ISYS2401_IRQ__ */
#define STORAGE_CLASS_ISYS2401_IRQ_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISYS2401_IRQ_H static inline
#define STORAGE_CLASS_ISYS2401_IRQ_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_ISYS2401_IRQ_C static inline
#include "isys_irq_private.h" #include "isys_irq_private.h"
#endif /* __INLINE_ISYS2401_IRQ__ */ #endif /* __INLINE_ISYS2401_IRQ__ */
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "isys_stream2mmio_local.h" #include "isys_stream2mmio_local.h"
#ifndef __INLINE_STREAM2MMIO__ #ifndef __INLINE_STREAM2MMIO__
#define STORAGE_CLASS_STREAM2MMIO_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_STREAM2MMIO_H extern
#define STORAGE_CLASS_STREAM2MMIO_C #define STORAGE_CLASS_STREAM2MMIO_C
#include "isys_stream2mmio_public.h" #include "isys_stream2mmio_public.h"
#else /* __INLINE_STREAM2MMIO__ */ #else /* __INLINE_STREAM2MMIO__ */
#define STORAGE_CLASS_STREAM2MMIO_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_STREAM2MMIO_H static inline
#define STORAGE_CLASS_STREAM2MMIO_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_STREAM2MMIO_C static inline
#include "isys_stream2mmio_private.h" #include "isys_stream2mmio_private.h"
#endif /* __INLINE_STREAM2MMIO__ */ #endif /* __INLINE_STREAM2MMIO__ */
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#ifndef __MATH_SUPPORT_H #ifndef __MATH_SUPPORT_H
#define __MATH_SUPPORT_H #define __MATH_SUPPORT_H
#include "storage_class.h" /* for STORAGE_CLASS_INLINE */
#if defined(__KERNEL__) #if defined(__KERNEL__)
#include <linux/kernel.h> /* Override the definition of max/min from linux kernel*/ #include <linux/kernel.h> /* Override the definition of max/min from linux kernel*/
#endif /*__KERNEL__*/ #endif /*__KERNEL__*/
...@@ -110,60 +109,60 @@ Leaving out the other math utility functions as they are newly added ...@@ -110,60 +109,60 @@ Leaving out the other math utility functions as they are newly added
#else /* !defined(INLINE_MATH_SUPPORT_UTILS) */ #else /* !defined(INLINE_MATH_SUPPORT_UTILS) */
STORAGE_CLASS_INLINE int max(int a, int b) static inline int max(int a, int b)
{ {
return MAX(a, b); return MAX(a, b);
} }
STORAGE_CLASS_INLINE int min(int a, int b) static inline int min(int a, int b)
{ {
return MIN(a, b); return MIN(a, b);
} }
STORAGE_CLASS_INLINE unsigned int ceil_div(unsigned int a, unsigned int b) static inline unsigned int ceil_div(unsigned int a, unsigned int b)
{ {
return CEIL_DIV(a, b); return CEIL_DIV(a, b);
} }
#endif /* !defined(INLINE_MATH_SUPPORT_UTILS) */ #endif /* !defined(INLINE_MATH_SUPPORT_UTILS) */
STORAGE_CLASS_INLINE unsigned int umax(unsigned int a, unsigned int b) static inline unsigned int umax(unsigned int a, unsigned int b)
{ {
return MAX(a, b); return MAX(a, b);
} }
STORAGE_CLASS_INLINE unsigned int umin(unsigned int a, unsigned int b) static inline unsigned int umin(unsigned int a, unsigned int b)
{ {
return MIN(a, b); return MIN(a, b);
} }
STORAGE_CLASS_INLINE unsigned int ceil_mul(unsigned int a, unsigned int b) static inline unsigned int ceil_mul(unsigned int a, unsigned int b)
{ {
return CEIL_MUL(a, b); return CEIL_MUL(a, b);
} }
STORAGE_CLASS_INLINE unsigned int ceil_mul2(unsigned int a, unsigned int b) static inline unsigned int ceil_mul2(unsigned int a, unsigned int b)
{ {
return CEIL_MUL2(a, b); return CEIL_MUL2(a, b);
} }
STORAGE_CLASS_INLINE unsigned int ceil_shift(unsigned int a, unsigned int b) static inline unsigned int ceil_shift(unsigned int a, unsigned int b)
{ {
return CEIL_SHIFT(a, b); return CEIL_SHIFT(a, b);
} }
STORAGE_CLASS_INLINE unsigned int ceil_shift_mul(unsigned int a, unsigned int b) static inline unsigned int ceil_shift_mul(unsigned int a, unsigned int b)
{ {
return CEIL_SHIFT_MUL(a, b); return CEIL_SHIFT_MUL(a, b);
} }
#ifdef ISP2401 #ifdef ISP2401
STORAGE_CLASS_INLINE unsigned int round_half_down_div(unsigned int a, unsigned int b) static inline unsigned int round_half_down_div(unsigned int a, unsigned int b)
{ {
return ROUND_HALF_DOWN_DIV(a, b); return ROUND_HALF_DOWN_DIV(a, b);
} }
STORAGE_CLASS_INLINE unsigned int round_half_down_mul(unsigned int a, unsigned int b) static inline unsigned int round_half_down_mul(unsigned int a, unsigned int b)
{ {
return ROUND_HALF_DOWN_MUL(a, b); return ROUND_HALF_DOWN_MUL(a, b);
} }
...@@ -187,7 +186,7 @@ STORAGE_CLASS_INLINE unsigned int round_half_down_mul(unsigned int a, unsigned i ...@@ -187,7 +186,7 @@ STORAGE_CLASS_INLINE unsigned int round_half_down_mul(unsigned int a, unsigned i
* *
*/ */
STORAGE_CLASS_INLINE unsigned int ceil_pow2(unsigned int a) static inline unsigned int ceil_pow2(unsigned int a)
{ {
if (a == 0) { if (a == 0) {
return 1; return 1;
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "mmu_local.h" #include "mmu_local.h"
#ifndef __INLINE_MMU__ #ifndef __INLINE_MMU__
#define STORAGE_CLASS_MMU_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_MMU_H extern
#define STORAGE_CLASS_MMU_C #define STORAGE_CLASS_MMU_C
#include "mmu_public.h" #include "mmu_public.h"
#else /* __INLINE_MMU__ */ #else /* __INLINE_MMU__ */
#define STORAGE_CLASS_MMU_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_MMU_H static inline
#define STORAGE_CLASS_MMU_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_MMU_C static inline
#include "mmu_private.h" #include "mmu_private.h"
#endif /* __INLINE_MMU__ */ #endif /* __INLINE_MMU__ */
......
...@@ -15,14 +15,13 @@ ...@@ -15,14 +15,13 @@
#ifndef __MPMATH_H_INCLUDED__ #ifndef __MPMATH_H_INCLUDED__
#define __MPMATH_H_INCLUDED__ #define __MPMATH_H_INCLUDED__
#include "storage_class.h"
#ifdef INLINE_MPMATH #ifdef INLINE_MPMATH
#define STORAGE_CLASS_MPMATH_FUNC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_MPMATH_FUNC_H static inline
#define STORAGE_CLASS_MPMATH_DATA_H STORAGE_CLASS_INLINE_DATA #define STORAGE_CLASS_MPMATH_DATA_H static inline_DATA
#else /* INLINE_MPMATH */ #else /* INLINE_MPMATH */
#define STORAGE_CLASS_MPMATH_FUNC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_MPMATH_FUNC_H extern
#define STORAGE_CLASS_MPMATH_DATA_H STORAGE_CLASS_EXTERN_DATA #define STORAGE_CLASS_MPMATH_DATA_H extern_DATA
#endif /* INLINE_MPMATH */ #endif /* INLINE_MPMATH */
#include <type_support.h> #include <type_support.h>
......
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "osys_local.h" #include "osys_local.h"
#ifndef __INLINE_OSYS__ #ifndef __INLINE_OSYS__
#define STORAGE_CLASS_OSYS_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_OSYS_H extern
#define STORAGE_CLASS_OSYS_C #define STORAGE_CLASS_OSYS_C
#include "osys_public.h" #include "osys_public.h"
#else /* __INLINE_OSYS__ */ #else /* __INLINE_OSYS__ */
#define STORAGE_CLASS_OSYS_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_OSYS_H static inline
#define STORAGE_CLASS_OSYS_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_OSYS_C static inline
#include "osys_private.h" #include "osys_private.h"
#endif /* __INLINE_OSYS__ */ #endif /* __INLINE_OSYS__ */
......
...@@ -31,18 +31,17 @@ ...@@ -31,18 +31,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "pixelgen_local.h" #include "pixelgen_local.h"
#ifndef __INLINE_PIXELGEN__ #ifndef __INLINE_PIXELGEN__
#define STORAGE_CLASS_PIXELGEN_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_PIXELGEN_H extern
#define STORAGE_CLASS_PIXELGEN_C #define STORAGE_CLASS_PIXELGEN_C
#include "pixelgen_public.h" #include "pixelgen_public.h"
#else /* __INLINE_PIXELGEN__ */ #else /* __INLINE_PIXELGEN__ */
#define STORAGE_CLASS_PIXELGEN_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_PIXELGEN_H static inline
#define STORAGE_CLASS_PIXELGEN_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_PIXELGEN_C static inline
#include "pixelgen_private.h" #include "pixelgen_private.h"
#endif /* __INLINE_PIXELGEN__ */ #endif /* __INLINE_PIXELGEN__ */
......
...@@ -20,7 +20,6 @@ ...@@ -20,7 +20,6 @@
* Platform specific includes and functionality. * Platform specific includes and functionality.
*/ */
#include "storage_class.h"
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/kernel.h> #include <linux/kernel.h>
#include <linux/string.h> #include <linux/string.h>
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#ifndef __PRINT_SUPPORT_H_INCLUDED__ #ifndef __PRINT_SUPPORT_H_INCLUDED__
#define __PRINT_SUPPORT_H_INCLUDED__ #define __PRINT_SUPPORT_H_INCLUDED__
#include "storage_class.h"
#include <stdarg.h> #include <stdarg.h>
#if !defined(__KERNEL__) #if !defined(__KERNEL__)
...@@ -24,7 +23,7 @@ ...@@ -24,7 +23,7 @@
extern int (*sh_css_printf) (const char *fmt, va_list args); extern int (*sh_css_printf) (const char *fmt, va_list args);
/* depends on host supplied print function in ia_css_init() */ /* depends on host supplied print function in ia_css_init() */
STORAGE_CLASS_INLINE void ia_css_print(const char *fmt, ...) static inline void ia_css_print(const char *fmt, ...)
{ {
va_list ap; va_list ap;
if (sh_css_printf) { if (sh_css_printf) {
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* *
*/ */
#include <storage_class.h>
#include "queue_local.h" #include "queue_local.h"
#ifndef __INLINE_QUEUE__ #ifndef __INLINE_QUEUE__
#define STORAGE_CLASS_QUEUE_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_QUEUE_H extern
#define STORAGE_CLASS_QUEUE_C #define STORAGE_CLASS_QUEUE_C
/* #include "queue_public.h" */ /* #include "queue_public.h" */
#include "ia_css_queue.h" #include "ia_css_queue.h"
#else /* __INLINE_QUEUE__ */ #else /* __INLINE_QUEUE__ */
#define STORAGE_CLASS_QUEUE_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_QUEUE_H static inline
#define STORAGE_CLASS_QUEUE_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_QUEUE_C static inline
#include "queue_private.h" #include "queue_private.h"
#endif /* __INLINE_QUEUE__ */ #endif /* __INLINE_QUEUE__ */
......
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "resource_local.h" #include "resource_local.h"
#ifndef __INLINE_RESOURCE__ #ifndef __INLINE_RESOURCE__
#define STORAGE_CLASS_RESOURCE_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_RESOURCE_H extern
#define STORAGE_CLASS_RESOURCE_C #define STORAGE_CLASS_RESOURCE_C
#include "resource_public.h" #include "resource_public.h"
#else /* __INLINE_RESOURCE__ */ #else /* __INLINE_RESOURCE__ */
#define STORAGE_CLASS_RESOURCE_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_RESOURCE_H static inline
#define STORAGE_CLASS_RESOURCE_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_RESOURCE_C static inline
#include "resource_private.h" #include "resource_private.h"
#endif /* __INLINE_RESOURCE__ */ #endif /* __INLINE_RESOURCE__ */
......
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "socket_local.h" #include "socket_local.h"
#ifndef __INLINE_SOCKET__ #ifndef __INLINE_SOCKET__
#define STORAGE_CLASS_SOCKET_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_SOCKET_H extern
#define STORAGE_CLASS_SOCKET_C #define STORAGE_CLASS_SOCKET_C
#include "socket_public.h" #include "socket_public.h"
#else /* __INLINE_SOCKET__ */ #else /* __INLINE_SOCKET__ */
#define STORAGE_CLASS_SOCKET_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_SOCKET_H static inline
#define STORAGE_CLASS_SOCKET_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_SOCKET_C static inline
#include "socket_private.h" #include "socket_private.h"
#endif /* __INLINE_SOCKET__ */ #endif /* __INLINE_SOCKET__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "sp_local.h" #include "sp_local.h"
#ifndef __INLINE_SP__ #ifndef __INLINE_SP__
#define STORAGE_CLASS_SP_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_SP_H extern
#define STORAGE_CLASS_SP_C #define STORAGE_CLASS_SP_C
#include "sp_public.h" #include "sp_public.h"
#else /* __INLINE_SP__ */ #else /* __INLINE_SP__ */
#define STORAGE_CLASS_SP_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_SP_H static inline
#define STORAGE_CLASS_SP_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_SP_C static inline
#include "sp_private.h" #include "sp_private.h"
#endif /* __INLINE_SP__ */ #endif /* __INLINE_SP__ */
......
/*
* Support for Intel Camera Imaging ISP subsystem.
* Copyright (c) 2015, Intel Corporation.
*
* This program is free software; you can redistribute it and/or modify it
* under the terms and conditions of the GNU General Public License,
* version 2, as published by the Free Software Foundation.
*
* This program is distributed in the hope it will be useful, but WITHOUT
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
* more details.
*/
#ifndef __STORAGE_CLASS_H_INCLUDED__
#define __STORAGE_CLASS_H_INCLUDED__
/**
* @file
* Platform specific includes and functionality.
*/
#define STORAGE_CLASS_EXTERN extern
#if defined(_MSC_VER)
#define STORAGE_CLASS_INLINE static __inline
#else
#define STORAGE_CLASS_INLINE static inline
#endif
#define STORAGE_CLASS_EXTERN_DATA extern const
#define STORAGE_CLASS_INLINE_DATA static const
#endif /* __STORAGE_CLASS_H_INCLUDED__ */
...@@ -30,18 +30,17 @@ ...@@ -30,18 +30,17 @@
* *
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "stream_buffer_local.h" #include "stream_buffer_local.h"
#ifndef __INLINE_STREAM_BUFFER__ #ifndef __INLINE_STREAM_BUFFER__
#define STORAGE_CLASS_STREAM_BUFFER_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_STREAM_BUFFER_H extern
#define STORAGE_CLASS_STREAM_BUFFER_C #define STORAGE_CLASS_STREAM_BUFFER_C
#include "stream_buffer_public.h" #include "stream_buffer_public.h"
#else /* __INLINE_STREAM_BUFFER__ */ #else /* __INLINE_STREAM_BUFFER__ */
#define STORAGE_CLASS_STREAM_BUFFER_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_STREAM_BUFFER_H static inline
#define STORAGE_CLASS_STREAM_BUFFER_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_STREAM_BUFFER_C static inline
#include "stream_buffer_private.h" #include "stream_buffer_private.h"
#endif /* __INLINE_STREAM_BUFFER__ */ #endif /* __INLINE_STREAM_BUFFER__ */
......
...@@ -16,7 +16,6 @@ ...@@ -16,7 +16,6 @@
#define __STRING_SUPPORT_H_INCLUDED__ #define __STRING_SUPPORT_H_INCLUDED__
#include <platform_support.h> #include <platform_support.h>
#include <type_support.h> #include <type_support.h>
#include <storage_class.h>
#if !defined(_MSC_VER) #if !defined(_MSC_VER)
/* /*
...@@ -34,7 +33,7 @@ ...@@ -34,7 +33,7 @@
* @return EINVAL on Invalid arguments * @return EINVAL on Invalid arguments
* @return ERANGE on Destination size too small * @return ERANGE on Destination size too small
*/ */
STORAGE_CLASS_INLINE int memcpy_s( static inline int memcpy_s(
void* dest_buf, void* dest_buf,
size_t dest_size, size_t dest_size,
const void* src_buf, const void* src_buf,
...@@ -89,7 +88,7 @@ static size_t strnlen_s( ...@@ -89,7 +88,7 @@ static size_t strnlen_s(
* @return Returns EINVAL on invalid arguments * @return Returns EINVAL on invalid arguments
* @return Returns ERANGE on destination size too small * @return Returns ERANGE on destination size too small
*/ */
STORAGE_CLASS_INLINE int strncpy_s( static inline int strncpy_s(
char* dest_str, char* dest_str,
size_t dest_size, size_t dest_size,
const char* src_str, const char* src_str,
...@@ -130,7 +129,7 @@ STORAGE_CLASS_INLINE int strncpy_s( ...@@ -130,7 +129,7 @@ STORAGE_CLASS_INLINE int strncpy_s(
* @return Returns EINVAL on invalid arguments * @return Returns EINVAL on invalid arguments
* @return Returns ERANGE on destination size too small * @return Returns ERANGE on destination size too small
*/ */
STORAGE_CLASS_INLINE int strcpy_s( static inline int strcpy_s(
char* dest_str, char* dest_str,
size_t dest_size, size_t dest_size,
const char* src_str) const char* src_str)
......
...@@ -29,17 +29,16 @@ ...@@ -29,17 +29,16 @@
* *
*/ */
#include "storage_class.h"
#include "tag_local.h" #include "tag_local.h"
#ifndef __INLINE_TAG__ #ifndef __INLINE_TAG__
#define STORAGE_CLASS_TAG_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_TAG_H extern
#define STORAGE_CLASS_TAG_C #define STORAGE_CLASS_TAG_C
#include "tag_public.h" #include "tag_public.h"
#else /* __INLINE_TAG__ */ #else /* __INLINE_TAG__ */
#define STORAGE_CLASS_TAG_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_TAG_H static inline
#define STORAGE_CLASS_TAG_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_TAG_C static inline
#include "tag_private.h" #include "tag_private.h"
#endif /* __INLINE_TAG__ */ #endif /* __INLINE_TAG__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "timed_ctrl_local.h" #include "timed_ctrl_local.h"
#ifndef __INLINE_TIMED_CTRL__ #ifndef __INLINE_TIMED_CTRL__
#define STORAGE_CLASS_TIMED_CTRL_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_TIMED_CTRL_H extern
#define STORAGE_CLASS_TIMED_CTRL_C #define STORAGE_CLASS_TIMED_CTRL_C
#include "timed_ctrl_public.h" #include "timed_ctrl_public.h"
#else /* __INLINE_TIMED_CTRL__ */ #else /* __INLINE_TIMED_CTRL__ */
#define STORAGE_CLASS_TIMED_CTRL_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_TIMED_CTRL_H static inline
#define STORAGE_CLASS_TIMED_CTRL_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_TIMED_CTRL_C static inline
#include "timed_ctrl_private.h" #include "timed_ctrl_private.h"
#endif /* __INLINE_TIMED_CTRL__ */ #endif /* __INLINE_TIMED_CTRL__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "vamem_local.h" #include "vamem_local.h"
#ifndef __INLINE_VAMEM__ #ifndef __INLINE_VAMEM__
#define STORAGE_CLASS_VAMEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_VAMEM_H extern
#define STORAGE_CLASS_VAMEM_C #define STORAGE_CLASS_VAMEM_C
#include "vamem_public.h" #include "vamem_public.h"
#else /* __INLINE_VAMEM__ */ #else /* __INLINE_VAMEM__ */
#define STORAGE_CLASS_VAMEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_VAMEM_H static inline
#define STORAGE_CLASS_VAMEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_VAMEM_C static inline
#include "vamem_private.h" #include "vamem_private.h"
#endif /* __INLINE_VAMEM__ */ #endif /* __INLINE_VAMEM__ */
......
...@@ -15,7 +15,6 @@ ...@@ -15,7 +15,6 @@
#ifndef __VECTOR_FUNC_H_INCLUDED__ #ifndef __VECTOR_FUNC_H_INCLUDED__
#define __VECTOR_FUNC_H_INCLUDED__ #define __VECTOR_FUNC_H_INCLUDED__
#include "storage_class.h"
/* TODO: Later filters will be moved to types directory, /* TODO: Later filters will be moved to types directory,
* and we should only include matrix_MxN types */ * and we should only include matrix_MxN types */
...@@ -27,12 +26,12 @@ ...@@ -27,12 +26,12 @@
#include "vector_func_local.h" #include "vector_func_local.h"
#ifndef __INLINE_VECTOR_FUNC__ #ifndef __INLINE_VECTOR_FUNC__
#define STORAGE_CLASS_VECTOR_FUNC_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_VECTOR_FUNC_H extern
#define STORAGE_CLASS_VECTOR_FUNC_C #define STORAGE_CLASS_VECTOR_FUNC_C
#include "vector_func_public.h" #include "vector_func_public.h"
#else /* __INLINE_VECTOR_FUNC__ */ #else /* __INLINE_VECTOR_FUNC__ */
#define STORAGE_CLASS_VECTOR_FUNC_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_VECTOR_FUNC_H static inline
#define STORAGE_CLASS_VECTOR_FUNC_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_VECTOR_FUNC_C static inline
#include "vector_func_private.h" #include "vector_func_private.h"
#endif /* __INLINE_VECTOR_FUNC__ */ #endif /* __INLINE_VECTOR_FUNC__ */
......
...@@ -15,17 +15,16 @@ ...@@ -15,17 +15,16 @@
#ifndef __VECTOR_OPS_H_INCLUDED__ #ifndef __VECTOR_OPS_H_INCLUDED__
#define __VECTOR_OPS_H_INCLUDED__ #define __VECTOR_OPS_H_INCLUDED__
#include "storage_class.h"
#include "vector_ops_local.h" #include "vector_ops_local.h"
#ifndef __INLINE_VECTOR_OPS__ #ifndef __INLINE_VECTOR_OPS__
#define STORAGE_CLASS_VECTOR_OPS_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_VECTOR_OPS_H extern
#define STORAGE_CLASS_VECTOR_OPS_C #define STORAGE_CLASS_VECTOR_OPS_C
#include "vector_ops_public.h" #include "vector_ops_public.h"
#else /* __INLINE_VECTOR_OPS__ */ #else /* __INLINE_VECTOR_OPS__ */
#define STORAGE_CLASS_VECTOR_OPS_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_VECTOR_OPS_H static inline
#define STORAGE_CLASS_VECTOR_OPS_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_VECTOR_OPS_C static inline
#include "vector_ops_private.h" #include "vector_ops_private.h"
#endif /* __INLINE_VECTOR_OPS__ */ #endif /* __INLINE_VECTOR_OPS__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "vmem_local.h" #include "vmem_local.h"
#ifndef __INLINE_VMEM__ #ifndef __INLINE_VMEM__
#define STORAGE_CLASS_VMEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_VMEM_H extern
#define STORAGE_CLASS_VMEM_C #define STORAGE_CLASS_VMEM_C
#include "vmem_public.h" #include "vmem_public.h"
#else /* __INLINE_VMEM__ */ #else /* __INLINE_VMEM__ */
#define STORAGE_CLASS_VMEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_VMEM_H static inline
#define STORAGE_CLASS_VMEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_VMEM_C static inline
#include "vmem_private.h" #include "vmem_private.h"
#endif /* __INLINE_VMEM__ */ #endif /* __INLINE_VMEM__ */
......
...@@ -29,18 +29,17 @@ ...@@ -29,18 +29,17 @@
* - local: system and cell specific constants and identifiers * - local: system and cell specific constants and identifiers
*/ */
#include "storage_class.h"
#include "system_local.h" #include "system_local.h"
#include "xmem_local.h" #include "xmem_local.h"
#ifndef __INLINE_XMEM__ #ifndef __INLINE_XMEM__
#define STORAGE_CLASS_XMEM_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_XMEM_H extern
#define STORAGE_CLASS_XMEM_C #define STORAGE_CLASS_XMEM_C
#include "xmem_public.h" #include "xmem_public.h"
#else /* __INLINE_XMEM__ */ #else /* __INLINE_XMEM__ */
#define STORAGE_CLASS_XMEM_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_XMEM_H static inline
#define STORAGE_CLASS_XMEM_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_XMEM_C static inline
#include "xmem_private.h" #include "xmem_private.h"
#endif /* __INLINE_XMEM__ */ #endif /* __INLINE_XMEM__ */
......
...@@ -321,7 +321,7 @@ ia_css_s3a_dmem_decode( ...@@ -321,7 +321,7 @@ ia_css_s3a_dmem_decode(
} }
/* MW: this is an ISP function */ /* MW: this is an ISP function */
STORAGE_CLASS_INLINE int static inline int
merge_hi_lo_14(unsigned short hi, unsigned short lo) merge_hi_lo_14(unsigned short hi, unsigned short lo)
{ {
int val = (int) ((((unsigned int) hi << 14) & 0xfffc000) | int val = (int) ((((unsigned int) hi << 14) & 0xfffc000) |
......
...@@ -280,7 +280,7 @@ static ia_css_queue_t *bufq_get_qhandle( ...@@ -280,7 +280,7 @@ static ia_css_queue_t *bufq_get_qhandle(
/* Local function to initialize a buffer queue. This reduces /* Local function to initialize a buffer queue. This reduces
* the chances of copy-paste errors or typos. * the chances of copy-paste errors or typos.
*/ */
STORAGE_CLASS_INLINE void static inline void
init_bufq(unsigned int desc_offset, init_bufq(unsigned int desc_offset,
unsigned int elems_offset, unsigned int elems_offset,
ia_css_queue_t *handle) ia_css_queue_t *handle)
......
...@@ -130,7 +130,7 @@ enum ia_css_debug_enable_param_dump { ...@@ -130,7 +130,7 @@ enum ia_css_debug_enable_param_dump {
* @param[in] fmt printf like format string * @param[in] fmt printf like format string
* @param[in] args arguments for the format string * @param[in] args arguments for the format string
*/ */
STORAGE_CLASS_INLINE void static inline void
ia_css_debug_vdtrace(unsigned int level, const char *fmt, va_list args) ia_css_debug_vdtrace(unsigned int level, const char *fmt, va_list args)
{ {
if (ia_css_debug_trace_level >= level) if (ia_css_debug_trace_level >= level)
......
...@@ -105,7 +105,7 @@ static struct inputfifo_instance ...@@ -105,7 +105,7 @@ static struct inputfifo_instance
/* Streaming to MIPI */ /* Streaming to MIPI */
static unsigned inputfifo_wrap_marker( static unsigned inputfifo_wrap_marker(
/* STORAGE_CLASS_INLINE unsigned inputfifo_wrap_marker( */ /* static inline unsigned inputfifo_wrap_marker( */
unsigned marker) unsigned marker)
{ {
return marker | return marker |
...@@ -113,7 +113,7 @@ static unsigned inputfifo_wrap_marker( ...@@ -113,7 +113,7 @@ static unsigned inputfifo_wrap_marker(
(inputfifo_curr_fmt_type << _HIVE_STR_TO_MIPI_FMT_TYPE_LSB); (inputfifo_curr_fmt_type << _HIVE_STR_TO_MIPI_FMT_TYPE_LSB);
} }
STORAGE_CLASS_INLINE void static inline void
_sh_css_fifo_snd(unsigned token) _sh_css_fifo_snd(unsigned token)
{ {
while (!can_event_send_token(STR2MIPI_EVENT_ID)) while (!can_event_send_token(STR2MIPI_EVENT_ID))
...@@ -123,7 +123,7 @@ _sh_css_fifo_snd(unsigned token) ...@@ -123,7 +123,7 @@ _sh_css_fifo_snd(unsigned token)
} }
static void inputfifo_send_data_a( static void inputfifo_send_data_a(
/* STORAGE_CLASS_INLINE void inputfifo_send_data_a( */ /* static inline void inputfifo_send_data_a( */
unsigned int data) unsigned int data)
{ {
unsigned int token = (1 << HIVE_STR_TO_MIPI_VALID_A_BIT) | unsigned int token = (1 << HIVE_STR_TO_MIPI_VALID_A_BIT) |
...@@ -135,7 +135,7 @@ unsigned int data) ...@@ -135,7 +135,7 @@ unsigned int data)
static void inputfifo_send_data_b( static void inputfifo_send_data_b(
/* STORAGE_CLASS_INLINE void inputfifo_send_data_b( */ /* static inline void inputfifo_send_data_b( */
unsigned int data) unsigned int data)
{ {
unsigned int token = (1 << HIVE_STR_TO_MIPI_VALID_B_BIT) | unsigned int token = (1 << HIVE_STR_TO_MIPI_VALID_B_BIT) |
...@@ -147,7 +147,7 @@ static void inputfifo_send_data_b( ...@@ -147,7 +147,7 @@ static void inputfifo_send_data_b(
static void inputfifo_send_data( static void inputfifo_send_data(
/* STORAGE_CLASS_INLINE void inputfifo_send_data( */ /* static inline void inputfifo_send_data( */
unsigned int a, unsigned int a,
unsigned int b) unsigned int b)
{ {
...@@ -162,7 +162,7 @@ static void inputfifo_send_data( ...@@ -162,7 +162,7 @@ static void inputfifo_send_data(
static void inputfifo_send_sol(void) static void inputfifo_send_sol(void)
/* STORAGE_CLASS_INLINE void inputfifo_send_sol(void) */ /* static inline void inputfifo_send_sol(void) */
{ {
hrt_data token = inputfifo_wrap_marker( hrt_data token = inputfifo_wrap_marker(
1 << HIVE_STR_TO_MIPI_SOL_BIT); 1 << HIVE_STR_TO_MIPI_SOL_BIT);
...@@ -174,7 +174,7 @@ static void inputfifo_send_sol(void) ...@@ -174,7 +174,7 @@ static void inputfifo_send_sol(void)
static void inputfifo_send_eol(void) static void inputfifo_send_eol(void)
/* STORAGE_CLASS_INLINE void inputfifo_send_eol(void) */ /* static inline void inputfifo_send_eol(void) */
{ {
hrt_data token = inputfifo_wrap_marker( hrt_data token = inputfifo_wrap_marker(
1 << HIVE_STR_TO_MIPI_EOL_BIT); 1 << HIVE_STR_TO_MIPI_EOL_BIT);
...@@ -185,7 +185,7 @@ static void inputfifo_send_eol(void) ...@@ -185,7 +185,7 @@ static void inputfifo_send_eol(void)
static void inputfifo_send_sof(void) static void inputfifo_send_sof(void)
/* STORAGE_CLASS_INLINE void inputfifo_send_sof(void) */ /* static inline void inputfifo_send_sof(void) */
{ {
hrt_data token = inputfifo_wrap_marker( hrt_data token = inputfifo_wrap_marker(
1 << HIVE_STR_TO_MIPI_SOF_BIT); 1 << HIVE_STR_TO_MIPI_SOF_BIT);
...@@ -197,7 +197,7 @@ static void inputfifo_send_sof(void) ...@@ -197,7 +197,7 @@ static void inputfifo_send_sof(void)
static void inputfifo_send_eof(void) static void inputfifo_send_eof(void)
/* STORAGE_CLASS_INLINE void inputfifo_send_eof(void) */ /* static inline void inputfifo_send_eof(void) */
{ {
hrt_data token = inputfifo_wrap_marker( hrt_data token = inputfifo_wrap_marker(
1 << HIVE_STR_TO_MIPI_EOF_BIT); 1 << HIVE_STR_TO_MIPI_EOF_BIT);
...@@ -209,7 +209,7 @@ static void inputfifo_send_eof(void) ...@@ -209,7 +209,7 @@ static void inputfifo_send_eof(void)
#ifdef __ON__ #ifdef __ON__
static void inputfifo_send_ch_id( static void inputfifo_send_ch_id(
/* STORAGE_CLASS_INLINE void inputfifo_send_ch_id( */ /* static inline void inputfifo_send_ch_id( */
unsigned int ch_id) unsigned int ch_id)
{ {
hrt_data token; hrt_data token;
...@@ -223,7 +223,7 @@ static void inputfifo_send_ch_id( ...@@ -223,7 +223,7 @@ static void inputfifo_send_ch_id(
} }
static void inputfifo_send_fmt_type( static void inputfifo_send_fmt_type(
/* STORAGE_CLASS_INLINE void inputfifo_send_fmt_type( */ /* static inline void inputfifo_send_fmt_type( */
unsigned int fmt_type) unsigned int fmt_type)
{ {
hrt_data token; hrt_data token;
...@@ -240,7 +240,7 @@ static void inputfifo_send_fmt_type( ...@@ -240,7 +240,7 @@ static void inputfifo_send_fmt_type(
static void inputfifo_send_ch_id_and_fmt_type( static void inputfifo_send_ch_id_and_fmt_type(
/* STORAGE_CLASS_INLINE /* static inline
void inputfifo_send_ch_id_and_fmt_type( */ void inputfifo_send_ch_id_and_fmt_type( */
unsigned int ch_id, unsigned int ch_id,
unsigned int fmt_type) unsigned int fmt_type)
...@@ -259,7 +259,7 @@ void inputfifo_send_ch_id_and_fmt_type( */ ...@@ -259,7 +259,7 @@ void inputfifo_send_ch_id_and_fmt_type( */
static void inputfifo_send_empty_token(void) static void inputfifo_send_empty_token(void)
/* STORAGE_CLASS_INLINE void inputfifo_send_empty_token(void) */ /* static inline void inputfifo_send_empty_token(void) */
{ {
hrt_data token = inputfifo_wrap_marker(0); hrt_data token = inputfifo_wrap_marker(0);
_sh_css_fifo_snd(token); _sh_css_fifo_snd(token);
...@@ -269,7 +269,7 @@ static void inputfifo_send_empty_token(void) ...@@ -269,7 +269,7 @@ static void inputfifo_send_empty_token(void)
static void inputfifo_start_frame( static void inputfifo_start_frame(
/* STORAGE_CLASS_INLINE void inputfifo_start_frame( */ /* static inline void inputfifo_start_frame( */
unsigned int ch_id, unsigned int ch_id,
unsigned int fmt_type) unsigned int fmt_type)
{ {
......
...@@ -31,15 +31,14 @@ more details. ...@@ -31,15 +31,14 @@ more details.
#ifndef _IA_CSS_RMGR_H #ifndef _IA_CSS_RMGR_H
#define _IA_CSS_RMGR_H #define _IA_CSS_RMGR_H
#include "storage_class.h"
#include <ia_css_err.h> #include <ia_css_err.h>
#ifndef __INLINE_RMGR__ #ifndef __INLINE_RMGR__
#define STORAGE_CLASS_RMGR_H STORAGE_CLASS_EXTERN #define STORAGE_CLASS_RMGR_H extern
#define STORAGE_CLASS_RMGR_C #define STORAGE_CLASS_RMGR_C
#else /* __INLINE_RMGR__ */ #else /* __INLINE_RMGR__ */
#define STORAGE_CLASS_RMGR_H STORAGE_CLASS_INLINE #define STORAGE_CLASS_RMGR_H static inline
#define STORAGE_CLASS_RMGR_C STORAGE_CLASS_INLINE #define STORAGE_CLASS_RMGR_C static inline
#endif /* __INLINE_RMGR__ */ #endif /* __INLINE_RMGR__ */
/** /**
......
...@@ -961,7 +961,7 @@ struct host_sp_queues { ...@@ -961,7 +961,7 @@ struct host_sp_queues {
extern int (*sh_css_printf)(const char *fmt, va_list args); extern int (*sh_css_printf)(const char *fmt, va_list args);
STORAGE_CLASS_INLINE void static inline void
sh_css_print(const char *fmt, ...) sh_css_print(const char *fmt, ...)
{ {
va_list ap; va_list ap;
...@@ -973,7 +973,7 @@ sh_css_print(const char *fmt, ...) ...@@ -973,7 +973,7 @@ sh_css_print(const char *fmt, ...)
} }
} }
STORAGE_CLASS_INLINE void static inline void
sh_css_vprint(const char *fmt, va_list args) sh_css_vprint(const char *fmt, va_list args)
{ {
if (sh_css_printf) if (sh_css_printf)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment