2017-11-01 15:07:57 +01:00
|
|
|
/* SPDX-License-Identifier: GPL-2.0 */
|
2005-04-16 15:20:36 -07:00
|
|
|
/*
|
|
|
|
|
* Definitions for talking to the CUDA. The CUDA is a microcontroller
|
|
|
|
|
* which controls the ADB, system power, RTC, and various other things.
|
|
|
|
|
*
|
|
|
|
|
* Copyright (C) 1996 Paul Mackerras.
|
|
|
|
|
*/
|
2011-12-13 09:26:45 +00:00
|
|
|
#ifndef _LINUX_CUDA_H
|
|
|
|
|
#define _LINUX_CUDA_H
|
|
|
|
|
|
2018-09-11 20:18:44 -04:00
|
|
|
#include <linux/rtc.h>
|
2012-10-13 10:46:48 +01:00
|
|
|
#include <uapi/linux/cuda.h>
|
2005-04-16 15:20:36 -07:00
|
|
|
|
|
|
|
|
|
2021-12-16 17:00:35 -05:00
|
|
|
extern int __init find_via_cuda(void);
|
2005-04-16 15:20:36 -07:00
|
|
|
extern int cuda_request(struct adb_request *req,
|
|
|
|
|
void (*done)(struct adb_request *), int nbytes, ...);
|
|
|
|
|
extern void cuda_poll(void);
|
|
|
|
|
|
2018-09-11 20:18:44 -04:00
|
|
|
extern time64_t cuda_get_time(void);
|
|
|
|
|
extern int cuda_set_rtc_time(struct rtc_time *tm);
|
|
|
|
|
|
2011-12-13 09:26:45 +00:00
|
|
|
#endif /* _LINUX_CUDA_H */
|