diff options
Diffstat (limited to 'sys/i386/isa')
-rw-r--r-- | sys/i386/isa/pcvt/pcvt_hdr.h | 22 |
1 files changed, 14 insertions, 8 deletions
diff --git a/sys/i386/isa/pcvt/pcvt_hdr.h b/sys/i386/isa/pcvt/pcvt_hdr.h index 46ea5003e7fa..19003ef01bb6 100644 --- a/sys/i386/isa/pcvt/pcvt_hdr.h +++ b/sys/i386/isa/pcvt/pcvt_hdr.h @@ -558,13 +558,19 @@ * variables *===========================================================================*/ -u_char *more_chars; /* response buffer via kbd */ -u_char color; /* color or mono display */ +#ifdef MAIN +# define EXTERN /* actually define variables when included from pcvt_drv.c */ +#else +# define EXTERN extern /* declare them only */ +#endif + +EXTERN u_char *more_chars; /* response buffer via kbd */ +EXTERN u_char color; /* color or mono display */ -u_short kern_attr; /* kernel messages char attributes */ -u_short user_attr; /* character attributes */ +EXTERN u_short kern_attr; /* kernel messages char attributes */ +EXTERN u_short user_attr; /* character attributes */ -struct tty pcvt_tty[PCVT_NSCREENS]; +EXTERN struct tty pcvt_tty[PCVT_NSCREENS]; struct sixels { u_char lower[MAXSIXEL]; /* lower half of char */ @@ -701,7 +707,7 @@ typedef struct video_state { #endif /* XSERVER */ } video_state; -video_state vs[PCVT_NSCREENS]; /* parameters for screens */ +EXTERN video_state vs[PCVT_NSCREENS]; /* parameters for screens */ struct vga_char_state { int loaded; /* Whether a font is loaded here */ @@ -712,9 +718,9 @@ struct vga_char_state { int screen_size; /* Screen size in SIZ_YYROWS */ }; -struct vga_char_state vgacs[NVGAFONTS]; /* Character set states */ +EXTERN struct vga_char_state vgacs[NVGAFONTS]; /* Character set states */ -u_short *Crtat; /* screen start address */ +EXTERN u_short *Crtat; /* screen start address */ #ifdef MAIN |