xref: /linux/arch/m68k/sun3/prom/init.c (revision 4b132aacb0768ac1e652cf517097ea6f237214b9)
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3  * init.c:  Initialize internal variables used by the PROM
4  *          library functions.
5  *
6  * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7  */
8 
9 #include <linux/kernel.h>
10 #include <linux/init.h>
11 
12 #include <asm/openprom.h>
13 #include <asm/oplib.h>
14 
15 struct linux_romvec *romvec;
16 enum prom_major_version prom_vers;
17 unsigned int prom_rev, prom_prev;
18 
19 /* The root node of the prom device tree. */
20 int prom_root_node;
21 
22 /* Pointer to the device tree operations structure. */
23 struct linux_nodeops *prom_nodeops;
24 
25 /* You must call prom_init() before you attempt to use any of the
26  * routines in the prom library.
27  * It gets passed the pointer to the PROM vector.
28  */
29 
30 void __init prom_init(struct linux_romvec *rp)
31 {
32 	romvec = rp;
33 
34 	/* Initialization successful. */
35 	return;
36 }
37