ibmpc_usb: Add 'protocol change detection'

for better keybaord hotswap support
This commit is contained in:
tmk 2020-05-12 21:59:02 +09:00
parent d987783c1a
commit c6a6049bc8
2 changed files with 22 additions and 14 deletions

View file

@ -71,10 +71,11 @@ POSSIBILITY OF SUCH DAMAGE.
#define IBMPC_SET_LED 0xED
#define IBMPC_PROTOCOL_NO 0
#define IBMPC_PROTOCOL_AT 1
#define IBMPC_PROTOCOL_XT_IBM 2
#define IBMPC_PROTOCOL_XT_CLONE 3
#define IBMPC_PROTOCOL_XT_ERROR 4
#define IBMPC_PROTOCOL_AT 0x10
#define IBMPC_PROTOCOL_XT 0x20
#define IBMPC_PROTOCOL_XT_IBM 0x21
#define IBMPC_PROTOCOL_XT_CLONE 0x22
#define IBMPC_PROTOCOL_XT_ERROR 0x23
// Error numbers
#define IBMPC_ERR_NONE 0