1*6f52b16cSGreg Kroah-Hartman /* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */ 2607ca46eSDavid Howells /* 3607ca46eSDavid Howells * Definitions for talking to the CUDA. The CUDA is a microcontroller 4607ca46eSDavid Howells * which controls the ADB, system power, RTC, and various other things. 5607ca46eSDavid Howells * 6607ca46eSDavid Howells * Copyright (C) 1996 Paul Mackerras. 7607ca46eSDavid Howells */ 8607ca46eSDavid Howells 9607ca46eSDavid Howells #ifndef _UAPI_LINUX_CUDA_H 10607ca46eSDavid Howells #define _UAPI_LINUX_CUDA_H 11607ca46eSDavid Howells 12607ca46eSDavid Howells /* CUDA commands (2nd byte) */ 13607ca46eSDavid Howells #define CUDA_WARM_START 0 14607ca46eSDavid Howells #define CUDA_AUTOPOLL 1 15607ca46eSDavid Howells #define CUDA_GET_6805_ADDR 2 16607ca46eSDavid Howells #define CUDA_GET_TIME 3 17607ca46eSDavid Howells #define CUDA_GET_PRAM 7 18607ca46eSDavid Howells #define CUDA_SET_6805_ADDR 8 19607ca46eSDavid Howells #define CUDA_SET_TIME 9 20607ca46eSDavid Howells #define CUDA_POWERDOWN 0xa 21607ca46eSDavid Howells #define CUDA_POWERUP_TIME 0xb 22607ca46eSDavid Howells #define CUDA_SET_PRAM 0xc 23607ca46eSDavid Howells #define CUDA_MS_RESET 0xd 24607ca46eSDavid Howells #define CUDA_SEND_DFAC 0xe 25607ca46eSDavid Howells #define CUDA_RESET_SYSTEM 0x11 26607ca46eSDavid Howells #define CUDA_SET_IPL 0x12 27607ca46eSDavid Howells #define CUDA_SET_AUTO_RATE 0x14 28607ca46eSDavid Howells #define CUDA_GET_AUTO_RATE 0x16 29607ca46eSDavid Howells #define CUDA_SET_DEVICE_LIST 0x19 30607ca46eSDavid Howells #define CUDA_GET_DEVICE_LIST 0x1a 31607ca46eSDavid Howells #define CUDA_GET_SET_IIC 0x22 32607ca46eSDavid Howells 33607ca46eSDavid Howells 34607ca46eSDavid Howells #endif /* _UAPI_LINUX_CUDA_H */ 35