mirror of
https://github.com/hardkernel/kernel_common_drivers.git
synced 2026-06-25 12:03:48 +09:00
15656eb157
PD#SWPL-77521 Problem: porting media driver from kernel 5.4 Solution: porting media driver from kernel 5.4 Verify: s4d and C2 AF400 Change-Id: I63bb8316e271db8b7d0e6e524399ebde9a1456a6 Signed-off-by: wanwei.jiang <wanwei.jiang@amlogic.com>
29 lines
877 B
C
29 lines
877 B
C
/* SPDX-License-Identifier: (GPL-2.0+ OR MIT) */
|
|
/*
|
|
* drivers/amlogic/media/video_processor/video_dev/common/vfp-queue.h
|
|
*
|
|
* Copyright (C) 2017 Amlogic, Inc. 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 as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* 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 __VFP_QUEUE_H__
|
|
#define __VFP_QUEUE_H__
|
|
#include "vfp.h"
|
|
|
|
static inline bool vfq_full(struct vfq_s *q)
|
|
{
|
|
bool ret = (((q->wp + 1) % q->size) == q->rp);
|
|
return ret;
|
|
}
|
|
#endif
|