| .. | .. |
|---|
| 1 | | -// SPDX-License-Identifier: GPL-2.0+ |
|---|
| 1 | +/* SPDX-License-Identifier: GPL-2.0+ */ |
|---|
| 2 | 2 | /* |
|---|
| 3 | 3 | * Copyright (c) 2001-2002 by David Brownell |
|---|
| 4 | 4 | */ |
|---|
| .. | .. |
|---|
| 218 | 218 | unsigned frame_index_bug:1; /* MosChip (AKA NetMos) */ |
|---|
| 219 | 219 | unsigned need_oc_pp_cycle:1; /* MPC834X port power */ |
|---|
| 220 | 220 | 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__ |
|---|
| 221 | 226 | 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 |
|---|
| 229 | 228 | |
|---|
| 230 | 229 | /* required for usb32 quirk */ |
|---|
| 231 | 230 | #define OHCI_CTRL_HCFS (3 << 6) |
|---|
| .. | .. |
|---|
| 243 | 242 | /* irq statistics */ |
|---|
| 244 | 243 | #ifdef EHCI_STATS |
|---|
| 245 | 244 | struct ehci_stats stats; |
|---|
| 246 | | -# define COUNT(x) ((x)++) |
|---|
| 245 | +# define INCR(x) ((x)++) |
|---|
| 247 | 246 | #else |
|---|
| 248 | | -# define COUNT(x) |
|---|
| 247 | +# define INCR(x) do {} while (0) |
|---|
| 249 | 248 | #endif |
|---|
| 250 | 249 | |
|---|
| 251 | 250 | /* debug files */ |
|---|
| .. | .. |
|---|
| 263 | 262 | struct list_head tt_list; |
|---|
| 264 | 263 | |
|---|
| 265 | 264 | /* platform-specific data -- must come last */ |
|---|
| 266 | | - unsigned long priv[0] __aligned(sizeof(s64)); |
|---|
| 265 | + unsigned long priv[] __aligned(sizeof(s64)); |
|---|
| 267 | 266 | }; |
|---|
| 268 | 267 | |
|---|
| 269 | 268 | /* convert between an HCD pointer and the corresponding EHCI_HCD */ |
|---|
| .. | .. |
|---|
| 468 | 467 | struct list_head td_list; |
|---|
| 469 | 468 | unsigned span; |
|---|
| 470 | 469 | unsigned first_packet; |
|---|
| 471 | | - struct ehci_iso_packet packet[0]; |
|---|
| 470 | + struct ehci_iso_packet packet[]; |
|---|
| 472 | 471 | }; |
|---|
| 473 | 472 | |
|---|
| 474 | 473 | /* |
|---|