Debian Codegraph @

include/bios.h

raw symbols SCIP
1 /*
2 * Copyright (C) 2002-2010 The DOSBox Team
3 *
4 * This program is free software; you can redistribute it and/or modify
5 * it under the terms of the GNU General Public License as published by
6 * the Free Software Foundation; either version 2 of the License, or
7 * (at your option) any later version.
8 *
9 * This program is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 * GNU General Public License for more details.
13 *
14 * You should have received a copy of the GNU General Public License
15 * along with this program; if not, write to the Free Software
16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
17 */
18
19 #ifndef DOSBOX_BIOS_H
20 #define DOSBOX_BIOS_H
21
22 #define BIOS_BASE_ADDRESS_COM1 0x400
23 #define BIOS_BASE_ADDRESS_COM2 0x402
24 #define BIOS_BASE_ADDRESS_COM3 0x404
25 #define BIOS_BASE_ADDRESS_COM4 0x406
26 #define BIOS_ADDRESS_LPT1 0x408
27 #define BIOS_ADDRESS_LPT2 0x40a
28 #define BIOS_ADDRESS_LPT3 0x40c
29 /* 0x40e is reserved */
30 #define BIOS_CONFIGURATION 0x410
31 /* 0x412 is reserved */
32 #define BIOS_MEMORY_SIZE 0x413
33 #define BIOS_TRUE_MEMORY_SIZE 0x415
34 /* #define bios_expansion_memory_size (*(unsigned int *) 0x415) */
35 #define BIOS_KEYBOARD_STATE 0x417
36 #define BIOS_KEYBOARD_FLAGS1 BIOS_KEYBOARD_STATE
37 #define BIOS_KEYBOARD_FLAGS2 0x418
38 #define BIOS_KEYBOARD_TOKEN 0x419
39 /* used for keyboard input with Alt-Number */
40 #define BIOS_KEYBOARD_BUFFER_HEAD 0x41a
41 #define BIOS_KEYBOARD_BUFFER_TAIL 0x41c
42 #define BIOS_KEYBOARD_BUFFER 0x41e
43 /* #define bios_keyboard_buffer (*(unsigned int *) 0x41e) */
44 #define BIOS_DRIVE_ACTIVE 0x43e
45 #define BIOS_DRIVE_RUNNING 0x43f
46 #define BIOS_DISK_MOTOR_TIMEOUT 0x440
47 #define BIOS_DISK_STATUS 0x441
48 /* #define bios_fdc_result_buffer (*(unsigned short *) 0x442) */
49 #define BIOS_VIDEO_MODE 0x449
50 #define BIOS_SCREEN_COLUMNS 0x44a
51 #define BIOS_VIDEO_MEMORY_USED 0x44c
52 #define BIOS_VIDEO_MEMORY_ADDRESS 0x44e
53 #define BIOS_VIDEO_CURSOR_POS 0x450
54
55
56 #define BIOS_CURSOR_SHAPE 0x460
57 #define BIOS_CURSOR_LAST_LINE 0x460
58 #define BIOS_CURSOR_FIRST_LINE 0x461
59 #define BIOS_CURRENT_SCREEN_PAGE 0x462
60 #define BIOS_VIDEO_PORT 0x463
61 #define BIOS_VDU_CONTROL 0x465
62 #define BIOS_VDU_COLOR_REGISTER 0x466
63 /* 0x467-0x468 is reserved */
64 #define BIOS_TIMER 0x46c
65 #define BIOS_24_HOURS_FLAG 0x470
66 #define BIOS_KEYBOARD_FLAGS 0x471
67 #define BIOS_CTRL_ALT_DEL_FLAG 0x472
68 #define BIOS_HARDDISK_COUNT 0x475
69 /* 0x474, 0x476, 0x477 is reserved */
70 #define BIOS_LPT1_TIMEOUT 0x478
71 #define BIOS_LPT2_TIMEOUT 0x479
72 #define BIOS_LPT3_TIMEOUT 0x47a
73 /* 0x47b is reserved */
74 #define BIOS_COM1_TIMEOUT 0x47c
75 #define BIOS_COM2_TIMEOUT 0x47d
76 #define BIOS_COM3_TIMEOUT 0x47e
77 #define BIOS_COM4_TIMEOUT 0x47f
78 /* 0x47e is reserved */ //<- why that?
79 /* 0x47f-0x4ff is unknow for me */
80 #define BIOS_KEYBOARD_BUFFER_START 0x480
81 #define BIOS_KEYBOARD_BUFFER_END 0x482
82
83 #define BIOS_ROWS_ON_SCREEN_MINUS_1 0x484
84 #define BIOS_FONT_HEIGHT 0x485
85
86 #define BIOS_VIDEO_INFO_0 0x487
87 #define BIOS_VIDEO_INFO_1 0x488
88 #define BIOS_VIDEO_INFO_2 0x489
89 #define BIOS_VIDEO_COMBO 0x48a
90
91 #define BIOS_KEYBOARD_FLAGS3 0x496
92 #define BIOS_KEYBOARD_LEDS 0x497
93
94 #define BIOS_WAIT_FLAG_POINTER 0x498
95 #define BIOS_WAIT_FLAG_COUNT 0x49c
96 #define BIOS_WAIT_FLAG_ACTIVE 0x4a0
97 #define BIOS_WAIT_FLAG_TEMP 0x4a1
98
99
100 #define BIOS_PRINT_SCREEN_FLAG 0x500
101
102 #define BIOS_VIDEO_SAVEPTR 0x4a8
103
104
105 #define BIOS_DEFAULT_HANDLER_LOCATION (RealMake(0xf000,0xff53))
106 #define BIOS_DEFAULT_IRQ0_LOCATION (RealMake(0xf000,0xfea5))
107 #define BIOS_DEFAULT_IRQ1_LOCATION (RealMake(0xf000,0xe987))
108 #define BIOS_DEFAULT_IRQ2_LOCATION (RealMake(0xf000,0xff55))
109
110 /* maximum of scancodes handled by keyboard bios routines */
111 #define MAX_SCAN_CODE 0x58
112
113 /* The Section handling Bios Disk Access */
114 //#define BIOS_MAX_DISK 10
115
116 //#define MAX_SWAPPABLE_DISKS 20
117
118 void BIOS_ZeroExtendedSize(bool in);
119 void char_out(Bit8u chr,Bit32u att,Bit8u page);
120 void INT10_StartUp(void);
121 void INT16_StartUp(void);
122 void INT2A_StartUp(void);
123 void INT2F_StartUp(void);
124 void INT33_StartUp(void);
125 void INT13_StartUp(void);
126
127 bool BIOS_AddKeyToBuffer(Bit16u code);
128
129 void INT10_ReloadRomFonts();
130
131 void BIOS_SetComPorts (Bit16u baseaddr[]);
132
133 #endif