- ANSI & KNF, notably remove __P.

- Some cosmetic changes.
This commit is contained in:
junyoung 2002-07-07 06:49:22 +00:00
parent 472e54071a
commit 798d30c8d5

View File

@ -1,4 +1,4 @@
/* $NetBSD: pcdisplayvar.h,v 1.10 2002/07/07 06:36:33 junyoung Exp $ */
/* $NetBSD: pcdisplayvar.h,v 1.11 2002/07/07 06:49:22 junyoung Exp $ */
/*
* Copyright (c) 1998
@ -39,8 +39,8 @@ struct pcdisplayscreen {
const struct wsscreen_descr *type;
int active; /* currently displayed */
u_int16_t *mem; /* backing store for contents */
int active; /* currently displayed */
u_int16_t *mem; /* backing store for contents */
int cursoron; /* cursor displayed? */
#ifdef PCDISPLAY_SOFTCURSOR
@ -48,7 +48,7 @@ struct pcdisplayscreen {
#endif
int cursorcol, cursorrow; /* current cursor position */
int dispoffset; /* offset of displayed area in video mem */
int dispoffset; /* offset of displayed area in video mem */
};
struct pcdisplay_handle {
@ -56,10 +56,9 @@ struct pcdisplay_handle {
bus_space_handle_t ph_ioh_6845, ph_memh;
};
static inline u_int8_t _pcdisplay_6845_read __P((struct pcdisplay_handle *,
int));
static inline void _pcdisplay_6845_write __P((struct pcdisplay_handle *,
int, u_int8_t));
static inline u_int8_t _pcdisplay_6845_read(struct pcdisplay_handle *, int);
static inline void _pcdisplay_6845_write(struct pcdisplay_handle *, int,
u_int8_t);
static inline u_int8_t _pcdisplay_6845_read(ph, reg)
struct pcdisplay_handle *ph;
@ -83,17 +82,17 @@ static inline void _pcdisplay_6845_write(ph, reg, val)
#define pcdisplay_6845_write(ph, reg, val) \
_pcdisplay_6845_write(ph, offsetof(struct reg_mc6845, reg), val)
void pcdisplay_cursor_init __P((struct pcdisplayscreen *, int));
void pcdisplay_cursor __P((void *, int, int, int));
void pcdisplay_cursor_init(struct pcdisplayscreen *, int);
void pcdisplay_cursor(void *, int, int, int);
#if 0
unsigned int pcdisplay_mapchar_simple __P((void *, int));
unsigned int pcdisplay_mapchar_simple(void *, int);
#endif
int pcdisplay_mapchar __P((void *, int, unsigned int *));
void pcdisplay_putchar __P((void *, int, int, u_int, long));
void pcdisplay_copycols __P((void *, int, int, int,int));
void pcdisplay_erasecols __P((void *, int, int, int, long));
void pcdisplay_copyrows __P((void *, int, int, int));
void pcdisplay_eraserows __P((void *, int, int, long));
int pcdisplay_mapchar(void *, int, unsigned int *);
void pcdisplay_putchar(void *, int, int, u_int, long);
void pcdisplay_copycols(void *, int, int, int,int);
void pcdisplay_erasecols(void *, int, int, int, long);
void pcdisplay_copyrows(void *, int, int, int);
void pcdisplay_eraserows(void *, int, int, long);
struct wsdisplay_char;
int pcdisplay_getwschar __P((void *, struct wsdisplay_char *));
int pcdisplay_putwschar __P((void *, struct wsdisplay_char *));
int pcdisplay_getwschar(void *, struct wsdisplay_char *);
int pcdisplay_putwschar(void *, struct wsdisplay_char *);