summaryrefslogtreecommitdiffstats
path: root/sys/i386/include/console.h
diff options
context:
space:
mode:
authoryokota <yokota@FreeBSD.org>1999-02-05 11:52:13 +0000
committeryokota <yokota@FreeBSD.org>1999-02-05 11:52:13 +0000
commit6b5cb42c67aa5bea7e114c03e3ff298be4e22f17 (patch)
tree1e785ce94ccae6beb173c534b6e18429ad0ad8bb /sys/i386/include/console.h
parent2a4a03a1d96aca0a0fdcff0d1bbd8c69f95d8937 (diff)
downloadFreeBSD-src-6b5cb42c67aa5bea7e114c03e3ff298be4e22f17.zip
FreeBSD-src-6b5cb42c67aa5bea7e114c03e3ff298be4e22f17.tar.gz
- Don't assume the line length in the video memory is always the same as
the screen width. - Store the current video mode information in the `video_adapter' struct. - The size of the `v_offscreensize' field in the VESA mode information block is u_int16, not u_int8.
Diffstat (limited to 'sys/i386/include/console.h')
-rw-r--r--sys/i386/include/console.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/sys/i386/include/console.h b/sys/i386/include/console.h
index c79759c..48d71a4 100644
--- a/sys/i386/include/console.h
+++ b/sys/i386/include/console.h
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: console.h,v 1.42 1999/01/01 14:38:28 des Exp $
+ * $Id: console.h,v 1.43 1999/01/11 03:18:04 yokota Exp $
*/
#ifndef _MACHINE_CONSOLE_H_
@@ -285,6 +285,28 @@ struct ssaver {
long time;
};
+/* video mode information block */
+struct video_info {
+ int vi_mode;
+ int vi_flags;
+#define V_INFO_COLOR (1<<0)
+#define V_INFO_GRAPHICS (1<<1)
+#define V_INFO_LINEAR (1<<2)
+#define V_INFO_VESA (1<<3)
+ int vi_width;
+ int vi_height;
+ int vi_cwidth;
+ int vi_cheight;
+ int vi_depth;
+ int vi_planes;
+ u_int vi_window; /* physical address */
+ size_t vi_window_size;
+ size_t vi_window_gran;
+ u_int vi_buffer; /* physical address */
+ size_t vi_buffer_size;
+ /* XXX pixel format, memory model,... */
+};
+
/* adapter infromation block */
struct video_adapter {
int va_index;
@@ -317,7 +339,8 @@ struct video_adapter {
int va_initial_mode;
int va_initial_bios_mode;
int va_mode;
- int va_mode_flags; /* copy of vi_flags */
+ struct video_info va_info;
+ int va_line_width;
void *va_token;
};
@@ -340,34 +363,12 @@ struct video_adapter_info {
int va_initial_mode;
int va_initial_bios_mode;
int va_mode;
- int va_mode_flags;
+ int va_line_width;
};
#define V_ADP_PRIMARY 0
#define V_ADP_SECONDARY 1
-/* video mode information block */
-struct video_info {
- int vi_mode;
- int vi_flags;
-#define V_INFO_COLOR (1<<0)
-#define V_INFO_GRAPHICS (1<<1)
-#define V_INFO_LINEAR (1<<2)
-#define V_INFO_VESA (1<<3)
- int vi_width;
- int vi_height;
- int vi_cwidth;
- int vi_cheight;
- int vi_depth;
- int vi_planes;
- u_int vi_window; /* physical address */
- size_t vi_window_size;
- size_t vi_window_gran;
- u_int vi_buffer; /* physical address */
- size_t vi_buffer_size;
- /* XXX pixel format, memory model,... */
-};
-
struct keyboard_info {
int kb_index; /* kbdio index# */
char kb_name[16]; /* driver name */
OpenPOWER on IntegriCloud