Back to home page

OSCL-LXR

 
 

    


0001 /* SPDX-License-Identifier: GPL-2.0 */
0002 /*
0003  * Definitions for talking to the CUDA.  The CUDA is a microcontroller
0004  * which controls the ADB, system power, RTC, and various other things.
0005  *
0006  * Copyright (C) 1996 Paul Mackerras.
0007  */
0008 #ifndef _LINUX_CUDA_H
0009 #define _LINUX_CUDA_H
0010 
0011 #include <linux/rtc.h>
0012 #include <uapi/linux/cuda.h>
0013 
0014 
0015 extern int __init find_via_cuda(void);
0016 extern int cuda_request(struct adb_request *req,
0017             void (*done)(struct adb_request *), int nbytes, ...);
0018 extern void cuda_poll(void);
0019 
0020 extern time64_t cuda_get_time(void);
0021 extern int cuda_set_rtc_time(struct rtc_time *tm);
0022 
0023 #endif /* _LINUX_CUDA_H */