aboutsummaryrefslogtreecommitdiff
path: root/sys/alpha
diff options
context:
space:
mode:
authorKazutaka YOKOTA <yokota@FreeBSD.org>1999-02-05 11:52:13 +0000
committerKazutaka YOKOTA <yokota@FreeBSD.org>1999-02-05 11:52:13 +0000
commit1c27745f73af9ebb06283900182f82dbe8dae5ce (patch)
tree1325529e1a21497dec3bd519b75534879f69aeba /sys/alpha
parent533601dc35379a93943b9f516060f47a7e8438fa (diff)
Notes
Diffstat (limited to 'sys/alpha')
-rw-r--r--sys/alpha/include/console.h51
1 files changed, 26 insertions, 25 deletions
diff --git a/sys/alpha/include/console.h b/sys/alpha/include/console.h
index 5a140d6c8a2a..3b2305c019d9 100644
--- a/sys/alpha/include/console.h
+++ b/sys/alpha/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.41 1999/01/01 14:38:29 des Exp $
+ * $Id: console.h,v 1.42 1999/01/23 16:53:27 dfr Exp $
* from: i386/include console.h,v 1.43
*/
@@ -286,6 +286,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;
@@ -318,7 +340,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;
};
@@ -341,34 +364,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 */