scvesactl.c (51404) | scvesactl.c (51654) |
---|---|
1/*- 2 * Copyright (c) 1998 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1998 Kazutaka YOKOTA <yokota@zodiac.mech.utsunomiya-u.ac.jp> 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, 19 * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT 20 * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 21 * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 22 * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 23 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 24 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/syscons/scvesactl.c 51404 1999-09-19 08:58:53Z yokota $ | 26 * $FreeBSD: head/sys/dev/syscons/scvesactl.c 51654 1999-09-25 16:21:39Z phk $ |
27 */ 28 29#include "sc.h" 30#include "vga.h" 31#include "opt_syscons.h" 32#include "opt_vga.h" 33#include "opt_vesa.h" 34 --- 19 unchanged lines hidden (view full) --- 54 55static int 56vesa_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) 57{ 58 scr_stat *scp; 59 struct tty *tp; 60 int mode; 61 | 27 */ 28 29#include "sc.h" 30#include "vga.h" 31#include "opt_syscons.h" 32#include "opt_vga.h" 33#include "opt_vesa.h" 34 --- 19 unchanged lines hidden (view full) --- 54 55static int 56vesa_ioctl(dev_t dev, u_long cmd, caddr_t data, int flag, struct proc *p) 57{ 58 scr_stat *scp; 59 struct tty *tp; 60 int mode; 61 |
62 tp = scdevtotty(dev); | 62 tp = dev->si_tty; |
63 if (!tp) 64 return ENXIO; 65 scp = SC_STAT(tp->t_dev); 66 67 switch (cmd) { 68 69 /* generic text modes */ 70 case SW_TEXT_132x25: case SW_TEXT_132x30: --- 71 unchanged lines hidden --- | 63 if (!tp) 64 return ENXIO; 65 scp = SC_STAT(tp->t_dev); 66 67 switch (cmd) { 68 69 /* generic text modes */ 70 case SW_TEXT_132x25: case SW_TEXT_132x30: --- 71 unchanged lines hidden --- |