WIP FPC-III support
[linux/fpc-iii.git] / arch / m68k / sun3 / prom / init.c
blob0c6d99df6aee00e9a2ca9553f15f783edbdcdc2f
1 // SPDX-License-Identifier: GPL-2.0
2 /*
3 * init.c: Initialize internal variables used by the PROM
4 * library functions.
6 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
7 */
9 #include <linux/kernel.h>
10 #include <linux/init.h>
12 #include <asm/openprom.h>
13 #include <asm/oplib.h>
15 struct linux_romvec *romvec;
16 enum prom_major_version prom_vers;
17 unsigned int prom_rev, prom_prev;
19 /* The root node of the prom device tree. */
20 int prom_root_node;
22 /* Pointer to the device tree operations structure. */
23 struct linux_nodeops *prom_nodeops;
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.
30 void __init prom_init(struct linux_romvec *rp)
32 romvec = rp;
34 /* Initialization successful. */
35 return;