Skip to content

Commit 54660f6

Browse files
authored
Merge pull request #217 from ayedm1/fix_typo
fix typo ALIGNMENT -> ALIGNMENT
2 parents d21112a + 4ea0880 commit 54660f6

File tree

3 files changed

+89
-89
lines changed

3 files changed

+89
-89
lines changed

common/usbx_device_classes/inc/ux_device_class_cdc_ecm.h

Lines changed: 38 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,42 +1,42 @@
11
/***************************************************************************
2-
* Copyright (c) 2024 Microsoft Corporation
3-
*
2+
* Copyright (c) 2024 Microsoft Corporation
3+
*
44
* This program and the accompanying materials are made available under the
55
* terms of the MIT License which is available at
66
* https://opensource.org/licenses/MIT.
7-
*
7+
*
88
* SPDX-License-Identifier: MIT
99
**************************************************************************/
1010

1111
/**************************************************************************/
1212
/**************************************************************************/
13-
/** */
14-
/** USBX Component */
13+
/** */
14+
/** USBX Component */
1515
/** */
1616
/** CDC_ECM Class */
1717
/** */
1818
/**************************************************************************/
1919
/**************************************************************************/
2020

21-
/**************************************************************************/
22-
/* */
23-
/* COMPONENT DEFINITION RELEASE */
24-
/* */
25-
/* ux_device_class_cdc_ecm.h PORTABLE C */
21+
/**************************************************************************/
22+
/* */
23+
/* COMPONENT DEFINITION RELEASE */
24+
/* */
25+
/* ux_device_class_cdc_ecm.h PORTABLE C */
2626
/* 6.3.0 */
2727
/* AUTHOR */
2828
/* */
2929
/* Chaoqiong Xiao, Microsoft Corporation */
3030
/* */
3131
/* DESCRIPTION */
32-
/* */
33-
/* This file defines the equivalences for the USBX Device Class */
34-
/* CDC_ECM component. */
35-
/* */
36-
/* RELEASE HISTORY */
37-
/* */
38-
/* DATE NAME DESCRIPTION */
39-
/* */
32+
/* */
33+
/* This file defines the equivalences for the USBX Device Class */
34+
/* CDC_ECM component. */
35+
/* */
36+
/* RELEASE HISTORY */
37+
/* */
38+
/* DATE NAME DESCRIPTION */
39+
/* */
4040
/* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */
4141
/* 09-30-2020 Chaoqiong Xiao Modified comment(s), */
4242
/* used UX prefix to refer to */
@@ -65,15 +65,15 @@
6565
#ifndef UX_DEVICE_CLASS_CDC_ECM_H
6666
#define UX_DEVICE_CLASS_CDC_ECM_H
6767

68-
/* Determine if a C++ compiler is being used. If so, ensure that standard
69-
C is used to process the API information. */
68+
/* Determine if a C++ compiler is being used. If so, ensure that standard
69+
C is used to process the API information. */
7070

71-
#ifdef __cplusplus
71+
#ifdef __cplusplus
7272

