source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Inc/DeviceIDE.inc@ 412

Last change on this file since 412 was 410, checked in by aitotat@…, 13 years ago

Changes to XTIDE Universal BIOS:

  • Hotkey Bar now support color attributes even when not including MODULE_BOOT_MENU.
  • Cleaned AH=09h code a bit.
  • MODULE_ADVANCED_ATA now properly changes the device type to 32-bit.
  • BSY and RDY timeouts are now 2500 ms.
File size: 1.4 KB
RevLine 
[150]1; Project name : XTIDE Universal BIOS
2; Description : Device specific equates for IDE drives.
[376]3
4;
5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2012 by XTIDE Universal BIOS Team.
7;
8; This program is free software; you can redistribute it and/or modify
9; it under the terms of the GNU General Public License as published by
10; the Free Software Foundation; either version 2 of the License, or
11; (at your option) any later version.
12;
13; This program is distributed in the hope that it will be useful,
14; but WITHOUT ANY WARRANTY; without even the implied warranty of
15; MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16; GNU General Public License for more details.
17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
18;
19
[150]20%ifndef DEVICEIDE_INC
21%define DEVICEIDE_INC
22
23; Reset delays
24HSR0_RESET_WAIT_US EQU 5 ; Delay at least 5us
25HSR1_RESET_WAIT_US EQU 2000 ; Delay at least 2ms
26
27; Polling timeout delays (system timer ticks, 1 tick = 54.9 ms)
28TIMEOUT_DRQ EQU 255 ; 14 s (some CF cards occasionally have long write delays)
29TIMEOUT_IDENTIFY_DEVICE EQU (500/55) ; 500 ms
30TIMEOUT_MOTOR_STARTUP EQU (10000/55) ; 10 s
31
[400]32%ifdef MODULE_FEATURE_SETS
33TIMEOUT_BSY EQU TIMEOUT_MOTOR_STARTUP
34TIMEOUT_DRDY EQU TIMEOUT_MOTOR_STARTUP
35%else
[410]36TIMEOUT_BSY EQU (2500/55) ; 2500 ms
37TIMEOUT_DRDY EQU (2500/55) ; 2500 ms
[400]38%endif
[150]39
40%endif ; DEVICEIDE_INC
Note: See TracBrowser for help on using the repository browser.