1 /* SPDX-License-Identifier: GPL-2.0 */
2 /*
3  * The Virtual DVB test driver serves as a reference DVB driver and helps
4  * validate the existing APIs in the media subsystem. It can also aid
5  * developers working on userspace applications.
6  *
7  * Copyright (C) 2020 Daniel W. S. Almeida
8  */
9 
10 #ifndef VIDTV_COMMON_H
11 #define VIDTV_COMMON_H
12 
13 #include <linux/types.h>
14 
15 #define CLOCK_UNIT_90KHZ 90000
16 #define CLOCK_UNIT_27MHZ 27000000
17 #define VIDTV_SLEEP_USECS 10000
18 #define VIDTV_MAX_SLEEP_USECS (2 * VIDTV_SLEEP_USECS)
19 
20 u32 vidtv_memcpy(void *to,
21 		 size_t to_offset,
22 		 size_t to_size,
23 		 const void *from,
24 		 size_t len);
25 
26 u32 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_H
33