// SPDX-License-Identifier: GPL-2.0 /* * Toshiba TC86C001 ("Goku-S") USB Device Controller driver * * Copyright (C) 2000-2002 Lineo * by Stuart Lynne, Tom Rushworth, and Bruce Balden * Copyright (C) 2002 Toshiba Corporation * Copyright (C) 2003 MontaVista Software ([email protected]) */ /* * PCI BAR 0 points to these registers. */ struct goku_udc_regs { … } __attribute__ ((packed)); #define MAX_FIFO_SIZE … #define MAX_EP0_SIZE … /*-------------------------------------------------------------------------*/ /* DRIVER DATA STRUCTURES and UTILITIES */ struct goku_ep { … }; struct goku_request { … }; enum ep0state { … }; struct goku_udc { … }; #define to_goku_udc(g) … /*-------------------------------------------------------------------------*/ #define xprintk(dev,level,fmt,args...) … #ifdef DEBUG #define DBG(dev,fmt,args...) … #else #define DBG … #endif /* DEBUG */ #ifdef VERBOSE #define VDBG … #else #define VDBG(dev,fmt,args...) … #endif /* VERBOSE */ #define ERROR(dev,fmt,args...) … #define WARNING(dev,fmt,args...) … #define INFO(dev,fmt,args...) …