Du kannst nicht mehr als 25 Themen auswählen Themen müssen mit entweder einem Buchstaben oder einer Ziffer beginnen. Sie können Bindestriche („-“) enthalten und bis zu 35 Zeichen lang sein.

cdc.h 897B

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