1 /* probe.h -- definitions for the LILO probe utility
3 Copyright 1999-2005 John Coffman.
6 Licensed under the terms contained in the file 'COPYING' in the
17 unsigned int n_total_blocks;
26 int serial_no; /* added at PROBE_VERSION==4 */
30 /* structure used by int 0x13, AH=0x48 */
40 unsigned int edd_config_ptr;
45 #define EDD_DMA_BOUNDARY_TRANSP 01
46 #define EDD_PARAM_GEOM_VALID 02
49 /* the following structures are created by the biosdata.S codes */
53 unsigned short equipment;
55 #if PROBE_VERSION >= 5
56 unsigned short boot_dx;
61 /* BD_GET_VIDEO >= 1 */
73 /* BD_GET_VIDEO >= 2 */
88 /* BD_GET_VIDEO >=2 extension for PROBE_VERSION 5 */
100 /* BD_GET_VIDEO >= 3 */
120 unsigned short equipment;
123 /* BD_GET_VIDEO >= 1 */
131 /* BD_GET_VIDEO >= 2 */
144 /* BD_GET_VIDEO >= 3 */
147 unsigned char sig[4];
163 unsigned char ah; /* AL and AH were swapped */
169 unsigned char ah; /* AL and AH were swapped */
182 unsigned char ah; /* AL and AH were swapped */
188 unsigned char ah; /* AL and AH were swapped */
194 unsigned char ah; /* AL and AH were swapped */
203 unsigned char ah; /* AL and AH were swapped */
209 unsigned short size; /* 26 or 30 */
211 unsigned int cylinders;
213 unsigned int sectors;
214 long long total_sectors;
215 unsigned short sector_size;
217 unsigned short offset,
219 fn48_t reg; /* AH & flags returned from the call */
220 } edd_t; /* struct is 26; but may be 30 in mem */
222 /* the video adapter types */
223 enum {VIDEO_UNKNOWN, VIDEO_MDA, VIDEO_CGA, VIDEO_EGA, VIDEO_MCGA,
224 VIDEO_VGA, VIDEO_VESA, VIDEO_VESA_800};
230 void probe_tell (char *cmd);
232 int bios_max_devs(void);
234 int bios_device(GEOMETRY *geo, int device);
236 int get_video(void); /* return -1 on error, or adapter type [0..7] */
238 void check_bios(void); /* set up bios_passes_dl */