38 #define SERIAL_PREFIX_fdt 40 #define SERIAL_PREFIX_fdt __fdt_ 51 #define colour &fdtcon_parent 71 DBGC (
colour,
"FDTCON could not locate \"/chosen\": %s\n",
79 DBGC (
colour,
"FDTCON has no console device\n" );
82 DBGC (
colour,
"FDTCON console device is \"%s\"\n", path );
87 DBGC (
colour,
"FDTCON could not locate \"/%s\": %s\n",
94 DBGC (
colour,
"FDTCON could not probe \"%s\": %s\n",
struct arbelprm_rc_send_wqe rc
int fdt_alias(struct fdt *fdt, const char *name, unsigned int *offset)
Find node by alias.
int fdt_path(struct fdt *fdt, const char *path, unsigned int *offset)
Find node by path.
struct uart * default_serial_console(void)
Get serial console UART.
#define list_last_entry(list, type, member)
Get the container of the last entry in a list.
struct list_head list
List of registered UARTs.
static struct device fdtcon_parent
FDT console parent device.
const char * fdt_string(struct fdt *fdt, unsigned int offset, const char *name)
Find string property.
char * strerror(int errno)
Retrieve string representation of error number.
struct list_head siblings
Devices on the same bus.
int dt_probe_node(struct device *parent, unsigned int offset)
Probe devicetree node.
FILE_LICENCE(GPL2_OR_LATER_OR_UBDL)
#define colour
Colour for debug messages.
struct list_head children
Devices attached to this device.
PROVIDE_SERIAL(fdt, default_serial_console, fdtcon_default)
#define LIST_HEAD_INIT(list)
Initialise a static list head.
static struct uart * fdtcon_default(void)
Identify default serial console.
#define NULL
NULL pointer (VOID *)
struct fdt sysfdt
The system flattened device tree (if present)