OpenCores
URL https://opencores.org/ocsvn/s80186/s80186/trunk

Subversion Repositories s80186

[/] [s80186/] [trunk/] [bios/] [bda.h] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 jamieiles
// Copyright Jamie Iles, 2017
2
//
3
// This file is part of s80x86.
4
//
5
// s80x86 is free software: you can redistribute it and/or modify
6
// it under the terms of the GNU General Public License as published by
7
// the Free Software Foundation, either version 3 of the License, or
8
// (at your option) any later version.
9
//
10
// s80x86 is distributed in the hope that it will be useful,
11
// but WITHOUT ANY WARRANTY; without even the implied warranty of
12
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
13
// GNU General Public License for more details.
14
//
15
// You should have received a copy of the GNU General Public License
16
// along with s80x86.  If not, see <http://www.gnu.org/licenses/>.
17
 
18
#pragma once
19
 
20
struct __attribute__((packed)) bios_data_area {
21
    unsigned short com_addresses[4];
22
    unsigned short lpt_addresses[4];
23
    unsigned short equipment_list;
24
    unsigned char ir_kbd_error_count;
25
    unsigned short mem_kbytes;
26
    unsigned char reserved1;
27
    unsigned char ps2_bios_control;
28
    unsigned char keyboard_flags[2];
29
    unsigned char keypad_entry;
30
    unsigned short kbd_buffer_head;
31
    unsigned short kbd_buffer_tail;
32
    unsigned short kbd_buffer[16];
33
    unsigned char drive_recalibration_status;
34
    unsigned char diskette_motor_status;
35
    unsigned char motor_shutoff_count;
36
    unsigned char diskette_status;
37
    unsigned char nec_diskette_motor_status[7];
38
    unsigned char video_mode;
39
    unsigned short num_screen_cols;
40
    unsigned short video_regen_buffer_bytes;
41
    unsigned short video_regen_offset;
42
    unsigned short cursor_offsets[8];
43
    unsigned char cursor_end;
44
    unsigned char cursor_start;
45
    unsigned char active_page;
46
    unsigned short crt_controller_base;
47
    unsigned char crt_mode_control;
48
    unsigned char cga_pallette_mask;
49
    unsigned char cassette_take_ctrl[5];
50
    unsigned short timer_counter_low;
51
    unsigned short timer_counter_high;
52
    unsigned char clock_rollover;
53
    unsigned char break_hit;
54
    unsigned short soft_reset_flag;
55
    unsigned char hard_disk_status;
56
    unsigned char num_hard_disks;
57
    unsigned char fixed_disk_control;
58
    unsigned char fixed_disk_controller_port;
59
    unsigned long parallel_timeout;
60
    unsigned long serial_timeout;
61
    unsigned short keyboard_buffer_start;
62
    unsigned short keyboard_buffer_end;
63
    unsigned char last_screen_row;
64
};

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.