summaryrefslogtreecommitdiff
path: root/src/class/net
diff options
context:
space:
mode:
authornminaylov <[email protected]>2026-04-27 14:40:18 +0300
committernminaylov <[email protected]>2026-04-27 14:40:18 +0300
commit2cdd98104ece869f3a5eda3dd9c2b02f5b4c318d (patch)
tree5efbb41a0ef7cdf60bd049a4f95a1e4543fa1a64 /src/class/net
parent0649b18b2e8b2e76b38f6280796ba48a51882eac (diff)
NCM caps enum
Diffstat (limited to 'src/class/net')
-rw-r--r--src/class/net/ncm_device.c3
-rw-r--r--src/class/net/net_device.h10
2 files changed, 11 insertions, 2 deletions
diff --git a/src/class/net/ncm_device.c b/src/class/net/ncm_device.c
index a1ad9b205..83e8bffab 100644
--- a/src/class/net/ncm_device.c
+++ b/src/class/net/ncm_device.c
@@ -999,8 +999,7 @@ bool netd_control_xfer_cb(uint8_t rhport, uint8_t stage, tusb_control_request_t
case NCM_SET_ETHERNET_PACKET_FILTER: {
tud_control_xfer(rhport, request, NULL, 0);
- } break;
-
+ } break;
// unsupported request
default:
diff --git a/src/class/net/net_device.h b/src/class/net/net_device.h
index 96c03fd61..61ff6b2d6 100644
--- a/src/class/net/net_device.h
+++ b/src/class/net/net_device.h
@@ -50,6 +50,16 @@ typedef enum
NCM_DATA_PROTOCOL_NETWORK_TRANSFER_BLOCK = 0x01
} ncm_data_interface_protocol_code_t;
+// Table 5.2 bmNetworkCapabilities bits
+typedef enum {
+ NCM_NETWORK_CAPS_NONE = 0x00,
+ NCM_NETWORK_CAPS_ETH_FILTER = (1 << 0),
+ NCM_NETWORK_CAPS_NET_ADDRESS = (1 << 1),
+ NCM_NETWORK_CAPS_ENCAP_COMMAND = (1 << 2),
+ NCM_NETWORK_CAPS_MAX_DATAGRAM_SIZE = (1 << 3),
+ NCM_NETWORK_CAPS_CRC_MODE = (1 << 4),
+ NCM_NETWORK_CAPS_NTB_INPUT_SIZE = (1 << 5)
+} ncm_network_capabilities_t;
#ifdef __cplusplus
extern "C" {