6b5bc77c9b
Stefan thinks they don't add value. Command used: sed -i -e '/file is part of /d' $(git grep "file is part of " |egrep ":( */\*.*\*/\$|#|;#|-- | *\* )" | cut -d: -f1 |grep -v crossgcc |grep -v gcov | grep -v /elf.h |grep -v nvramtool) The exceptions are for: - crossgcc (patch file) - gcov (imported from gcc) - elf.h (imported from GNU's libc) - nvramtool (more complicated header) The removed lines are: - fmt.Fprintln(f, "/* This file is part of the coreboot project. */") -# This file is part of a set of unofficial pre-commit hooks available -/* This file is part of coreboot */ -# This file is part of msrtool. -/* This file is part of msrtool. */ - * This file is part of ncurses, designed to be appended after curses.h.in -/* This file is part of pgtblgen. */ - * This file is part of the coreboot project. - /* This file is part of the coreboot project. */ -# This file is part of the coreboot project. -# This file is part of the coreboot project. -## This file is part of the coreboot project. --- This file is part of the coreboot project. -/* This file is part of the coreboot project */ -/* This file is part of the coreboot project. */ -;## This file is part of the coreboot project. -# This file is part of the coreboot project. It originated in the - * This file is part of the coreinfo project. -## This file is part of the coreinfo project. - * This file is part of the depthcharge project. -/* This file is part of the depthcharge project. */ -/* This file is part of the ectool project. */ - * This file is part of the GNU C Library. - * This file is part of the libpayload project. -## This file is part of the libpayload project. -/* This file is part of the Linux kernel. */ -## This file is part of the superiotool project. -/* This file is part of the superiotool project */ -/* This file is part of uio_usbdebug */ Change-Id: I82d872b3b337388c93d5f5bf704e9ee9e53ab3a9 Signed-off-by: Patrick Georgi <pgeorgi@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/41194 Reviewed-by: HAOUAS Elyes <ehaouas@noos.fr> Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
60 lines
1.5 KiB
C
60 lines
1.5 KiB
C
/*
|
|
*
|
|
* Copyright (C) 2015 Rockchip Electronics
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; version 2 of the License.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*/
|
|
|
|
#ifndef __DWC2_PRIV_H__
|
|
#define __DWC2_PRIV_H__
|
|
#include <usb/dwc2_registers.h>
|
|
|
|
#define EP_MAXLEN (64 * 1024)
|
|
#define EP0_MAXLEN 64
|
|
|
|
#define RX_FIFO_SIZE 0x210
|
|
#define DTX_FIFO_SIZE_0_OFFSET RX_FIFO_SIZE
|
|
#define DTX_FIFO_SIZE_0 0x10
|
|
#define DTX_FIFO_SIZE_1_OFFSET (DTX_FIFO_SIZE_0_OFFSET +\
|
|
DTX_FIFO_SIZE_0)
|
|
#define DTX_FIFO_SIZE_1 0x100
|
|
#define DTX_FIFO_SIZE_2_OFFSET (DTX_FIFO_SIZE_1_OFFSET +\
|
|
DTX_FIFO_SIZE_1)
|
|
#define DTX_FIFO_SIZE_2 0x10
|
|
|
|
struct job {
|
|
SIMPLEQ_ENTRY(job) queue; // linkage
|
|
void *data;
|
|
size_t length;
|
|
size_t xfered_length;
|
|
size_t xfer_length;
|
|
int zlp; // append zero length packet?
|
|
int autofree; // free after processing?
|
|
};
|
|
SIMPLEQ_HEAD(job_queue, job);
|
|
|
|
typedef struct dwc2_ep {
|
|
dwc2_ep_reg_t *ep_regs;
|
|
struct job_queue job_queue;
|
|
unsigned txfifo:5;
|
|
unsigned busy:1;
|
|
unsigned ep_num:8;
|
|
} dwc2_ep_t;
|
|
|
|
typedef struct dwc2_pdata {
|
|
dwc2_reg_t *regs;
|
|
dwc2_ep_t eps[MAX_EPS_CHANNELS][2];
|
|
uint32_t fifo_map;
|
|
void *setup_buf;
|
|
} dwc2_pdata_t;
|
|
|
|
#define DWC2_PDATA(ctrl) ((dwc2_pdata_t *)((ctrl)->pdata))
|
|
|
|
#endif
|