sgialib.h 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061
  1. /*
  2. * This file is subject to the terms and conditions of the GNU General Public
  3. * License. See the file "COPYING" in the main directory of this archive
  4. * for more details.
  5. *
  6. * SGI ARCS firmware interface library for the Linux kernel.
  7. *
  8. * Copyright (C) 1996 David S. Miller ([email protected])
  9. * Copyright (C) 2001, 2002 Ralf Baechle ([email protected])
  10. */
  11. #ifndef _ASM_SGIALIB_H
  12. #define _ASM_SGIALIB_H
  13. #include <linux/compiler.h>
  14. #include <asm/sgiarcs.h>
  15. extern struct linux_romvec *romvec;
  16. extern int prom_flags;
  17. #define PROM_FLAG_ARCS 1
  18. #define PROM_FLAG_USE_AS_CONSOLE 2
  19. #define PROM_FLAG_DONT_FREE_TEMP 4
  20. /* Simple char-by-char console I/O. */
  21. extern char prom_getchar(void);
  22. /* Get next memory descriptor after CURR, returns first descriptor
  23. * in chain is CURR is NULL.
  24. */
  25. extern struct linux_mdesc *prom_getmdesc(struct linux_mdesc *curr);
  26. #define PROM_NULL_MDESC ((struct linux_mdesc *) 0)
  27. /* Called by prom_init to setup the physical memory pmemblock
  28. * array.
  29. */
  30. extern void prom_meminit(void);
  31. /* PROM device tree library routines. */
  32. #define PROM_NULL_COMPONENT ((pcomponent *) 0)
  33. /* This is called at prom_init time to identify the
  34. * ARC architecture we are running on
  35. */
  36. extern void prom_identify_arch(void);
  37. /* Environment variable routines. */
  38. extern PCHAR ArcGetEnvironmentVariable(PCHAR name);
  39. /* ARCS command line parsing. */
  40. extern void prom_init_cmdline(int argc, LONG *argv);
  41. /* File operations. */
  42. extern LONG ArcRead(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
  43. extern LONG ArcWrite(ULONG fd, PVOID buf, ULONG num, PULONG cnt);
  44. /* Misc. routines. */
  45. extern VOID ArcEnterInteractiveMode(VOID) __noreturn;
  46. extern DISPLAY_STATUS *ArcGetDisplayStatus(ULONG FileID);
  47. #endif /* _ASM_SGIALIB_H */