mirror of
https://github.com/ipxe/ipxe
synced 2025-12-20 20:10:18 +03:00
[usb] Add basic support for USB devices
Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
20
src/config/config_usb.c
Normal file
20
src/config/config_usb.c
Normal 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
1648
src/drivers/bus/usb.c
Normal file
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 )
|
||||||
|
|||||||
1149
src/include/ipxe/usb.h
Normal file
1149
src/include/ipxe/usb.h
Normal file
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user