vesa.h (f45c063aa733372110aea20ec8185bb8b5c4438e) | vesa.h (ee5e90dab2f9a19b419e622830612bf05cd6cce9) |
---|---|
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 --- 12 unchanged lines hidden (view full) --- 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$ 27 */ 28 | 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 --- 12 unchanged lines hidden (view full) --- 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$ 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_ */ |