blob: 2eec598a985a9fd834d4802f367dd856d5a4e6d0 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
|
#ifndef _IPXE_CDC_H
#define _IPXE_CDC_H
/** @file
*
* USB Communications Device Class (CDC)
*
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <ipxe/usb.h>
/** Class code for communications devices */
#define USB_CLASS_CDC 2
/** Ethernet descriptor subtype */
#define CDC_SUBTYPE_ETHERNET 15
/** Network connection notification */
#define CDC_NETWORK_CONNECTION \
( USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE | \
USB_REQUEST_TYPE ( 0x00 ) )
/** Connection speed change notification */
#define CDC_CONNECTION_SPEED_CHANGE \
( USB_DIR_IN | USB_TYPE_CLASS | USB_RECIP_INTERFACE | \
USB_REQUEST_TYPE ( 0x2a ) )
/** Connection speed change notification */
struct cdc_connection_speed_change {
/** Downlink bit rate, in bits per second */
uint32_t down;
/** Uplink bit rate, in bits per second */
uint32_t up;
} __attribute__ (( packed ));
#endif /* _IPXE_CDC_H */
|