/** * enum ps2_disposition - indicates how received byte should be handled * @PS2_PROCESS: pass to the main protocol handler, process normally * @PS2_IGNORE: skip the byte * @PS2_ERROR: do not process the byte, abort command in progress
*/ enum ps2_disposition {
PS2_PROCESS,
PS2_IGNORE,
PS2_ERROR,
};
/** * struct ps2dev - represents a device using PS/2 protocol * @serio: a serio port used by the PS/2 device * @cmd_mutex: a mutex ensuring that only one command is executing at a time * @wait: a waitqueue used to signal completion from the serio interrupt handler * @flags: various internal flags indicating stages of PS/2 command execution * @cmdbuf: buffer holding command response * @cmdcnt: outstanding number of bytes of the command response * @nak: a byte transmitted by the device when it refuses command * @pre_receive_handler: checks communication errors and returns disposition * (&enum ps2_disposition) of the received data byte * @receive_handler: main handler of particular PS/2 protocol, such as keyboard * or mouse protocol
*/ struct ps2dev { struct serio *serio; struct mutex cmd_mutex;
wait_queue_head_t wait; unsignedlong flags;
u8 cmdbuf[8];
u8 cmdcnt;
u8 nak;
Die Informationen auf dieser Webseite wurden
nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit,
noch Qualität der bereit gestellten Informationen zugesichert.
Bemerkung:
Die farbliche Syntaxdarstellung ist noch experimentell.