X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Fprom.h;h=0462e395367290a99d9555dcabd1ff005500cd8e;hp=a512f2be5a4d1db15a144dfc3e256ce81eb0bc93;hb=HEAD;hpb=9a83909ef3d17b0ea205d32b6aa07ac6bea7260c diff --git a/include/prom.h b/include/prom.h index a512f2b..0462e39 100644 --- a/include/prom.h +++ b/include/prom.h @@ -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,9 +93,11 @@ 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); +void prom_print_available(void); /* packages and device nodes */