Add FBIO_BLANK ioctl support. Return ENODEV for yet-to-be-
supported ioctls for now.
This commit is contained in:
parent
6d1699583d
commit
eac47d67be
@ -799,12 +799,18 @@ fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg)
|
||||
*(u_int *)arg = adp->va_line_width;
|
||||
break;
|
||||
|
||||
case FBIO_BLANK: /* blank display */
|
||||
error = (*vidsw[adp->va_index]->blank_display)(adp, *(int *)arg);
|
||||
break;
|
||||
|
||||
case FBIO_GETPALETTE: /* get color palette */
|
||||
case FBIO_SETPALETTE: /* set color palette */
|
||||
/* XXX */
|
||||
|
||||
case FBIOPUTCMAP:
|
||||
case FBIOGETCMAP:
|
||||
case FBIOPUTCMAPI:
|
||||
case FBIOGETCMAPI:
|
||||
/* XXX */
|
||||
|
||||
case FBIO_SETWINORG: /* set frame buffer window origin */
|
||||
@ -815,11 +821,14 @@ fb_commonioctl(video_adapter_t *adp, u_long cmd, caddr_t arg)
|
||||
case FBIOGATTR:
|
||||
case FBIOSVIDEO:
|
||||
case FBIOGVIDEO:
|
||||
case FBIOVERTICAL:
|
||||
case FBIOSCURSOR:
|
||||
case FBIOGCURSOR:
|
||||
case FBIOSCURPOS:
|
||||
case FBIOGCURPOS:
|
||||
case FBIOGCURMAX:
|
||||
case FBIOMONINFO:
|
||||
case FBIOGXINFO:
|
||||
|
||||
default:
|
||||
error = ENODEV;
|
||||
|
@ -581,6 +581,11 @@ sc_vid_ioctl(struct tty *tp, u_long cmd, caddr_t data, int flag, struct proc *p)
|
||||
return ENODEV; /* XXX */
|
||||
return fb_ioctl(adp, cmd, data);
|
||||
|
||||
case FBIO_BLANK:
|
||||
if (scp != scp->sc->cur_scp)
|
||||
return ENODEV; /* XXX */
|
||||
return fb_ioctl(adp, cmd, data);
|
||||
|
||||
#ifndef SC_NO_MODE_CHANGE
|
||||
/* generic text modes */
|
||||
case SW_TEXT_80x25: case SW_TEXT_80x30:
|
||||
|
Loading…
Reference in New Issue
Block a user