X-Git-Url: http://git.ozlabs.org/?p=yaboot.git;a=blobdiff_plain;f=include%2Fprom.h;h=0462e395367290a99d9555dcabd1ff005500cd8e;hp=eacee7708c1f9300e87b7cca8db84f01aad0d00a;hb=038b8b3919c801b7065a9ec3f5aee5ea9653b5d9;hpb=526b77920b050e1e37e842e8def4a5e7fb04cee6 diff --git a/include/prom.h b/include/prom.h index eacee77..0462e39 100644 --- a/include/prom.h +++ b/include/prom.h @@ -37,7 +37,8 @@ typedef void *phandle; #define PROM_INVALID_HANDLE ((prom_handle)-1UL) #define BOOTDEVSZ (2048) /* iscsi args can be in excess of 1040 bytes */ #define TOK_ISCSI "iscsi" -#define PROM_CLAIM_MAX_ADDR 0x8000000 +#define TOK_IPV6 "ipv6" +#define PROM_CLAIM_MAX_ADDR 0x10000000 #define BOOTLASTSZ 1024 #define FW_NBR_REBOOTSZ 4 @@ -73,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); @@ -89,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 */ @@ -152,7 +158,7 @@ struct bootp_packet { unsigned char chaddr[16]; unsigned char sname[64]; unsigned char file[128]; - /* vendor options go here if we need them */ + unsigned char options[]; /* vendor options */ }; struct bootp_packet * prom_get_netinfo (void);