Subject: Re: wsdisplay_accessops initialization
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 01/29/2002 21:58:41
In article <20020129222832.A450@klamath.local>,
Julio Merino <juli@merino.net> wrote:
>-=-=-=-=-=-
>
>Hi all
>
>as I posted in another message I'm trying to port OpenBSD's mouse
>console support to NetBSD, but I've found a little problem.
>
>In the structure wsdisplay_accessops, file wsdisplayvar.h, I've
>added the following:
> void (*putchar) (void *c, int row, int col,
> u_int uc, long attr);
> u_int16_t (*getchar) (void *, int, int);
>as in OpenBSD.
>
>But I've been looking where this pointer and others in this
>structure are initialized. I haven't been able to find any
>assignment or something to those vars... I guess I need to make
>this getchar pointer to point another funcion, but I need to
>know where to do it...
>
The driver initializes these to the appropriate driver-specific functions.
christos