cuda.h 613 B

1234567891011121314151617181920212223
  1. /* 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. #include <linux/rtc.h>
  11. #include <uapi/linux/cuda.h>
  12. extern int find_via_cuda(void);
  13. extern int cuda_request(struct adb_request *req,
  14. void (*done)(struct adb_request *), int nbytes, ...);
  15. extern void cuda_poll(void);
  16. extern time64_t cuda_get_time(void);
  17. extern int cuda_set_rtc_time(struct rtc_time *tm);
  18. #endif /* _LINUX_CUDA_H */