X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Fprom.h;h=0462e395367290a99d9555dcabd1ff005500cd8e;hp=5ccfb274ed4d565bc37c7a376c91c72b439e8042;hb=refs%2Fheads%2Fmaster;hpb=5429399eef8152cb3b2a29bc6ee426a214afc701 diff --git a/include/prom.h b/include/prom.h index 5ccfb27..0462e39 100644 --- a/include/prom.h +++ b/include/prom.h @@ -74,15 +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_debug (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_debug (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); @@ -92,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);