mirror of
https://github.com/deadw00d/AROS.git
synced 2026-03-16 13:31:20 +00:00
add definitions for CDC EEM/NCM hardware.
This commit is contained in:
10
compiler/include/hardware/cdc/cdc_eem.h
Normal file
10
compiler/include/hardware/cdc/cdc_eem.h
Normal file
@ -0,0 +1,10 @@
|
||||
#ifndef HARDWARE_CDC_EEM_H
|
||||
#define HARDWARE_CDC_EEM_H
|
||||
|
||||
#include <exec/types.h>
|
||||
|
||||
#define CDC_EEM_HDR_TYPE_COMMAND 0x8000
|
||||
#define CDC_EEM_HDR_CRC 0x4000
|
||||
#define CDC_EEM_HDR_LEN_MASK 0x3fff
|
||||
|
||||
#endif
|
||||
53
compiler/include/hardware/cdc/cdc_ncm.h
Normal file
53
compiler/include/hardware/cdc/cdc_ncm.h
Normal file
@ -0,0 +1,53 @@
|
||||
#ifndef HARDWARE_CDC_NCM_H
|
||||
#define HARDWARE_CDC_NCM_H
|
||||
|
||||
#include <exec/types.h>
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# pragma pack(1)
|
||||
#endif
|
||||
|
||||
#define CDC_NCM_FUNC_DESC_SUBTYPE 0x1a
|
||||
|
||||
#define CDC_NCM_NTH16_SIGNATURE 0x484d434eUL /* "NCMH" */
|
||||
#define CDC_NCM_NDP16_SIGNATURE_NCM0 0x304d434eUL /* "NCM0" */
|
||||
#define CDC_NCM_NDP16_SIGNATURE_NCM1 0x314d434eUL /* "NCM1" */
|
||||
|
||||
struct UsbCDCNcmFunctionalDesc
|
||||
{
|
||||
UBYTE bFunctionLength;
|
||||
UBYTE bDescriptorType;
|
||||
UBYTE bDescriptorSubtype;
|
||||
UWORD bcdNcmVersion;
|
||||
UWORD wMaxSegmentSize;
|
||||
UWORD wNumberMCFilters;
|
||||
UBYTE bNumberPowerFilters;
|
||||
};
|
||||
|
||||
struct UsbCDCNcmNtb16Header
|
||||
{
|
||||
ULONG dwSignature;
|
||||
UWORD wHeaderLength;
|
||||
UWORD wSequence;
|
||||
UWORD wBlockLength;
|
||||
UWORD wNdpIndex;
|
||||
};
|
||||
|
||||
struct UsbCDCNcmNdp16
|
||||
{
|
||||
ULONG dwSignature;
|
||||
UWORD wLength;
|
||||
UWORD wNextNdpIndex;
|
||||
};
|
||||
|
||||
struct UsbCDCNcmDatagramPointer16
|
||||
{
|
||||
UWORD wDatagramIndex;
|
||||
UWORD wDatagramLength;
|
||||
};
|
||||
|
||||
#if defined(__GNUC__)
|
||||
# pragma pack()
|
||||
#endif
|
||||
|
||||
#endif
|
||||
@ -33,6 +33,7 @@ INCSUBDIRS := aros \
|
||||
gadgets \
|
||||
graphics \
|
||||
hardware \
|
||||
hardware/cdc \
|
||||
hardware/cpu \
|
||||
hardware/efi \
|
||||
hardware/pic \
|
||||
|
||||
Reference in New Issue
Block a user