linux/drivers/staging/media/atomisp/include/linux/atomisp_platform.h

/* SPDX-License-Identifier: GPL-2.0 */
/*
 * Support for Medifield PNW Camera Imaging ISP subsystem.
 *
 * Copyright (c) 2010 Intel Corporation. All Rights Reserved.
 *
 * This program is free software; you can redistribute it and/or
 * modify it under the terms of the GNU General Public License version
 * 2 as published by the Free Software Foundation.
 *
 * This program is distributed in the hope that 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 ATOMISP_PLATFORM_H_
#define ATOMISP_PLATFORM_H_

#include <asm/cpu_device_id.h>
#include <asm/processor.h>

#include <linux/i2c.h>
#include <media/v4l2-subdev.h>
#include "atomisp.h"

#define MAX_SENSORS_PER_PORT
#define MAX_STREAMS_PER_CHANNEL

#define CAMERA_MODULE_ID_LEN

enum atomisp_bayer_order {};

enum atomisp_input_stream_id {};

enum atomisp_input_format {};

#define N_ATOMISP_INPUT_FORMAT

struct intel_v4l2_subdev_table {};

/*
 *  Sensor of external ISP can send multiple steams with different mipi data
 * type in the same virtual channel. This information needs to come from the
 * sensor or external ISP
 */
struct atomisp_isys_config_info {};

struct atomisp_input_stream_info {};

struct camera_sensor_platform_data {};

struct camera_mipi_info {};

const struct intel_v4l2_subdev_table *atomisp_platform_get_subdevs(void);
int atomisp_register_sensor_no_gmin(struct v4l2_subdev *subdev, u32 lanes,
				    enum atomisp_input_format format,
				    enum atomisp_bayer_order bayer_order);
void atomisp_unregister_subdev(struct v4l2_subdev *subdev);

int v4l2_get_acpi_sensor_info(struct device *dev, char **module_id_str);

/* API from old platform_camera.h, new CPUID implementation */
#define __IS_SOC(x)
#define __IS_SOCS(x, y)

#define IS_MFLD
#define IS_BYT
#define IS_CHT
#define IS_MRFD
#define IS_MOFD

/* Both CHT and MOFD come with ISP2401 */
#define IS_ISP2401

#endif /* ATOMISP_PLATFORM_H_ */