1*83d290c5STom Rini /* SPDX-License-Identifier: GPL-2.0+ */ 216c8d5e7SWolfgang Denk /* 316c8d5e7SWolfgang Denk * (C) Copyright 2006 416c8d5e7SWolfgang Denk * Bryan O'Donoghue, deckard@codehermit.ie, CodeHermit 516c8d5e7SWolfgang Denk */ 616c8d5e7SWolfgang Denk 716c8d5e7SWolfgang Denk /* ACM Control Requests */ 816c8d5e7SWolfgang Denk #define ACM_SEND_ENCAPSULATED_COMMAND 0x00 916c8d5e7SWolfgang Denk #define ACM_GET_ENCAPSULATED_RESPONSE 0x01 1016c8d5e7SWolfgang Denk #define ACM_SET_COMM_FEATURE 0x02 1116c8d5e7SWolfgang Denk #define ACM_GET_COMM_FEATRUE 0x03 1216c8d5e7SWolfgang Denk #define ACM_CLEAR_COMM_FEATURE 0x04 1316c8d5e7SWolfgang Denk #define ACM_SET_LINE_ENCODING 0x20 1416c8d5e7SWolfgang Denk #define ACM_GET_LINE_ENCODING 0x21 1516c8d5e7SWolfgang Denk #define ACM_SET_CONTROL_LINE_STATE 0x22 1616c8d5e7SWolfgang Denk #define ACM_SEND_BREAK 0x23 1716c8d5e7SWolfgang Denk 1816c8d5e7SWolfgang Denk /* ACM Notification Codes */ 1916c8d5e7SWolfgang Denk #define ACM_NETWORK_CONNECTION 0x00 2016c8d5e7SWolfgang Denk #define ACM_RESPONSE_AVAILABLE 0x01 2116c8d5e7SWolfgang Denk #define ACM_SERIAL_STATE 0x20 2216c8d5e7SWolfgang Denk 2316c8d5e7SWolfgang Denk /* Format of response expected by a ACM_GET_LINE_ENCODING request */ 2416c8d5e7SWolfgang Denk struct rs232_emu{ 2516c8d5e7SWolfgang Denk unsigned long dter; 2616c8d5e7SWolfgang Denk unsigned char stop_bits; 2716c8d5e7SWolfgang Denk unsigned char parity; 2816c8d5e7SWolfgang Denk unsigned char data_bits; 2916c8d5e7SWolfgang Denk }__attribute__((packed)); 30