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

Last change on this file since 591 was 567, checked in by krille_n_@…, 11 years ago

Changes:

  • Renamed MODULE_FEATURE_SETS to MODULE_POWER_MANAGEMENT.
  • Renamed MODULE_VERY_LATE_INITIALIZATION to MODULE_VERY_LATE_INIT and removed it from the official builds.
  • Removed the code that skips detection of slave drives on XT-CF controllers since slave drives can be used with Lo-tech ISA CompactFlash boards.
  • Added autodetection of the SVC ADP50L controller to XTIDECFG.
  • The autodetection of XT-CF controllers now requires MODULE_8BIT_IDE_ADVANCED in the loaded BIOS.
  • Fixed a bug in XTIDECFG from r502 where the "Base (cmd block) address" menu option would be displayed when a serial device was selected as the IDE controller.
  • XTIDECFG would display the "Enable interrupt" menu option for the XTIDE r1 but not for the XTIDE r2. It's now displayed for both controller types.
  • Disabled the "Internal Write Cache" menu option in the Master/Slave Drive menus for serial device type drives.
  • Optimizations and other fixes.
File size: 1.6 KB
RevLine 
[150]1; Project name : XTIDE Universal BIOS
2; Description : Device specific equates for IDE drives.
[376]3
4;
[526]5; XTIDE Universal BIOS and Associated Tools
6; Copyright (C) 2009-2010 by Tomi Tilli, 2011-2013 by XTIDE Universal BIOS Team.
[376]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.
[526]12;
[376]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
[526]16; GNU General Public License for more details.
[376]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
[414]24HSR0_RESET_WAIT_US EQU 6 ; Delay must be at least 5 us
25HSR1_RESET_WAIT_US EQU 2100 ; Delay must be at least 2 ms
[150]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)
[444]29TIMEOUT_SELECT_DRIVE_DURING_DRIVE_DETECTION EQU (500/55) ; 500 ms
[150]30TIMEOUT_MOTOR_STARTUP EQU (10000/55) ; 10 s
[432]31TIMEOUT_MAXIMUM EQU 255 ; We would actually want 31 seconds here but I don't think there are so slow drives
[150]32
[567]33%ifdef MODULE_POWER_MANAGEMENT
[473]34 TIMEOUT_BSY EQU TIMEOUT_MOTOR_STARTUP
35 TIMEOUT_DRDY EQU TIMEOUT_MOTOR_STARTUP
[400]36%else
[473]37 TIMEOUT_BSY EQU (2600/55) ; 2600 ms
38 TIMEOUT_DRDY EQU (2600/55) ; 2600 ms
[400]39%endif
[150]40
41%endif ; DEVICEIDE_INC
Note: See TracBrowser for help on using the repository browser.