brintos

brintos / linux-shallow public Read only

0
0
Text · 715 B · c71ab5f Raw
33 lines · c
1/* SPDX-License-Identifier: GPL-2.0+ */2/*3 * vsp1_uif.h  --  R-Car VSP1 User Logic Interface4 *5 * Copyright (C) 2017-2018 Laurent Pinchart6 *7 * Contact: Laurent Pinchart (laurent.pinchart@ideasonboard.com)8 */9#ifndef __VSP1_UIF_H__10#define __VSP1_UIF_H__11 12#include "vsp1_entity.h"13 14struct vsp1_device;15 16#define UIF_PAD_SINK				017#define UIF_PAD_SOURCE				118 19struct vsp1_uif {20	struct vsp1_entity entity;21	bool m3w_quirk;22};23 24static inline struct vsp1_uif *to_uif(struct v4l2_subdev *subdev)25{26	return container_of(subdev, struct vsp1_uif, entity.subdev);27}28 29struct vsp1_uif *vsp1_uif_create(struct vsp1_device *vsp1, unsigned int index);30u32 vsp1_uif_get_crc(struct vsp1_uif *uif);31 32#endif /* __VSP1_UIF_H__ */33