1
0
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:
Kalamatee
2026-01-31 10:53:11 +00:00
committed by deadwood
parent f05d9a9303
commit 117985ec9a
3 changed files with 64 additions and 0 deletions

View 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

View 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

View File

@ -33,6 +33,7 @@ INCSUBDIRS := aros \
gadgets \
graphics \
hardware \
hardware/cdc \
hardware/cpu \
hardware/efi \
hardware/pic \