Pārlūkot izejas kodu

[usb] Add support for xHCI host controllers

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 10 gadus atpakaļ
vecāks
revīzija
fd53ada87c

+ 3
- 0
src/config/config_usb.c Parādīt failu

18
 /*
18
 /*
19
  * Drag in USB controllers
19
  * Drag in USB controllers
20
  */
20
  */
21
+#ifdef USB_HCD_XHCI
22
+REQUIRE_OBJECT ( xhci );
23
+#endif

+ 2
- 0
src/config/defaults/pcbios.h Parādīt failu

36
 #define	SANBOOT_PROTO_IB_SRP	/* Infiniband SCSI RDMA protocol */
36
 #define	SANBOOT_PROTO_IB_SRP	/* Infiniband SCSI RDMA protocol */
37
 #define	SANBOOT_PROTO_FCP	/* Fibre Channel protocol */
37
 #define	SANBOOT_PROTO_FCP	/* Fibre Channel protocol */
38
 
38
 
39
+#define	USB_HCD_XHCI		/* xHCI USB host controller */
40
+
39
 #define	REBOOT_CMD		/* Reboot command */
41
 #define	REBOOT_CMD		/* Reboot command */
40
 #define	CPUID_CMD		/* x86 CPU feature detection command */
42
 #define	CPUID_CMD		/* x86 CPU feature detection command */
41
 
43
 

+ 3009
- 0
src/drivers/usb/xhci.c
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1066
- 0
src/drivers/usb/xhci.h
Failā izmaiņas netiks attēlotas, jo tās ir par lielu
Parādīt failu


+ 1
- 0
src/include/ipxe/errfile.h Parādīt failu

78
 #define ERRFILE_pcivpd		     ( ERRFILE_DRIVER | 0x00060000 )
78
 #define ERRFILE_pcivpd		     ( ERRFILE_DRIVER | 0x00060000 )
79
 #define ERRFILE_usb		     ( ERRFILE_DRIVER | 0x00070000 )
79
 #define ERRFILE_usb		     ( ERRFILE_DRIVER | 0x00070000 )
80
 #define ERRFILE_usbhub		     ( ERRFILE_DRIVER | 0x00080000 )
80
 #define ERRFILE_usbhub		     ( ERRFILE_DRIVER | 0x00080000 )
81
+#define ERRFILE_xhci		     ( ERRFILE_DRIVER | 0x00090000 )
81
 
82
 
82
 #define ERRFILE_nvs		     ( ERRFILE_DRIVER | 0x00100000 )
83
 #define ERRFILE_nvs		     ( ERRFILE_DRIVER | 0x00100000 )
83
 #define ERRFILE_spi		     ( ERRFILE_DRIVER | 0x00110000 )
84
 #define ERRFILE_spi		     ( ERRFILE_DRIVER | 0x00110000 )

Notiek ielāde…
Atcelt
Saglabāt