forked from ~ljy/RK356X_SDK_RELEASE

hc
2024-02-20 ea08eeccae9297f7aabd2ef7f0c2517ac4549acc
kernel/drivers/usb/host/ehci.h
....@@ -1,4 +1,4 @@
1
-// SPDX-License-Identifier: GPL-2.0+
1
+/* SPDX-License-Identifier: GPL-2.0+ */
22 /*
33 * Copyright (c) 2001-2002 by David Brownell
44 */
....@@ -218,14 +218,13 @@
218218 unsigned frame_index_bug:1; /* MosChip (AKA NetMos) */
219219 unsigned need_oc_pp_cycle:1; /* MPC834X port power */
220220 unsigned imx28_write_fix:1; /* For Freescale i.MX28 */
221
+ /*
222
+ * __GENKSYMS__ test is an abi workaround for commit
223
+ * 7f2d73788d90 ("usb: ehci: handshake CMD_RUN * instead of STS_HALT")
224
+ */
225
+#ifndef __GENKSYMS__
221226 unsigned is_aspeed:1;
222
- unsigned has_usic:1;
223
- #define USIC_MICROFRAME_OFFSET 0x90
224
- #define USIC_SCALE_DOWN_OFFSET 0xa0
225
- #define USIC_ENABLE_OFFSET 0xb0
226
- #define USIC_ENABLE BIT(0)
227
- #define USIC_SCALE_DOWN BIT(2)
228
- #define USIC_MICROFRAME_COUNT 0x1d4d
227
+#endif
229228
230229 /* required for usb32 quirk */
231230 #define OHCI_CTRL_HCFS (3 << 6)
....@@ -243,9 +242,9 @@
243242 /* irq statistics */
244243 #ifdef EHCI_STATS
245244 struct ehci_stats stats;
246
-# define COUNT(x) ((x)++)
245
+# define INCR(x) ((x)++)
247246 #else
248
-# define COUNT(x)
247
+# define INCR(x) do {} while (0)
249248 #endif
250249
251250 /* debug files */
....@@ -263,7 +262,7 @@
263262 struct list_head tt_list;
264263
265264 /* platform-specific data -- must come last */
266
- unsigned long priv[0] __aligned(sizeof(s64));
265
+ unsigned long priv[] __aligned(sizeof(s64));
267266 };
268267
269268 /* convert between an HCD pointer and the corresponding EHCI_HCD */
....@@ -468,7 +467,7 @@
468467 struct list_head td_list;
469468 unsigned span;
470469 unsigned first_packet;
471
- struct ehci_iso_packet packet[0];
470
+ struct ehci_iso_packet packet[];
472471 };
473472
474473 /*