prom.h 755 B

123456789101112131415161718192021222324
  1. /*
  2. * Copyright (c) 2011 Zhang, Keguang <keguang.zhang@gmail.com>
  3. *
  4. * This program is free software; you can redistribute it and/or modify it
  5. * under the terms of the GNU General Public License as published by the
  6. * Free Software Foundation; either version 2 of the License, or (at your
  7. * option) any later version.
  8. */
  9. #ifndef __ASM_MACH_LOONGSON1_PROM_H
  10. #define __ASM_MACH_LOONGSON1_PROM_H
  11. #include <linux/io.h>
  12. #include <linux/init.h>
  13. #include <linux/irq.h>
  14. /* environment arguments from bootloader */
  15. extern unsigned long memsize, highmemsize;
  16. /* loongson-specific command line, env and memory initialization */
  17. extern char *prom_getenv(char *name);
  18. extern void __init prom_init_cmdline(void);
  19. #endif /* __ASM_MACH_LOONGSON1_PROM_H */