vesa.h (197022) | vesa.h (197025) |
---|---|
1/*- 2 * Copyright (c) 1998 Michael Smith and Kazutaka YOKOTA 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 AUTHORS 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 Michael Smith and Kazutaka YOKOTA 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 AUTHORS 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/fb/vesa.h 197022 2009-09-09 07:45:08Z delphij $ | 26 * $FreeBSD: head/sys/dev/fb/vesa.h 197025 2009-09-09 09:50:31Z delphij $ |
27 */ 28 | 27 */ 28 |
29#ifndef _MACHINE_PC_VESA_H 30#define _MACHINE_PC_VESA_H | 29#ifndef _DEV_FB_VESA_H_ 30#define _DEV_FB_VESA_H_ |
31 32struct vesa_info 33{ 34 /* mandatory fields */ 35 u_int8_t v_sig[4]; /* VESA */ 36 u_int16_t v_version; /* ver in BCD */ 37 u_int32_t v_oemstr; /* OEM string */ 38 u_int32_t v_flags; /* flags */ 39#define V_DAC8 (1<<0) 40#define V_NONVGA (1<<1) 41#define V_SNOW (1<<2) 42 u_int32_t v_modetable; /* modes */ 43 u_int16_t v_memsize; /* in 64K */ 44 /* 2.0 */ 45 u_int16_t v_revision; /* software rev */ 46 u_int32_t v_venderstr; /* vender */ 47 u_int32_t v_prodstr; /* product name */ 48 u_int32_t v_revstr; /* product rev */ | 31 32struct vesa_info 33{ 34 /* mandatory fields */ 35 u_int8_t v_sig[4]; /* VESA */ 36 u_int16_t v_version; /* ver in BCD */ 37 u_int32_t v_oemstr; /* OEM string */ 38 u_int32_t v_flags; /* flags */ 39#define V_DAC8 (1<<0) 40#define V_NONVGA (1<<1) 41#define V_SNOW (1<<2) 42 u_int32_t v_modetable; /* modes */ 43 u_int16_t v_memsize; /* in 64K */ 44 /* 2.0 */ 45 u_int16_t v_revision; /* software rev */ 46 u_int32_t v_venderstr; /* vender */ 47 u_int32_t v_prodstr; /* product name */ 48 u_int32_t v_revstr; /* product rev */ |
49 u_int8_t v_strach[222]; 50 u_int8_t v_oemdata[256]; |
|
49} __packed; 50 51struct vesa_mode 52{ 53 /* mandatory fields */ 54 u_int16_t v_modeattr; 55#define V_MODESUPP (1<<0) /* VESA mode attributes */ 56#define V_MODEOPTINFO (1<<1) --- 55 unchanged lines hidden (view full) --- 112 113#define VESA_MODE(x) ((x) >= M_VESA_BASE) 114 115int vesa_load_ioctl(void); 116int vesa_unload_ioctl(void); 117 118#endif 119 | 51} __packed; 52 53struct vesa_mode 54{ 55 /* mandatory fields */ 56 u_int16_t v_modeattr; 57#define V_MODESUPP (1<<0) /* VESA mode attributes */ 58#define V_MODEOPTINFO (1<<1) --- 55 unchanged lines hidden (view full) --- 114 115#define VESA_MODE(x) ((x) >= M_VESA_BASE) 116 117int vesa_load_ioctl(void); 118int vesa_unload_ioctl(void); 119 120#endif 121 |
120#endif /* !_MACHINE_PC_VESA_H */ | 122#endif /* !_DEV_FB_VESA_H_ */ |