[usb] Add basic support for USB devices
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
parent
8c43891db4
commit
018b13dcec
|
@ -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
|
||||||
|
*/
|
File diff suppressed because it is too large
Load Diff
|
@ -66,10 +66,13 @@ struct device_description {
|
||||||
/** Hyper-V bus type */
|
/** Hyper-V bus type */
|
||||||
#define BUS_TYPE_HV 9
|
#define BUS_TYPE_HV 9
|
||||||
|
|
||||||
|
/** USB bus type */
|
||||||
|
#define BUS_TYPE_USB 10
|
||||||
|
|
||||||
/** A hardware device */
|
/** A hardware device */
|
||||||
struct device {
|
struct device {
|
||||||
/** Name */
|
/** Name */
|
||||||
char name[16];
|
char name[32];
|
||||||
/** Driver name */
|
/** Driver name */
|
||||||
const char *driver_name;
|
const char *driver_name;
|
||||||
/** Device description */
|
/** Device description */
|
||||||
|
|
|
@ -76,6 +76,7 @@ FILE_LICENCE ( GPL2_OR_LATER );
|
||||||
#define ERRFILE_pci ( ERRFILE_DRIVER | 0x00040000 )
|
#define ERRFILE_pci ( ERRFILE_DRIVER | 0x00040000 )
|
||||||
#define ERRFILE_linux ( ERRFILE_DRIVER | 0x00050000 )
|
#define ERRFILE_linux ( ERRFILE_DRIVER | 0x00050000 )
|
||||||
#define ERRFILE_pcivpd ( ERRFILE_DRIVER | 0x00060000 )
|
#define ERRFILE_pcivpd ( ERRFILE_DRIVER | 0x00060000 )
|
||||||
|
#define ERRFILE_usb ( ERRFILE_DRIVER | 0x00070000 )
|
||||||
|
|
||||||
#define ERRFILE_nvs ( ERRFILE_DRIVER | 0x00100000 )
|
#define ERRFILE_nvs ( ERRFILE_DRIVER | 0x00100000 )
|
||||||
#define ERRFILE_spi ( ERRFILE_DRIVER | 0x00110000 )
|
#define ERRFILE_spi ( ERRFILE_DRIVER | 0x00110000 )
|
||||||
|
|
File diff suppressed because it is too large
Load Diff
Reference in New Issue