- make local functions/variables static
- export more cons(9) functions in pvrvar.h
This commit is contained in:
parent
c829d16824
commit
68cd53d20c
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pvr.c,v 1.29 2010/10/20 13:00:06 tsutsui Exp $ */
|
/* $NetBSD: pvr.c,v 1.30 2010/10/24 13:34:27 tsutsui Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 Marcus Comstedt.
|
* Copyright (c) 2001 Marcus Comstedt.
|
||||||
|
@ -35,7 +35,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
#include <sys/cdefs.h> /* RCS ID & Copyright macro defns */
|
||||||
|
|
||||||
__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.29 2010/10/20 13:00:06 tsutsui Exp $");
|
__KERNEL_RCSID(0, "$NetBSD: pvr.c,v 1.30 2010/10/24 13:34:27 tsutsui Exp $");
|
||||||
|
|
||||||
#include <sys/param.h>
|
#include <sys/param.h>
|
||||||
#include <sys/systm.h>
|
#include <sys/systm.h>
|
||||||
|
@ -155,43 +155,43 @@ struct pvr_softc {
|
||||||
int nscreens;
|
int nscreens;
|
||||||
};
|
};
|
||||||
|
|
||||||
int pvr_match(device_t, cfdata_t, void *);
|
static int pvr_match(device_t, cfdata_t, void *);
|
||||||
void pvr_attach(device_t, device_t, void *);
|
static void pvr_attach(device_t, device_t, void *);
|
||||||
|
|
||||||
CFATTACH_DECL_NEW(pvr, sizeof(struct pvr_softc),
|
CFATTACH_DECL_NEW(pvr, sizeof(struct pvr_softc),
|
||||||
pvr_match, pvr_attach, NULL, NULL);
|
pvr_match, pvr_attach, NULL, NULL);
|
||||||
|
|
||||||
void pvr_getdevconfig(struct fb_devconfig *);
|
static void pvr_getdevconfig(struct fb_devconfig *);
|
||||||
|
|
||||||
struct fb_devconfig pvr_console_dc;
|
static struct fb_devconfig pvr_console_dc;
|
||||||
|
|
||||||
char pvr_stdscreen_textgeom[32] = { "std" }; /* XXX yuck */
|
static char pvr_stdscreen_textgeom[32] = { "std" }; /* XXX yuck */
|
||||||
|
|
||||||
struct wsscreen_descr pvr_stdscreen = {
|
static struct wsscreen_descr pvr_stdscreen = {
|
||||||
pvr_stdscreen_textgeom, 0, 0,
|
pvr_stdscreen_textgeom, 0, 0,
|
||||||
0, /* textops */
|
0, /* textops */
|
||||||
0, 0,
|
0, 0,
|
||||||
WSSCREEN_WSCOLORS,
|
WSSCREEN_WSCOLORS,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct wsscreen_descr *_pvr_scrlist[] = {
|
static const struct wsscreen_descr *_pvr_scrlist[] = {
|
||||||
&pvr_stdscreen,
|
&pvr_stdscreen,
|
||||||
};
|
};
|
||||||
|
|
||||||
const struct wsscreen_list pvr_screenlist = {
|
static const struct wsscreen_list pvr_screenlist = {
|
||||||
sizeof(_pvr_scrlist) / sizeof(struct wsscreen_descr *), _pvr_scrlist
|
sizeof(_pvr_scrlist) / sizeof(struct wsscreen_descr *), _pvr_scrlist
|
||||||
};
|
};
|
||||||
|
|
||||||
int pvrioctl(void *, void *, u_long, void *, int, struct lwp *);
|
static int pvrioctl(void *, void *, u_long, void *, int, struct lwp *);
|
||||||
paddr_t pvrmmap(void *, void *, off_t, int);
|
static paddr_t pvrmmap(void *, void *, off_t, int);
|
||||||
|
|
||||||
int pvr_alloc_screen(void *, const struct wsscreen_descr *,
|
static int pvr_alloc_screen(void *, const struct wsscreen_descr *,
|
||||||
void **, int *, int *, long *);
|
void **, int *, int *, long *);
|
||||||
void pvr_free_screen(void *, void *);
|
static void pvr_free_screen(void *, void *);
|
||||||
int pvr_show_screen(void *, void *, int,
|
static int pvr_show_screen(void *, void *, int,
|
||||||
void (*)(void *, int, int), void *);
|
void (*)(void *, int, int), void *);
|
||||||
|
|
||||||
const struct wsdisplay_accessops pvr_accessops = {
|
static const struct wsdisplay_accessops pvr_accessops = {
|
||||||
pvrioctl,
|
pvrioctl,
|
||||||
pvrmmap,
|
pvrmmap,
|
||||||
pvr_alloc_screen,
|
pvr_alloc_screen,
|
||||||
|
@ -200,7 +200,7 @@ const struct wsdisplay_accessops pvr_accessops = {
|
||||||
NULL, /* load_font */
|
NULL, /* load_font */
|
||||||
};
|
};
|
||||||
|
|
||||||
void pvrinit(struct fb_devconfig *);
|
static void pvrinit(struct fb_devconfig *);
|
||||||
|
|
||||||
int pvr_is_console;
|
int pvr_is_console;
|
||||||
|
|
||||||
|
@ -580,9 +580,6 @@ pvrinit(struct fb_devconfig *dc)
|
||||||
|
|
||||||
/* Console support. */
|
/* Console support. */
|
||||||
|
|
||||||
void pvrcnprobe(struct consdev *);
|
|
||||||
void pvrcninit(struct consdev *);
|
|
||||||
|
|
||||||
void
|
void
|
||||||
pvrcninit(struct consdev *cndev)
|
pvrcninit(struct consdev *cndev)
|
||||||
{
|
{
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: pvrvar.h,v 1.3 2001/02/01 01:25:56 thorpej Exp $ */
|
/* $NetBSD: pvrvar.h,v 1.4 2010/10/24 13:34:27 tsutsui Exp $ */
|
||||||
|
|
||||||
/*-
|
/*-
|
||||||
* Copyright (c) 2001 Marcus Comstedt
|
* Copyright (c) 2001 Marcus Comstedt
|
||||||
|
@ -32,4 +32,6 @@
|
||||||
* POSSIBILITY OF SUCH DAMAGE.
|
* POSSIBILITY OF SUCH DAMAGE.
|
||||||
*/
|
*/
|
||||||
|
|
||||||
|
void pvrcnprobe(struct consdev *);
|
||||||
|
void pvrcninit(struct consdev *);
|
||||||
int pvr_cnattach(void);
|
int pvr_cnattach(void);
|
||||||
|
|
Loading…
Reference in New Issue