1 #ifndef _IPXE_DEVTREE_H 2 #define _IPXE_DEVTREE_H 55 #define DT_DRIVERS __table ( struct dt_driver, "dt_drivers" ) 58 #define __dt_driver __table_entry ( DT_DRIVERS, 01 ) void * dt_ioremap(struct dt_device *dt, unsigned int offset, unsigned int index, size_t len)
Map devicetree range.
void(* remove)(struct dt_device *dt)
Remove device.
const char ** ids
Compatible programming model identifiers.
void dt_remove_node(struct device *parent)
Remove devicetree node.
struct device * parent
Bus device.
struct device dev
Generic device.
int(* probe)(struct dt_device *dt, unsigned int offset)
Probe device.
static struct dt_device * dt_parent(struct dt_device *dt)
Get devicetree parent device.
int dt_probe_node(struct device *parent, unsigned int offset)
Probe devicetree node.
#define container_of(ptr, type, field)
Get containing structure.
struct dt_driver * driver
Driver for this device.
void * priv
Driver-private data.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
unsigned int id_count
Number of compatible programming model identifiers.
static void dt_set_drvdata(struct dt_device *dt, void *priv)
Set devicetree driver-private data.
const char * name
Device name.
void dt_remove_children(struct dt_device *parent)
Remove devicetree children.
const char * name
Driver name.
static struct tlan_private * priv
int dt_probe_children(struct dt_device *parent, unsigned int offset)
Probe devicetree children.
uint16_t offset
Offset to command line.
struct dma_device dma
DMA device.
static void * dt_get_drvdata(struct dt_device *dt)
Get devicetree driver-private data.