1*16c8d5e7SWolfgang Denk /* 2*16c8d5e7SWolfgang Denk * (C) Copyright 2006 3*16c8d5e7SWolfgang Denk * Bryan O'Donoghue, deckard@codehermit.ie, CodeHermit 4*16c8d5e7SWolfgang Denk * 5*16c8d5e7SWolfgang Denk * This program is free software; you can redistribute it and/or modify 6*16c8d5e7SWolfgang Denk * it under the terms of the GNU General Public License as published by 7*16c8d5e7SWolfgang Denk * the Free Software Foundation; either version 2 of the License, or 8*16c8d5e7SWolfgang Denk * (at your option) any later version. 9*16c8d5e7SWolfgang Denk * 10*16c8d5e7SWolfgang Denk * This program is distributed in the hope that it will be useful, 11*16c8d5e7SWolfgang Denk * but WITHOUT ANY WARRANTY; without even the implied warranty of 12*16c8d5e7SWolfgang Denk * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 13*16c8d5e7SWolfgang Denk * GNU General Public License for more details. 14*16c8d5e7SWolfgang Denk * 15*16c8d5e7SWolfgang Denk * You should have received a copy of the GNU General Public License 16*16c8d5e7SWolfgang Denk * along with this program; if not, write to the Free Software 17*16c8d5e7SWolfgang Denk * Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. 18*16c8d5e7SWolfgang Denk * 19*16c8d5e7SWolfgang Denk */ 20*16c8d5e7SWolfgang Denk 21*16c8d5e7SWolfgang Denk /* ACM Control Requests */ 22*16c8d5e7SWolfgang Denk #define ACM_SEND_ENCAPSULATED_COMMAND 0x00 23*16c8d5e7SWolfgang Denk #define ACM_GET_ENCAPSULATED_RESPONSE 0x01 24*16c8d5e7SWolfgang Denk #define ACM_SET_COMM_FEATURE 0x02 25*16c8d5e7SWolfgang Denk #define ACM_GET_COMM_FEATRUE 0x03 26*16c8d5e7SWolfgang Denk #define ACM_CLEAR_COMM_FEATURE 0x04 27*16c8d5e7SWolfgang Denk #define ACM_SET_LINE_ENCODING 0x20 28*16c8d5e7SWolfgang Denk #define ACM_GET_LINE_ENCODING 0x21 29*16c8d5e7SWolfgang Denk #define ACM_SET_CONTROL_LINE_STATE 0x22 30*16c8d5e7SWolfgang Denk #define ACM_SEND_BREAK 0x23 31*16c8d5e7SWolfgang Denk 32*16c8d5e7SWolfgang Denk /* ACM Notification Codes */ 33*16c8d5e7SWolfgang Denk #define ACM_NETWORK_CONNECTION 0x00 34*16c8d5e7SWolfgang Denk #define ACM_RESPONSE_AVAILABLE 0x01 35*16c8d5e7SWolfgang Denk #define ACM_SERIAL_STATE 0x20 36*16c8d5e7SWolfgang Denk 37*16c8d5e7SWolfgang Denk /* Format of response expected by a ACM_GET_LINE_ENCODING request */ 38*16c8d5e7SWolfgang Denk struct rs232_emu{ 39*16c8d5e7SWolfgang Denk unsigned long dter; 40*16c8d5e7SWolfgang Denk unsigned char stop_bits; 41*16c8d5e7SWolfgang Denk unsigned char parity; 42*16c8d5e7SWolfgang Denk unsigned char data_bits; 43*16c8d5e7SWolfgang Denk }__attribute__((packed)); 44