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
15struct linux_romvec *romvec;
16enum prom_major_version prom_vers;
17unsigned int prom_rev, prom_prev;
18
19/* The root node of the prom device tree. */
20int prom_root_node;
21
22/* Pointer to the device tree operations structure. */
23struct 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
30void __init prom_init(struct linux_romvec *rp)
31{
32	romvec = rp;
33
34	/* Initialization successful. */
35	return;
36}
37