33 lines · c
1/* SPDX-License-Identifier: GPL-2.0 */2/*3 * The Virtual DVB test driver serves as a reference DVB driver and helps4 * validate the existing APIs in the media subsystem. It can also aid5 * developers working on userspace applications.6 *7 * Copyright (C) 2020 Daniel W. S. Almeida8 */9 10#ifndef VIDTV_COMMON_H11#define VIDTV_COMMON_H12 13#include <linux/types.h>14 15#define CLOCK_UNIT_90KHZ 9000016#define CLOCK_UNIT_27MHZ 2700000017#define VIDTV_SLEEP_USECS 1000018#define VIDTV_MAX_SLEEP_USECS (2 * VIDTV_SLEEP_USECS)19 20u32 vidtv_memcpy(void *to,21 size_t to_offset,22 size_t to_size,23 const void *from,24 size_t len);25 26u32 vidtv_memset(void *to,27 size_t to_offset,28 size_t to_size,29 int c,30 size_t len);31 32#endif // VIDTV_COMMON_H33