Changeset 481 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages
- Timestamp:
- Oct 27, 2012, 12:52:21 PM (12 years ago)
- google:author:
- aitotat@gmail.com
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm
r459 r481 188 188 189 189 g_rgwChoiceToValueLookupForDevice: 190 dw DEVICE_8BIT_JRIDE_ISA191 dw DEVICE_8BIT_XTCF192 dw DEVICE_8BIT_XTIDE_REV2193 dw DEVICE_8BIT_XTIDE_REV1194 190 dw DEVICE_16BIT_ATA 195 191 dw DEVICE_32BIT_ATA 192 dw DEVICE_8BIT_ATA 193 dw DEVICE_8BIT_XTIDE_REV1 194 dw DEVICE_8BIT_XTIDE_REV2 195 dw DEVICE_8BIT_XTCF_PIO8 196 dw DEVICE_8BIT_XTCF_DMA 197 dw DEVICE_8BIT_XTCF_MEMMAP 198 dw DEVICE_8BIT_JRIDE_ISA 196 199 dw DEVICE_SERIAL_PORT 197 200 g_rgszValueToStringLookupForDevice: 198 dw g_szValueCfgDeviceJrIdeIsa199 dw g_szValueCfgDeviceFast200 dw g_szValueCfgDeviceRev2201 dw g_szValueCfgDeviceRev1202 201 dw g_szValueCfgDevice16b 203 202 dw g_szValueCfgDevice32b 203 dw g_szValueCfgDevice8b 204 dw g_szValueCfgDeviceRev1 205 dw g_szValueCfgDeviceRev2 206 dw g_szValueCfgDevicePioXTCF 207 dw g_szValueCfgDeviceDmaXTCF 208 dw g_szValueCfgDeviceMemXTCF 209 dw g_szValueCfgDeviceJrIdeIsa 204 210 dw g_szValueCfgDeviceSerial 205 211 … … 297 303 mov [cs:g_MenuitemIdeControllerDevice+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 298 304 299 lea ax, [bx+IDEVARS.w Port]305 lea ax, [bx+IDEVARS.wBasePort] 300 306 mov [cs:g_MenuitemIdeControllerCommandBlockAddress+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 301 307 … … 306 312 mov [cs:g_MenuitemIdeControllerSerialBaud+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 307 313 308 lea ax, [bx+IDEVARS.w PortCtrl]314 lea ax, [bx+IDEVARS.wControlBlockPort] 309 315 mov [cs:g_MenuitemIdeControllerControlBlockAddress+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset], ax 310 316 … … 358 364 call Buffers_GetRomvarsValueToAXfromOffsetInBX 359 365 mov bx, g_MenuitemIdeControllerEnableInterrupt 360 cmp al, DEVICE_ SERIAL_PORT366 cmp al, DEVICE_8BIT_XTIDE_REV2 361 367 jae SHORT .DisableMenuitemFromCSBX 362 cmp al, DEVICE_8BIT_XTCF363 jbe SHORT .DisableMenuitemFromCSBX364 368 365 369 call .EnableMenuitemFromCSBX … … 536 540 mov bl,[es:di] ; what is the current Device? 537 541 538 add di,IDEVARS.w Port - IDEVARS.bDevice ; Get ready to set the Port addresses542 add di,IDEVARS.wBasePort - IDEVARS.bDevice ; Get ready to set the Port addresses 539 543 540 544 cmp al,DEVICE_SERIAL_PORT … … 556 560 557 561 .writeNonSerial: 558 stosw ; Store defaults in IDEVARS.w Port and IDEVARS.wPortCtrl562 stosw ; Store defaults in IDEVARS.wBasePort and IDEVARS.wBasePortCtrl 559 563 xchg bx, ax 560 564 stosw … … 566 570 jz .done ; if we were already serial, nothing to do 567 571 568 mov byte [es:di+IDEVARS.bSerialBaud-IDEVARS.w Port],SERIAL_DEFAULT_BAUD572 mov byte [es:di+IDEVARS.bSerialBaud-IDEVARS.wBasePort],SERIAL_DEFAULT_BAUD 569 573 570 574 mov al,SERIAL_DEFAULT_COM 571 add di,IDEVARS.bSerialCOMPortChar-IDEVARS.w Port575 add di,IDEVARS.bSerialCOMPortChar-IDEVARS.wBasePort 572 576 call IdeControllerMenu_SerialWriteCOM 573 577 stosb
Note:
See TracChangeset
for help on using the changeset viewer.