Commit | Line | Data |
---|---|---|
b2441318 | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
1da177e4 LT |
2 | /* |
3 | * Definitions for talking to the CUDA. The CUDA is a microcontroller | |
4 | * which controls the ADB, system power, RTC, and various other things. | |
5 | * | |
6 | * Copyright (C) 1996 Paul Mackerras. | |
7 | */ | |
fde28451 DH |
8 | #ifndef _LINUX_CUDA_H |
9 | #define _LINUX_CUDA_H | |
10 | ||
0792a2c8 | 11 | #include <linux/rtc.h> |
607ca46e | 12 | #include <uapi/linux/cuda.h> |
1da177e4 | 13 | |
1da177e4 | 14 | |
7da1d1dd | 15 | extern int __init find_via_cuda(void); |
1da177e4 LT |
16 | extern int cuda_request(struct adb_request *req, |
17 | void (*done)(struct adb_request *), int nbytes, ...); | |
18 | extern void cuda_poll(void); | |
19 | ||
0792a2c8 FT |
20 | extern time64_t cuda_get_time(void); |
21 | extern int cuda_set_rtc_time(struct rtc_time *tm); | |
22 | ||
fde28451 | 23 | #endif /* _LINUX_CUDA_H */ |