diff options
Diffstat (limited to 'usr/src/uts/intel/sys')
-rw-r--r-- | usr/src/uts/intel/sys/bootconf.h | 18 |
1 files changed, 10 insertions, 8 deletions
diff --git a/usr/src/uts/intel/sys/bootconf.h b/usr/src/uts/intel/sys/bootconf.h index 4da7f8c3cb..89b38435cd 100644 --- a/usr/src/uts/intel/sys/bootconf.h +++ b/usr/src/uts/intel/sys/bootconf.h @@ -35,9 +35,10 @@ #include <sys/types.h> #include <sys/bootregs.h> /* for struct bop_regs */ #include <sys/bootstat.h> -#include <sys/dirent.h> /* for struct dirent */ +#include <sys/dirent.h> /* for struct dirent */ #include <sys/memlist.h> #include <sys/obpdefs.h> +#include <net/if.h> /* for IFNAMSIZ */ #ifdef __cplusplus extern "C" { @@ -108,12 +109,12 @@ typedef struct bootops { /* * to find the size of the buffer to allocate */ - int (*bsys_getproplen)(struct bootops *, char *name); + int (*bsys_getproplen)(struct bootops *, const char *); /* * get the value associated with this name */ - int (*bsys_getprop)(struct bootops *, char *name, void *value); + int (*bsys_getprop)(struct bootops *, const char *, void *); /* * get the name of the next property in succession @@ -124,7 +125,7 @@ typedef struct bootops { /* * print formatted output */ - void (*bsys_printf)(struct bootops *, char *, ...); + void (*bsys_printf)(struct bootops *, const char *, ...); /* * Do a real mode interrupt @@ -222,15 +223,16 @@ extern char *kobj_module_path; extern char *default_path; extern char *dhcack; extern int dhcacklen; +extern char dhcifname[IFNAMSIZ]; extern char *netdev_path; extern void bop_no_more_mem(void); /*PRINTFLIKE2*/ -extern void bop_printf(struct bootops *, char *, ...) +extern void bop_printf(struct bootops *, const char *, ...) __KPRINTFLIKE(2); /*PRINTFLIKE1*/ -extern void bop_panic(char *, ...) +extern void bop_panic(const char *, ...) __KPRINTFLIKE(1); extern void boot_prop_finish(void); @@ -240,8 +242,8 @@ extern void boot_prop_finish(void); */ extern paddr_t do_bop_phys_alloc(uint64_t, uint64_t); -extern int do_bsys_getproplen(bootops_t *, char *); -extern int do_bsys_getprop(bootops_t *, char *, void *); +extern int do_bsys_getproplen(bootops_t *, const char *); +extern int do_bsys_getprop(bootops_t *, const char *, void *); #endif /* _KERNEL && !_BOOT */ |