blob: 45bfe9d61271ce6e918203d685ab88292d752d9d [file] [log] [blame]
Andrew Scullb4b6d4a2019-01-02 15:54:55 +00001/* SPDX-License-Identifier: GPL-2.0 */
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 */
8#ifndef _LINUX_CUDA_H
9#define _LINUX_CUDA_H
10
David Brazdil0f672f62019-12-10 10:32:29 +000011#include <linux/rtc.h>
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000012#include <uapi/linux/cuda.h>
13
14
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
David Brazdil0f672f62019-12-10 10:32:29 +000020extern time64_t cuda_get_time(void);
21extern int cuda_set_rtc_time(struct rtc_time *tm);
22
Andrew Scullb4b6d4a2019-01-02 15:54:55 +000023#endif /* _LINUX_CUDA_H */