73-
/* Yes, C++ compiler is present. Use standard C. */
74-
extern "C" {
73+
/* Yes, C++ compiler is present. Use standard C. */
74+
extern "C" {
7575

76-
#endif
76+
#endif
7777

7878
#if !defined(UX_DEVICE_STANDALONE)
7979
#include "nx_api.h"
@@ -142,10 +142,10 @@ VOID _ux_network_driver_link_down(VOID *ux_network_handle);
142142
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_IP 0x0800
143143
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_ARP 0x0806
144144
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_RARP 0x8035
145-
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_PACKET_SIZE 1536
145+
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_PACKET_SIZE 1536
146146
#define UX_DEVICE_CLASS_CDC_ECM_NX_ALIGN_PADDING 2
147147
#ifndef UX_DEVICE_CLASS_CDC_ECM_NX_PKPOOL_ENTRIES
148-
#define UX_DEVICE_CLASS_CDC_ECM_NX_PKPOOL_ENTRIES 16
148+
#define UX_DEVICE_CLASS_CDC_ECM_NX_PKPOOL_ENTRIES 16
149149
#endif
150150

151151
#define UX_DEVICE_CLASS_CDC_ECM_NX_PACKET_SIZE sizeof(NX_PACKET)
@@ -174,10 +174,10 @@ VOID _ux_network_driver_link_down(VOID *ux_network_handle);
174174
#define UX_DEVICE_CLASS_CDC_ECM_NX_ETHERNET_POOL_ALLOCSIZE (UX_DEVICE_CLASS_CDC_ECM_NX_PKPOOL_ENTRIES * UX_DEVICE_CLASS_CDC_ECM_NX_BUFF_SIZE + 32)
175175

176176
#define UX_DEVICE_CLASS_CDC_ECM_ETHERNET_SIZE 14
177-
#define UX_DEVICE_CLASS_CDC_ECM_NODE_ID_LENGTH 6
178-
#define UX_DEVICE_CLASS_CDC_ECM_VENDOR_DESCRIPTION_MAX_LENGTH 64
177+
#define UX_DEVICE_CLASS_CDC_ECM_NODE_ID_LENGTH 6
178+
#define UX_DEVICE_CLASS_CDC_ECM_VENDOR_DESCRIPTION_MAX_LENGTH 64
179179
#define UX_DEVICE_CLASS_CDC_ECM_MAC_OPTIONS 8
180-
#define UX_DEVICE_CLASS_CDC_ECM_PACKET_HEADER_MSG 1
180+
#define UX_DEVICE_CLASS_CDC_ECM_PACKET_HEADER_MSG 1
181181

182182
/* Device CDC_ECM Requests */
183183
#define UX_DEVICE_CLASS_CDC_ECM_SEND_ENCAPSULATED_COMMAND 0x00
@@ -202,7 +202,7 @@ VOID _ux_network_driver_link_down(VOID *ux_network_handle);
202202
/* Define CDC_ECM Packet size and types supported. */
203203
#define UX_DEVICE_CLASS_CDC_ECM_MAX_PACKET_PER_TRANSFER 0x00000001
204204
#define UX_DEVICE_CLASS_CDC_ECM_MAX_PACKET_TRANSFER_SIZE 0x00000640
205-
#define UX_DEVICE_CLASS_CDC_ECM_PACKET_ALIGNEMENT_FACTOR 0x00000003
205+
#define UX_DEVICE_CLASS_CDC_ECM_PACKET_ALIGNMENT_FACTOR 0x00000003
206206
#define UX_DEVICE_CLASS_CDC_ECM_MAX_FRAME_SIZE 0x000005DC
207207
#define UX_DEVICE_CLASS_CDC_ECM_MAX_PACKET_LENGTH 0x000005EA
208208

@@ -381,7 +381,7 @@ typedef struct UX_SLAVE_CLASS_CDC_ECM_STRUCT
381381

382382
ULONG ux_slave_class_cdc_ecm_link_state;
383383
VOID *ux_slave_class_cdc_ecm_network_handle;
384-
384+
385385
} UX_SLAVE_CLASS_CDC_ECM;
386386

387387
/* Define CDC ECM endpoint buffer settings (when CDC ECM owns buffer). */
@@ -403,14 +403,14 @@ typedef struct UX_SLAVE_CLASS_CDC_ECM_STRUCT
403403

404404
/* Requests - Ethernet Networking Control Model */
405405

406-
#define UX_DEVICE_CLASS_CDC_ECM_SEND_ENCAPSULATED_COMMAND 0x00
406+
#define UX_DEVICE_CLASS_CDC_ECM_SEND_ENCAPSULATED_COMMAND 0x00
407407
/* Issues a command in the format of the supported control
408408
protocol. The intent of this mechanism is to support
409409
networking devices (e.g., host-based cable modems)
410410
that require an additional vendor-defined interface for
411411
media specific hardware configuration and
412412
management. */
413-
#define UX_DEVICE_CLASS_CDC_ECM_GET_ENCAPSULATED_RESPONSE 0x01
413+
#define UX_DEVICE_CLASS_CDC_ECM_GET_ENCAPSULATED_RESPONSE 0x01
414414
/* Requests a response in the format of the supported
415415
control protocol. */
416416

@@ -438,13 +438,13 @@ VOID _ux_device_class_cdc_ecm_interrupt_thread(ULONG cdc_ecm_class);
438438
/* Define Device CDC Class API prototypes. */
439439

440440
#define ux_device_class_cdc_ecm_entry _ux_device_class_cdc_ecm_entry
441-
#define ux_device_class_cdc_ecm_read _ux_device_class_cdc_ecm_read
441+
#define ux_device_class_cdc_ecm_read _ux_device_class_cdc_ecm_read
442442
#define ux_device_class_cdc_ecm_write _ux_device_class_cdc_ecm_write
443443

444-
/* Determine if a C++ compiler is being used. If so, complete the standard
445-
C conditional started above. */
444+
/* Determine if a C++ compiler is being used. If so, complete the standard
445+
C conditional started above. */
446446
#ifdef __cplusplus
447-
}
448-
#endif
447+
}
448+
#endif
449449

450450
#endif /* UX_DEVICE_CLASS_CDC_ECM_H */

common/usbx_device_classes/inc/ux_device_class_rndis.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ VOID _ux_network_driver_link_down(VOID *ux_network_handle);
201201
/* Define RNDIS Packet size and types supported. */
202202
#define UX_DEVICE_CLASS_RNDIS_MAX_PACKET_PER_TRANSFER 0x00000001
203203
#define UX_DEVICE_CLASS_RNDIS_MAX_PACKET_TRANSFER_SIZE 0x00000640
204-
#define UX_DEVICE_CLASS_RNDIS_PACKET_ALIGNEMENT_FACTOR 0x00000003
204+
#define UX_DEVICE_CLASS_RNDIS_PACKET_ALIGNMENT_FACTOR 0x00000003
205205
#define UX_DEVICE_CLASS_RNDIS_MAX_FRAME_SIZE 0x000005DC
206206
#define UX_DEVICE_CLASS_RNDIS_MAX_PACKET_LENGTH 0x000005EA
207207

0 commit comments

Comments
 (0)