XenevaOS
Loading...
Searching...
No Matches
XenevaOS
BaseHdr
linux
of.h
Go to the documentation of this file.
1
#ifndef __LINUX_OF_H__
2
#define __LINUX_OF_H__
3
4
/*
5
* DCL <linux/of.h> -- one function, of_console_check().
6
*
7
* mainline's header is the flattened-device-tree interface: parsing,
8
* phandles, properties, interrupt mapping, the aliases the bootconsole logic
9
* reads. Xeneva has no device tree in its kernel -- boards are compiled in --
10
* so none of that exists and none of it is asked for. serial_core.c calls
11
* exactly one thing from it (uart_add_one_port at :3093):
12
*
13
* of_console_check(uport->dev->of_node, uport->cons->name, uport->line);
14
*
15
* whose result is discarded: mainline uses it to decide whether this port's
16
* *device tree node* names the console the boot loader set up, so a matching
17
* alias keeps the boot console from being torn down. With no aliases to
18
* match, "no" is the answer -- false, same as mainline gives for a port with
19
* no node at all, which is what every DCL port has. The call stays because
20
* it is inside a guard (`if (uport->cons && uport->dev)`) whose other half
21
* does matter, and dropping it would mean editing a vendored file.
22
*
23
* upstream include/linux/of.h (mainline v7.2)
24
*/
25
26
struct
device_node;
27
28
static
inline
int
of_console_check(
const
struct
device_node* dn,
29
const
char
*
name
,
int
idx)
30
{
31
(void)dn;
32
(void)
name
;
33
(void)idx;
34
return
0;
35
}
36
37
#endif
/* __LINUX_OF_H__ */
name
struct drm_crtc struct drm_plane struct drm_plane const struct drm_crtc_funcs const char * name
Definition
drm_crtc.h:1242
Generated by
1.9.8