mirror of
https://github.com/ipxe/ipxe
synced 2026-01-24 13:13:42 +03:00
[cgem] Add a driver for the Cadence GEM NIC
Add a basic driver for the Cadence GEM network interface as emulated by QEMU when using the RISC-V "sifive_u" machine type. Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
@@ -10,11 +10,14 @@
|
||||
FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
|
||||
#include <ipxe/device.h>
|
||||
#include <ipxe/dma.h>
|
||||
|
||||
/** A devicetree device */
|
||||
struct dt_device {
|
||||
/** Generic device */
|
||||
struct device dev;
|
||||
/** DMA device */
|
||||
struct dma_device dma;
|
||||
/** Device path */
|
||||
const char *path;
|
||||
/** Driver for this device */
|
||||
|
||||
@@ -232,6 +232,7 @@ FILE_LICENCE ( GPL2_OR_LATER_OR_UBDL );
|
||||
#define ERRFILE_atl_hw ( ERRFILE_DRIVER | 0x00d80000 )
|
||||
#define ERRFILE_atl2_hw ( ERRFILE_DRIVER | 0x00d90000 )
|
||||
#define ERRFILE_devtree ( ERRFILE_DRIVER | 0x00da0000 )
|
||||
#define ERRFILE_cgem ( ERRFILE_DRIVER | 0x00db0000 )
|
||||
|
||||
#define ERRFILE_aoe ( ERRFILE_NET | 0x00000000 )
|
||||
#define ERRFILE_arp ( ERRFILE_NET | 0x00010000 )
|
||||
|
||||
Reference in New Issue
Block a user