Subject: re: Z50 Brightness & Contrast
To: None <port-hpcmips@netbsd.org>
From: None <djb_netbsd@charter.net>
List: port-hpcmips
Date: 03/20/2006 06:43:09
The IOCTLs exist in sys/arch/hpcmips/dev/ite8181.c, but do they work?
djb
int
ite8181_ioctl(v, cmd, data, flag, l)
...
case WSDISPLAYIO_PARAM_BRIGHTNESS:
VPRINTF(("ite8181_ioctl: SET:BRIGHTNESS\n"));
ite8181_init_brightness(sc, 0);
if (dispparam->curval < 0 ||
sc->sc_max_brightness < dispparam->curval)
return (EINVAL);
if (sc->sc_max_brightness > 0) {
int org = sc->sc_brightness;
ite8181_set_brightness(sc, dispparam->curval);
VPRINTF(("ite8181_ioctl: SET:BRIGHTNESS"
" org=%d, current=%d\n", org,
sc->sc_brightness));
return 0;