xref: /OK3568_Linux_fs/kernel/include/linux/cuda.h (revision 4882a59341e53eb6f0b4789bf948001014eff981)
1*4882a593Smuzhiyun /* SPDX-License-Identifier: GPL-2.0 */
2*4882a593Smuzhiyun /*
3*4882a593Smuzhiyun  * Definitions for talking to the CUDA.  The CUDA is a microcontroller
4*4882a593Smuzhiyun  * which controls the ADB, system power, RTC, and various other things.
5*4882a593Smuzhiyun  *
6*4882a593Smuzhiyun  * Copyright (C) 1996 Paul Mackerras.
7*4882a593Smuzhiyun  */
8*4882a593Smuzhiyun #ifndef _LINUX_CUDA_H
9*4882a593Smuzhiyun #define _LINUX_CUDA_H
10*4882a593Smuzhiyun 
11*4882a593Smuzhiyun #include <linux/rtc.h>
12*4882a593Smuzhiyun #include <uapi/linux/cuda.h>
13*4882a593Smuzhiyun 
14*4882a593Smuzhiyun 
15*4882a593Smuzhiyun extern int find_via_cuda(void);
16*4882a593Smuzhiyun extern int cuda_request(struct adb_request *req,
17*4882a593Smuzhiyun 			void (*done)(struct adb_request *), int nbytes, ...);
18*4882a593Smuzhiyun extern void cuda_poll(void);
19*4882a593Smuzhiyun 
20*4882a593Smuzhiyun extern time64_t cuda_get_time(void);
21*4882a593Smuzhiyun extern int cuda_set_rtc_time(struct rtc_time *tm);
22*4882a593Smuzhiyun 
23*4882a593Smuzhiyun #endif /* _LINUX_CUDA_H */
24