summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMAY <[email protected]>2026-01-13 23:59:09 +0100
committerMAY <[email protected]>2026-01-14 00:01:46 +0100
commit00cbafec958f8f8d574550b876b32f01283e2b27 (patch)
treefc5b080ba45dff4639d0bf234137af565c8a0eef
parent03eccbdb59a8ccd9d9afb02df3cd21a814837193 (diff)
Fix CI build issue
- Issue due to "fix (host/storage): prevent stack overflow from infinite partition recursion" commit Fix - Add missing UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT in some ux_port.h
-rw-r--r--ports/arm9/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_a15/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_a5x/ac6/inc/ux_port.h60
-rw-r--r--ports/cortex_a8/iar/inc/ux_port.h40
-rw-r--r--ports/cortex_a9/gnu/inc/ux_port.h40
-rw-r--r--ports/cortex_a9/iar/inc/ux_port.h40
-rw-r--r--ports/cortex_m0/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_m0/iar/inc/ux_port.h44
-rw-r--r--ports/cortex_m3/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_m3/iar/inc/ux_port.h45
-rw-r--r--ports/cortex_m33/gnu/inc/ux_port.h4
-rw-r--r--ports/cortex_m33/iar/inc/ux_port.h4
-rw-r--r--ports/cortex_r4/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_r4/iar/inc/ux_port.h44
-rw-r--r--ports/cortex_r5/gnu/inc/ux_port.h44
-rw-r--r--ports/cortex_r5/iar/inc/ux_port.h44
-rw-r--r--ports/generic/inc/ux_port.h46
-rw-r--r--ports/linux/gnu/inc/ux_port.h44
18 files changed, 389 insertions, 330 deletions
diff --git a/ports/arm9/gnu/inc/ux_port.h b/ports/arm9/gnu/inc/ux_port.h
index 6c1324c..7a8e2b3 100644
--- a/ports/arm9/gnu/inc/ux_port.h
+++ b/ports/arm9/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h ARM9/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h ARM9/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -210,6 +210,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -251,7 +255,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX ARM9/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_a15/gnu/inc/ux_port.h b/ports/cortex_a15/gnu/inc/ux_port.h
index 90c4f07..42bf33c 100644
--- a/ports/cortex_a15/gnu/inc/ux_port.h
+++ b/ports/cortex_a15/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-A15/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-A15/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -210,6 +210,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -247,7 +251,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-A15/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_a5x/ac6/inc/ux_port.h b/ports/cortex_a5x/ac6/inc/ux_port.h
index c6c7868..e2c6506 100644
--- a/ports/cortex_a5x/ac6/inc/ux_port.h
+++ b/ports/cortex_a5x/ac6/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,26 +20,26 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-A5x/AC6 */
-/* 6.3.0 */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-A5x/AC6 */
+/* 6.3.0 */
+/* */
+/* AUTHOR */
+/* */
+/* TCRG, Express Logic, Inc. */
+/* */
+/* DESCRIPTION */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
/* */
-/* AUTHOR */
-/* */
-/* TCRG, Express Logic, Inc. */
-/* */
-/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -49,8 +49,8 @@
/* added basic types guards, */
/* improved SLONG typedef, */
/* resulting in version 6.3.0 */
-/* */
-/**************************************************************************/
+/* */
+/**************************************************************************/
#ifndef UX_PORT_H
#define UX_PORT_H
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -206,6 +206,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
/* Define the extension to hold the control block for 64-bit mode. */
#define UX_THREAD_EXTENSION_PTR_SET(a, b) { \
TX_THREAD *thread_ptr; \
@@ -271,7 +275,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-A5x/AC6 Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_a8/iar/inc/ux_port.h b/ports/cortex_a8/iar/inc/ux_port.h
index 5e580f6..c7def07 100644
--- a/ports/cortex_a8/iar/inc/ux_port.h
+++ b/ports/cortex_a8/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-A8/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-A8/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -258,7 +258,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-A8/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_a9/gnu/inc/ux_port.h b/ports/cortex_a9/gnu/inc/ux_port.h
index 4515b3b..382cefa 100644
--- a/ports/cortex_a9/gnu/inc/ux_port.h
+++ b/ports/cortex_a9/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h ARM9/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h ARM9/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -258,7 +258,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX ARM9/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_a9/iar/inc/ux_port.h b/ports/cortex_a9/iar/inc/ux_port.h
index 5c9e2f2..bd423fd 100644
--- a/ports/cortex_a9/iar/inc/ux_port.h
+++ b/ports/cortex_a9/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h ARM9/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h ARM9/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -258,7 +258,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX ARM9/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_m0/gnu/inc/ux_port.h b/ports/cortex_m0/gnu/inc/ux_port.h
index 9c7438e..01aaf74 100644
--- a/ports/cortex_m0/gnu/inc/ux_port.h
+++ b/ports/cortex_m0/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-M0/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-M0/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */
/* 09-30-2020 Chaoqiong Xiao Modified comment(s), */
/* resulting in version 6.1 */
@@ -63,7 +63,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -215,6 +215,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -252,7 +256,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-M0/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_m0/iar/inc/ux_port.h b/ports/cortex_m0/iar/inc/ux_port.h
index 31e9118..08d87b1 100644
--- a/ports/cortex_m0/iar/inc/ux_port.h
+++ b/ports/cortex_m0/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-M0/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-M0/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -213,6 +213,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -254,7 +258,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-M0/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_m3/gnu/inc/ux_port.h b/ports/cortex_m3/gnu/inc/ux_port.h
index a3460be..42983ea 100644
--- a/ports/cortex_m3/gnu/inc/ux_port.h
+++ b/ports/cortex_m3/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-M3/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-M3/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 05-19-2020 Chaoqiong Xiao Initial Version 6.0 */
/* 09-30-2020 Chaoqiong Xiao Modified comment(s), */
/* resulting in version 6.1 */
@@ -63,7 +63,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -215,6 +215,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -252,7 +256,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-M3/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_m3/iar/inc/ux_port.h b/ports/cortex_m3/iar/inc/ux_port.h
index bd2929a..2f63f25 100644
--- a/ports/cortex_m3/iar/inc/ux_port.h
+++ b/ports/cortex_m3/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-M3/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-M3/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -208,11 +208,14 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_CONTROL_MAX_LENGTH 256
#endif
-
#ifndef UX_SLAVE_REQUEST_DATA_MAX_LENGTH
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -254,7 +257,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-M3/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_m33/gnu/inc/ux_port.h b/ports/cortex_m33/gnu/inc/ux_port.h
index 4785f60..06f73b0 100644
--- a/ports/cortex_m33/gnu/inc/ux_port.h
+++ b/ports/cortex_m33/gnu/inc/ux_port.h
@@ -215,6 +215,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
diff --git a/ports/cortex_m33/iar/inc/ux_port.h b/ports/cortex_m33/iar/inc/ux_port.h
index 2c95986..9213474 100644
--- a/ports/cortex_m33/iar/inc/ux_port.h
+++ b/ports/cortex_m33/iar/inc/ux_port.h
@@ -213,6 +213,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 2048
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
diff --git a/ports/cortex_r4/gnu/inc/ux_port.h b/ports/cortex_r4/gnu/inc/ux_port.h
index 47b999a..f5657ae 100644
--- a/ports/cortex_r4/gnu/inc/ux_port.h
+++ b/ports/cortex_r4/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-R4/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-R4/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -217,6 +217,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -254,7 +258,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-R4/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_r4/iar/inc/ux_port.h b/ports/cortex_r4/iar/inc/ux_port.h
index 6b18f7b..ecefdd7 100644
--- a/ports/cortex_r4/iar/inc/ux_port.h
+++ b/ports/cortex_r4/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-R4/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-R4/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -217,6 +217,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -258,7 +262,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-R4/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_r5/gnu/inc/ux_port.h b/ports/cortex_r5/gnu/inc/ux_port.h
index 19385d5..b72baa3 100644
--- a/ports/cortex_r5/gnu/inc/ux_port.h
+++ b/ports/cortex_r5/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-R5/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-R5/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -217,6 +217,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -258,7 +262,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-R5/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/cortex_r5/iar/inc/ux_port.h b/ports/cortex_r5/iar/inc/ux_port.h
index 29b7619..42a5022 100644
--- a/ports/cortex_r5/iar/inc/ux_port.h
+++ b/ports/cortex_r5/iar/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Cortex-R5/IAR */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Cortex-R5/IAR */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 09-30-2020 Chaoqiong Xiao Initial Version 6.1 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -217,6 +217,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -258,7 +262,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Cortex-R5/IAR Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/generic/inc/ux_port.h b/ports/generic/inc/ux_port.h
index ab036ac..c95dfcd 100644
--- a/ports/generic/inc/ux_port.h
+++ b/ports/generic/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Generic */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Generic */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 12-31-2020 Chaoqiong Xiao Initial Version 6.1.3 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -61,7 +61,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -84,7 +84,7 @@
#include <stdint.h>
-#ifndef VOID
+#ifndef VOID
#define VOID void
typedef char CHAR;
typedef unsigned char UCHAR;
@@ -205,6 +205,10 @@ typedef LONG SLONG;
#define UX_HOST_CLASS_STORAGE_MAX_MEDIA 1
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_SLAVE_REQUEST_CONTROL_MAX_LENGTH
#define UX_SLAVE_REQUEST_CONTROL_MAX_LENGTH 256
#endif
@@ -255,7 +259,7 @@ VOID outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Generic Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];
diff --git a/ports/linux/gnu/inc/ux_port.h b/ports/linux/gnu/inc/ux_port.h
index fe455cf..a240506 100644
--- a/ports/linux/gnu/inc/ux_port.h
+++ b/ports/linux/gnu/inc/ux_port.h
@@ -1,18 +1,18 @@
/***************************************************************************
- * Copyright (c) 2024 Microsoft Corporation
- *
+ * Copyright (c) 2024 Microsoft Corporation
+ *
* This program and the accompanying materials are made available under the
* terms of the MIT License which is available at
* https://opensource.org/licenses/MIT.
- *
+ *
* SPDX-License-Identifier: MIT
**************************************************************************/
/**************************************************************************/
/**************************************************************************/
-/** */
-/** USBX Component */
+/** */
+/** USBX Component */
/** */
/** Port Specific */
/** */
@@ -20,11 +20,11 @@
/**************************************************************************/
-/**************************************************************************/
-/* */
-/* PORT SPECIFIC C INFORMATION RELEASE */
-/* */
-/* ux_port.h Linux/GNU */
+/**************************************************************************/
+/* */
+/* PORT SPECIFIC C INFORMATION RELEASE */
+/* */
+/* ux_port.h Linux/GNU */
/* 6.3.0 */
/* */
/* AUTHOR */
@@ -32,14 +32,14 @@
/* Chaoqiong Xiao, Microsoft Corporation */
/* */
/* DESCRIPTION */
-/* */
-/* This file contains data type definitions that make USBX function */
-/* identically on a variety of different processor architectures. */
-/* */
-/* RELEASE HISTORY */
-/* */
-/* DATE NAME DESCRIPTION */
-/* */
+/* */
+/* This file contains data type definitions that make USBX function */
+/* identically on a variety of different processor architectures. */
+/* */
+/* RELEASE HISTORY */
+/* */
+/* DATE NAME DESCRIPTION */
+/* */
/* 10-15-2021 Chaoqiong Xiao Initial Version 6.1.9 */
/* 01-31-2022 Chaoqiong Xiao Modified comment(s), */
/* moved tx_api.h include and */
@@ -67,7 +67,7 @@
#ifdef UX_INCLUDE_USER_DEFINE_FILE
-/* Yes, include the user defines in ux_user.h. The defines in this file may
+/* Yes, include the user defines in ux_user.h. The defines in this file may
alternately be defined on the command line. */
#include "ux_user.h"
@@ -223,6 +223,10 @@ typedef LONG SLONG;
#define UX_SLAVE_REQUEST_DATA_MAX_LENGTH 4096
#endif
+#ifndef UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT
+#define UX_HOST_CLASS_STORAGE_MAX_PARTITIONS_COUNT 8
+#endif
+
#ifndef UX_USE_IO_INSTRUCTIONS
/* Don't use IO instructions if this define is not set. Default to memory mapped. */
@@ -260,7 +264,7 @@ ULONG outpl(ULONG,ULONG);
/* Define the version ID of USBX. This may be utilized by the application. */
#ifdef UX_SYSTEM_INIT
-CHAR _ux_version_id[] =
+CHAR _ux_version_id[] =
"Copyright (c) 2024 Microsoft Corporation. * USBX Linux/GNU Version 6.4.1 *";
#else
extern CHAR _ux_version_id[];