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