/* SPDX-License-Identifier: GPL-2.0 */1/*2* ADB through the IOP3* Written by Joshua M. Thompson4*/56/* IOP number and channel number for ADB */78#define ADB_IOP IOP_NUM_ISM9#define ADB_CHAN 21011/* From the A/UX headers...maybe important, maybe not */1213#define ADB_IOP_LISTEN 0x0114#define ADB_IOP_TALK 0x0215#define ADB_IOP_EXISTS 0x0416#define ADB_IOP_FLUSH 0x0817#define ADB_IOP_RESET 0x1018#define ADB_IOP_INT 0x2019#define ADB_IOP_POLL 0x4020#define ADB_IOP_UNINT 0x802122#define AIF_RESET 0x0023#define AIF_FLUSH 0x0124#define AIF_LISTEN 0x0825#define AIF_TALK 0x0C2627/* Flag bits in struct adb_iopmsg */2829#define ADB_IOP_EXPLICIT 0x80 /* nonzero if explicit command */30#define ADB_IOP_AUTOPOLL 0x40 /* auto/SRQ polling enabled */31#define ADB_IOP_SET_AUTOPOLL 0x20 /* set autopoll device list */32#define ADB_IOP_SRQ 0x04 /* SRQ detected */33#define ADB_IOP_TIMEOUT 0x02 /* nonzero if timeout */3435#ifndef __ASSEMBLER__3637struct adb_iopmsg {38__u8 flags; /* ADB flags */39__u8 count; /* no. of data bytes */40__u8 cmd; /* ADB command */41__u8 data[8]; /* ADB data */42__u8 spare[21]; /* spare */43};4445#endif /* __ASSEMBLER__ */464748