162306a36Sopenharmony_ci/* SPDX-License-Identifier: GPL-2.0 */ 262306a36Sopenharmony_ci/* 362306a36Sopenharmony_ci * The Virtual DVB test driver serves as a reference DVB driver and helps 462306a36Sopenharmony_ci * validate the existing APIs in the media subsystem. It can also aid 562306a36Sopenharmony_ci * developers working on userspace applications. 662306a36Sopenharmony_ci * 762306a36Sopenharmony_ci * Copyright (C) 2020 Daniel W. S. Almeida 862306a36Sopenharmony_ci */ 962306a36Sopenharmony_ci 1062306a36Sopenharmony_ci#ifndef VIDTV_COMMON_H 1162306a36Sopenharmony_ci#define VIDTV_COMMON_H 1262306a36Sopenharmony_ci 1362306a36Sopenharmony_ci#include <linux/types.h> 1462306a36Sopenharmony_ci 1562306a36Sopenharmony_ci#define CLOCK_UNIT_90KHZ 90000 1662306a36Sopenharmony_ci#define CLOCK_UNIT_27MHZ 27000000 1762306a36Sopenharmony_ci#define VIDTV_SLEEP_USECS 10000 1862306a36Sopenharmony_ci#define VIDTV_MAX_SLEEP_USECS (2 * VIDTV_SLEEP_USECS) 1962306a36Sopenharmony_ci 2062306a36Sopenharmony_ciu32 vidtv_memcpy(void *to, 2162306a36Sopenharmony_ci size_t to_offset, 2262306a36Sopenharmony_ci size_t to_size, 2362306a36Sopenharmony_ci const void *from, 2462306a36Sopenharmony_ci size_t len); 2562306a36Sopenharmony_ci 2662306a36Sopenharmony_ciu32 vidtv_memset(void *to, 2762306a36Sopenharmony_ci size_t to_offset, 2862306a36Sopenharmony_ci size_t to_size, 2962306a36Sopenharmony_ci int c, 3062306a36Sopenharmony_ci size_t len); 3162306a36Sopenharmony_ci 3262306a36Sopenharmony_ci#endif // VIDTV_COMMON_H 33