david/ipxe
david
/
ipxe
Archived
1
0
Fork 0

[usb] Add basic support for USB devices

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown 2015-02-02 14:37:00 +00:00
parent 8c43891db4
commit 018b13dcec
5 changed files with 2822 additions and 1 deletions

20
src/config/config_usb.c Normal file
View File

@ -0,0 +1,20 @@
/*
* 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; either version 2, or (at
* your option) any later version.
*/
FILE_LICENCE ( GPL2_OR_LATER );
#include <config/general.h>
/** @file
*
* USB configuration options
*
*/
/*
* Drag in USB controllers
*/

1648
src/drivers/bus/usb.c Normal file

File diff suppressed because it is too large Load Diff

View File

@ -66,10 +66,13 @@ struct device_description {
/** Hyper-V bus type */
#define BUS_TYPE_HV 9
/** USB bus type */
#define BUS_TYPE_USB 10
/** A hardware device */
struct device {
/** Name */
char name[16];
char name[32];
/** Driver name */
const char *driver_name;
/** Device description */

View File

@ -76,6 +76,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
#define ERRFILE_pci ( ERRFILE_DRIVER | 0x00040000 )
#define ERRFILE_linux ( ERRFILE_DRIVER | 0x00050000 )
#define ERRFILE_pcivpd ( ERRFILE_DRIVER | 0x00060000 )
#define ERRFILE_usb ( ERRFILE_DRIVER | 0x00070000 )
#define ERRFILE_nvs ( ERRFILE_DRIVER | 0x00100000 )
#define ERRFILE_spi ( ERRFILE_DRIVER | 0x00110000 )

1149
src/include/ipxe/usb.h Normal file

File diff suppressed because it is too large Load Diff