1 // SPDX-License-Identifier: GPL-2.0
3 * init.c: Initialize internal variables used by the PROM
6 * Copyright (C) 1995 David S. Miller (davem@caip.rutgers.edu)
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. */
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
)
34 /* Initialization successful. */