]> git.ozlabs.org Git - yaboot.git/blobdiff - include/prom.h
warnings: Add explict prototype for prom_vfprintf()
[yaboot.git] / include / prom.h
index 27436095bddcdfefd51fd33a6951b66876704782..0462e395367290a99d9555dcabd1ff005500cd8e 100644 (file)
@@ -38,7 +38,7 @@ typedef void *phandle;
 #define BOOTDEVSZ               (2048) /* iscsi args can be in excess of 1040 bytes */
 #define TOK_ISCSI               "iscsi"
 #define TOK_IPV6                "ipv6"
-#define PROM_CLAIM_MAX_ADDR    0x8000000
+#define PROM_CLAIM_MAX_ADDR    0x10000000
 #define BOOTLASTSZ             1024
 #define FW_NBR_REBOOTSZ                4
 
@@ -74,13 +74,16 @@ void prom_putchar (char);
 int prom_nbgetchar();
 
 #ifdef __GNUC__
-void prom_vprintf (char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
-void prom_fprintf (prom_handle dev, char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
-void prom_printf (char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
+void prom_vprintf (const char *fmt, va_list ap) __attribute__ ((format (printf, 1, 0)));
+void prom_vfprintf (prom_handle file, const char *fmt, va_list ap)  __attribute__ ((format (printf, 2, 0)));
+void prom_fprintf (prom_handle dev, const char *fmt, ...) __attribute__ ((format (printf, 2, 3)));
+void prom_printf (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
+void prom_debug (const char *fmt, ...) __attribute__ ((format (printf, 1, 2)));
 #else
-void prom_vprintf (char *fmt, va_list ap);
-void prom_fprintf (prom_handle dev, char *fmt, ...);
-void prom_printf (char *fmt, ...);
+void prom_vprintf (const char *fmt, va_list ap);
+void prom_fprintf (prom_handle dev, const char *fmt, ...);
+void prom_printf (const char *fmt, ...);
+void prom_debug (const char *fmt, ...);
 #endif
 
 void prom_perror (int error, char *filename);
@@ -90,6 +93,7 @@ int prom_set_color(prom_handle device, int color, int r, int g, int b);
 /* memory */
 
 void *prom_claim_chunk(void *virt, unsigned int size, unsigned int align);
+void *prom_claim_chunk_top(unsigned int size, unsigned int align);
 void *prom_claim (void *virt, unsigned int size, unsigned int align);
 void prom_release(void *virt, unsigned int size);
 void prom_map (void *phys, void *virt, int size);