source: xtideuniversalbios/trunk/XTIDE_Universal_BIOS/Src/Device/Serial/SerialDPT.asm@ 600

Last change on this file since 600 was 567, checked in by krille_n_@…, 10 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: 2.5 KB
RevLine 
[150]1; Project name : XTIDE Universal BIOS
2; Description : Sets Serial Device specific parameters to DPT.
3
[376]4;
[445]5; XTIDE Universal BIOS and Associated Tools
[526]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.
[445]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
[445]16; GNU General Public License for more details.
[376]17; Visit http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
[445]18;
[376]19
[150]20; Section containing code
21SECTION .text
22
23;--------------------------------------------------------------------
24; SerialDPT_Finalize
25; Parameters:
26; DS:DI: Ptr to Disk Parameter Table
27; ES:SI: Ptr to 512-byte ATA information read from the drive
28; Returns:
[258]29; CF: Set, indicates that this is a floppy disk
[567]30; Clear, indicates that this is a hard disk
[150]31; Corrupts registers:
[242]32; AX
[150]33;--------------------------------------------------------------------
[179]34SerialDPT_Finalize:
[277]35 mov ax, [es:si+SerialServer_ATA_wPortAndBaud]
[242]36 mov [di+DPT_SERIAL.wSerialPortAndBaud], ax
[258]37
38;
[445]39; Note that this section is not under %ifdef MODULE_SERIAL_FLOPPY. It is important to
[277]40; distinguish floppy disks presented by the server and not treat them as hard disks, even
[258]41; if the floppy support is disabled.
42;
[334]43 mov al, [es:si+SerialServer_ATA_wDriveFlags]
[445]44 eSHL_IM al, 1
[334]45 mov byte [di+DPT.bFlagsHigh], al
[445]46
[179]47 ret
48
[334]49%ifndef CHECK_FOR_UNUSED_ENTRYPOINTS
[547]50 %ifdef MODULE_SERIAL_FLOPPY
[567]51 %if FLGH_DPT_SERIAL_DEVICE != 0x4 || FLGH_DPT_SERIAL_FLOPPY != 0x10 || FLGH_DPT_SERIAL_FLOPPY_TYPE_FIELD_POSITION != 5
[547]52 %error "The serial server passes FLGH values into SerialDPT_Finalize directly. If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients"
53 %endif
54 %else
55 %if FLGH_DPT_SERIAL_DEVICE != 0x4
56 %error "The serial server passes FLGH values into SerialDPT_Finalize directly. If the flag positions are changed, corresponding changes will need to be made in the serial server, and likely a version check put in to deal with servers talking to incompatible clients"
57 %endif
58 %endif ; MODULE_SERIAL_FLOPPY
[334]59%endif
Note: See TracBrowser for help on using the repository browser.