iPXE
dwusb.h
Go to the documentation of this file.
1 #ifndef _DWUSB_H
2 #define _DWUSB_H
3 
4 /** @file
5  *
6  * Synopsys DesignWare USB3 host controller driver
7  *
8  */
9 
10 FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
11 
12 #include <ipxe/xhci.h>
13 
14 /** Global core control register */
15 #define DWUSB_GCTL 0xc110
16 #define DWUSB_GCTL_PRTDIR( x ) ( (x) << 12 ) /**< Port direction */
17 #define DWUSB_GCTL_PRTDIR_HOST \
18  DWUSB_GCTL_PRTDIR ( 1 ) /**< Operate as a host */
19 #define DWUSB_GCTL_PRTDIR_MASK \
20  DWUSB_GCTL_PRTDIR ( 3 ) /**< Port direction mask */
21 #define DWUSB_GCTL_RESET 0x00000800 /**< Core soft reset */
22 
23 #endif /* _DWUSB_H */
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
USB eXtensible Host Controller Interface (xHCI) driver.