blob: 45bfe9d61271ce6e918203d685ab88292d752d9d [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001/* SPDX-License-Identifier: GPL-2.0 */
Linus Torvalds1da177e2005-04-16 15:20:36 -07002/*
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 Howellsfde28452011-12-13 09:26:45 +00008#ifndef _LINUX_CUDA_H
9#define _LINUX_CUDA_H
10
Finn Thain0792a2c2018-09-11 20:18:44 -040011#include <linux/rtc.h>
David Howells607ca462012-10-13 10:46:48 +010012#include <uapi/linux/cuda.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070013
Linus Torvalds1da177e2005-04-16 15:20:36 -070014
15extern int find_via_cuda(void);
16extern int cuda_request(struct adb_request *req,
17 void (*done)(struct adb_request *), int nbytes, ...);
18extern void cuda_poll(void);
19
Finn Thain0792a2c2018-09-11 20:18:44 -040020extern time64_t cuda_get_time(void);
21extern int cuda_set_rtc_time(struct rtc_time *tm);
22
David Howellsfde28452011-12-13 09:26:45 +000023#endif /* _LINUX_CUDA_H */