Commit c6552aeb authored by Mauro Carvalho Chehab's avatar Mauro Carvalho Chehab
Browse files

media: atomisp: get rid of __ISP define tests



This is not defined anywhere, so just get rid of the dead
source code.

Signed-off-by: default avatarMauro Carvalho Chehab <mchehab+huawei@kernel.org>
parent e3292f80
Loading
Loading
Loading
Loading
+0 −36
Original line number Diff line number Diff line
/*
 * Support for Intel Camera Imaging ISP subsystem.
 * Copyright (c) 2010-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 __VAMEM_PRIVATE_H_INCLUDED__
#define __VAMEM_PRIVATE_H_INCLUDED__

#include "vamem_public.h"

#include <hrt/api.h>

#include "assert_support.h"

STORAGE_CLASS_ISP_C void isp_vamem_store(
    const vamem_ID_t	ID,
    vamem_data_t		*addr,
    const vamem_data_t	*data,
    const size_t		size) /* in vamem_data_t */
{
	assert(ID < N_VAMEM_ID);
	assert(ISP_VAMEM_BASE[ID] != (hrt_address) - 1);
	hrt_master_port_store(ISP_VAMEM_BASE[ID] + (unsigned int)addr, data,
			      size * sizeof(vamem_data_t));
}

#endif /* __VAMEM_PRIVATE_H_INCLUDED__ */
+0 −9
Original line number Diff line number Diff line
@@ -31,15 +31,6 @@

#include "system_local.h"
#include "vamem_local.h"

#ifndef __INLINE_VAMEM__
#define STORAGE_CLASS_VAMEM_H extern
#define STORAGE_CLASS_VAMEM_C
#include "vamem_public.h"
#else  /* __INLINE_VAMEM__ */
#define STORAGE_CLASS_VAMEM_H static inline
#define STORAGE_CLASS_VAMEM_C static inline
#include "vamem_private.h"
#endif /* __INLINE_VAMEM__ */

#endif /* __VAMEM_H_INCLUDED__ */
+1 −3
Original line number Diff line number Diff line
@@ -355,7 +355,7 @@ struct ia_css_sp_info {
   issue with the firmware struct/union's.
   More permanent solution will be to refactor this include.
*/
#if !defined(__ISP)

/* Accelerator firmware information.
 */
struct ia_css_acc_info {
@@ -468,8 +468,6 @@ struct ia_css_acc_fw {
#define IA_CSS_EXT_ISP_MEM_OFFSETS(f) \
	((const struct ia_css_memory_offsets *)((const char *)(f) + (f)->blob.mem_offsets))

#endif /* !defined(__ISP) */

enum ia_css_sp_sleep_mode {
	SP_DISABLE_SLEEP_MODE = 0,
	SP_SLEEP_AFTER_FRAME = 1 << 0,
+1 −3
Original line number Diff line number Diff line
@@ -47,7 +47,7 @@ enum ia_css_buffer_type {
};

/* Driver API is not SP/ISP visible, 64 bit types not supported on hivecc */
#if !defined(__ISP)

/* Buffer structure. This is a container structure that enables content
 *  independent buffer queues and access functions.
 */
@@ -82,6 +82,4 @@ struct ia_css_buffer {
void
ia_css_dequeue_param_buffers(void);

#endif /* !__ISP */

#endif /* __IA_CSS_BUFFER_H */
+0 −23
Original line number Diff line number Diff line
@@ -33,28 +33,5 @@ more details.

/* The input buffer should be on a fixed address in vmem, for continuous capture */
#define INPUT_BUF_ADDR 0x0
#if (defined(__ISP) && (!defined(MODE) || MODE != IA_CSS_BINARY_MODE_COPY))

#if ENABLE_CONTINUOUS
typedef struct {
	tmemvectoru
	raw[INPUT_BUF_HEIGHT][INPUT_BUF_LINES][MAX_VECTORS_PER_INPUT_LINE_CONT]; /* 2 bayer lines */
	/* Two more lines for SP raw copy efficiency */
#ifndef ENABLE_REDUCED_INPUT_BUFFER
	/* "Workaround" solution in the case that space needed vmem exceeds the size of the vmem. */
	/* Since in theory this buffer is not needed for IPU 2.2/2.3,  */
	/* the workaround solution will not be needed (and the whole buffer) after the code refactoring. */
	tmemvectoru
	_raw[INPUT_BUF_HEIGHT][INPUT_BUF_LINES][MAX_VECTORS_PER_INPUT_LINE_CONT]; /* 2 bayer lines */
#endif
} input_line_type;
#else /* ENABLE CONTINUOUS == 0 */
typedef struct {
	tmemvectoru
	raw[INPUT_BUF_HEIGHT][INPUT_BUF_LINES][MAX_VECTORS_PER_INPUT_LINE]; /* 2 bayer lines */
} input_line_type;
#endif /* ENABLE_CONTINUOUS */

#endif /*MODE*/

#endif /* _INPUT_BUF_ISP_H_ */
Loading