Greg Kroah-Hartman | b244131 | 2017-11-01 15:07:57 +0100 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0 */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 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 | */ |
David Howells | fde2845 | 2011-12-13 09:26:45 +0000 | [diff] [blame] | 8 | #ifndef _LINUX_CUDA_H |
| 9 | #define _LINUX_CUDA_H |
| 10 | |
Finn Thain | 0792a2c | 2018-09-11 20:18:44 -0400 | [diff] [blame] | 11 | #include <linux/rtc.h> |
David Howells | 607ca46 | 2012-10-13 10:46:48 +0100 | [diff] [blame] | 12 | #include <uapi/linux/cuda.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
| 15 | extern int find_via_cuda(void); |
| 16 | extern int cuda_request(struct adb_request *req, |
| 17 | void (*done)(struct adb_request *), int nbytes, ...); |
| 18 | extern void cuda_poll(void); |
| 19 | |
Finn Thain | 0792a2c | 2018-09-11 20:18:44 -0400 | [diff] [blame] | 20 | extern time64_t cuda_get_time(void); |
| 21 | extern int cuda_set_rtc_time(struct rtc_time *tm); |
| 22 | |
David Howells | fde2845 | 2011-12-13 09:26:45 +0000 | [diff] [blame] | 23 | #endif /* _LINUX_CUDA_H */ |