vt_core.c (273545) | vt_core.c (273921) |
---|---|
1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2009, 2013 The FreeBSD Foundation 3 * All rights reserved. 4 * 5 * This software was developed by Ed Schouten under sponsorship from the 6 * FreeBSD Foundation. 7 * 8 * Portions of this software were developed by Oleksandr Rybalko --- 17 unchanged lines hidden (view full) --- 26 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 27 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 28 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 29 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 30 * SUCH DAMAGE. 31 */ 32 33#include <sys/cdefs.h> |
34__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_core.c 273545 2014-10-23 13:32:01Z dumbbell $"); | 34__FBSDID("$FreeBSD: stable/10/sys/dev/vt/vt_core.c 273921 2014-10-31 23:10:58Z dumbbell $"); |
35 36#include "opt_compat.h" 37 38#include <sys/param.h> 39#include <sys/consio.h> 40#include <sys/eventhandler.h> 41#include <sys/fbio.h> 42#include <sys/kbio.h> --- 2163 unchanged lines hidden (view full) --- 2206 error = vtfont_load((void *)data, &vf); 2207 if (error != 0) 2208 return (error); 2209 2210 error = vt_change_font(vw, vf); 2211 vtfont_unref(vf); 2212 return (error); 2213 } | 35 36#include "opt_compat.h" 37 38#include <sys/param.h> 39#include <sys/consio.h> 40#include <sys/eventhandler.h> 41#include <sys/fbio.h> 42#include <sys/kbio.h> --- 2163 unchanged lines hidden (view full) --- 2206 error = vtfont_load((void *)data, &vf); 2207 if (error != 0) 2208 return (error); 2209 2210 error = vt_change_font(vw, vf); 2211 vtfont_unref(vf); 2212 return (error); 2213 } |
2214 case PIO_VFONT_DEFAULT: { 2215 /* Reset to default font. */ 2216 error = vt_change_font(vw, &vt_font_default); 2217 return (error); 2218 } |
|
2214 case GIO_SCRNMAP: { 2215 scrmap_t *sm = (scrmap_t *)data; 2216 2217 /* We don't have screen maps, so return a handcrafted one. */ 2218 for (i = 0; i < 256; i++) 2219 sm->scrmap[i] = i; 2220 return (0); 2221 } --- 435 unchanged lines hidden --- | 2219 case GIO_SCRNMAP: { 2220 scrmap_t *sm = (scrmap_t *)data; 2221 2222 /* We don't have screen maps, so return a handcrafted one. */ 2223 for (i = 0; i < 256; i++) 2224 sm->scrmap[i] = i; 2225 return (0); 2226 } --- 435 unchanged lines hidden --- |