linux/include/uapi/linux/adb.h

/* SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note */
/*
 * Definitions for ADB (Apple Desktop Bus) support.
 */
#ifndef _UAPI__ADB_H
#define _UAPI__ADB_H

/* ADB commands */
#define ADB_BUSRESET
#define ADB_FLUSH(id)
#define ADB_WRITEREG(id, reg)
#define ADB_READREG(id, reg)

/* ADB default device IDs (upper 4 bits of ADB command byte) */
#define ADB_DONGLE
#define ADB_KEYBOARD
#define ADB_MOUSE
#define ADB_TABLET
#define ADB_MODEM
#define ADB_MISC

#define ADB_RET_OK
#define ADB_RET_TIMEOUT

/* The kind of ADB request. The controller may emulate some
   or all of those CUDA/PMU packet kinds */
#define ADB_PACKET
#define CUDA_PACKET
#define ERROR_PACKET
#define TIMER_PACKET
#define POWER_PACKET
#define MACIIC_PACKET
#define PMU_PACKET
#define ADB_QUERY

/* ADB queries */

/* ADB_QUERY_GETDEVINFO
 * Query ADB slot for device presence
 * data[2] = id, rep[0] = orig addr, rep[1] = handler_id
 */
#define ADB_QUERY_GETDEVINFO


#endif /* _UAPI__ADB_H */