#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_AT_Z150 0x11
+#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
#define IBMPC_ERR_TIMEOUT 0x20
#define IBMPC_ERR_FULL 0x40
#define IBMPC_ERR_ILLEGAL 0x80
-#define IBMPC_ERR_FF 0xFF
+#define IBMPC_ERR_FF 0xF0
#define IBMPC_LED_SCROLL_LOCK 0
#define IBMPC_LED_NUM_LOCK 1