init.c 785 B

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