Changeset 403 in xtideuniversalbios for trunk/XTIDE_Universal_BIOS_Configurator_v2


Ignore:
Timestamp:
Apr 20, 2012, 4:38:26 PM (13 years ago)
Author:
aitotat@…
google:author:
aitotat@gmail.com
Message:

Changes to Configurator:

  • Updated device types.
  • ROMVARS.wFlags is checked to detect what Boot Settings should be set visible.
Location:
trunk/XTIDE_Universal_BIOS_Configurator_v2/Src
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/BootMenuSettingsMenu.asm

    r399 r403  
    2626    at  MENUPAGE.fnEnter,           dw  BootMenuSettingsMenu_EnterMenuOrModifyItemVisibility
    2727    at  MENUPAGE.fnBack,            dw  ConfigurationMenu_EnterMenuOrModifyItemVisibility
    28     at  MENUPAGE.wMenuitems,        dw  8
     28    at  MENUPAGE.wMenuitems,        dw  6
    2929iend
    3030
     
    7878    at  MENUITEM.szQuickInfo,       dw  g_szNfoSerialDetect
    7979    at  MENUITEM.szHelp,            dw  g_szHelpSerialDetect
    80     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_FLAGVALUE
     80    at  MENUITEM.bFlags,            db  FLG_MENUITEM_FLAGVALUE
    8181    at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    8282    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wFlags
     
    8787iend
    8888
    89 g_MenuitemBootMnuStngsEnableBootMenu:
    90 istruc MENUITEM
    91     at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
    92     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    93     at  MENUITEM.szName,            dw  g_szItemBootEnableMenu
    94     at  MENUITEM.szQuickInfo,       dw  g_szNfoBootEnableMenu
    95     at  MENUITEM.szHelp,            dw  g_szNfoBootEnableMenu
    96     at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_MODIFY_MENU
    97     at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    98     at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wfDisplayBootMenu
    99     at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szDlgBootEnableMenu
    100     at  MENUITEM.itemValue + ITEM_VALUE.szMultichoice,              dw  g_szMultichoiceBooleanFlag
    101     at  MENUITEM.itemValue + ITEM_VALUE.rgwChoiceToValueLookup,     dw  g_rgwChoiceToValueLookupForEnableBootMenu
    102     at  MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup,    dw  g_rgszValueToStringLookupForFlagBooleans
    103     at  MENUITEM.itemValue + ITEM_VALUE.fnValueReader,              dw  ValueReaderForEnableBootMenu
    104 iend
    105 
    10689g_MenuitemBootMnuStngsDefaultBootDrive:
    10790istruc MENUITEM
     
    11194    at  MENUITEM.szQuickInfo,       dw  g_szNfoBootDrive
    11295    at  MENUITEM.szHelp,            dw  g_szHelpBootDrive
    113     at  MENUITEM.bFlags,            db  FLG_MENUITEM_BYTEVALUE
     96    at  MENUITEM.bFlags,            db  FLG_MENUITEM_VISIBLE | FLG_MENUITEM_BYTEVALUE
    11497    at  MENUITEM.bType,             db  TYPE_MENUITEM_HEX
    11598    at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.bBootDrv
     
    133116    at  MENUITEM.itemValue + ITEM_VALUE.wMaxValue,                  dw  1092
    134117iend
    135 
    136 %if 0   ; *FIXME*
    137 g_MenuitemBootMnuStngsSwapBootDriveNumbers:
    138 istruc MENUITEM
    139     at  MENUITEM.fnActivate,        dw  Menuitem_ActivateMultichoiceSelectionForMenuitemInDSSI
    140     at  MENUITEM.fnFormatValue,     dw  MenuitemPrint_WriteLookupValueStringToBufferInESDIfromShiftedItemInDSSI
    141     at  MENUITEM.szName,            dw  g_szItemBootSwap
    142     at  MENUITEM.szQuickInfo,       dw  g_szNfoBootSwap
    143     at  MENUITEM.szHelp,            dw  g_szHelpBootSwap
    144     at  MENUITEM.bFlags,            db  FLG_MENUITEM_FLAGVALUE
    145     at  MENUITEM.bType,             db  TYPE_MENUITEM_MULTICHOICE
    146     at  MENUITEM.itemValue + ITEM_VALUE.wRomvarsValueOffset,        dw  ROMVARS.wFlags
    147     at  MENUITEM.itemValue + ITEM_VALUE.szDialogTitle,              dw  g_szDlgBootSwap
    148     at  MENUITEM.itemValue + ITEM_VALUE.szMultichoice,              dw  g_szMultichoiceBooleanFlag
    149     at  MENUITEM.itemValue + ITEM_VALUE.rgszValueToStringLookup,    dw  g_rgszValueToStringLookupForFlagBooleans
    150     at  MENUITEM.itemValue + ITEM_VALUE.wValueBitmask,              dw  FLG_ROMVARS_DRVXLAT
    151 iend
    152 %endif
    153118
    154119
     
    199164    pop     ds
    200165    call    EnableOrDisableBootMenuSettings
     166    call    EnableOrDisableSerialSettings
    201167    mov     si, g_MenupageForBootMenuSettingsMenu
    202168    jmp     Menupage_ChangeToNewMenupageInDSSI
     
    214180ALIGN JUMP_ALIGN
    215181EnableOrDisableBootMenuSettings:
    216     mov     bx, [cs:g_MenuitemBootMnuStngsEnableBootMenu+MENUITEM.itemValue+ITEM_VALUE.wRomvarsValueOffset]
     182    mov     bx, ROMVARS.wFlags
    217183    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
    218     test    ax, ax
     184    test    ax, FLG_ROMVARS_MODULE_BOOT_MENU
    219185    mov     al, FLG_MENUITEM_VISIBLE
    220186    jz      SHORT .DisableBootMenuSettings
    221187
    222188    ; Enable boot menu related
    223     or      [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al
    224189    or      [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al
    225 ;   or      [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al
    226190    ret
    227191
    228192.DisableBootMenuSettings:
    229193    not     ax
    230     and     [g_MenuitemBootMnuStngsDefaultBootDrive+MENUITEM.bFlags], al
    231194    and     [g_MenuitemBootMnuStngsSelectionTimeout+MENUITEM.bFlags], al
    232 ;   and     [g_MenuitemBootMnuStngsSwapBootDriveNumbers+MENUITEM.bFlags], al
     195    ret
     196
     197
     198;--------------------------------------------------------------------
     199; EnableOrDisableSerialSettings
     200;   Parameters:
     201;       SS:BP:  Menu handle
     202;   Returns:
     203;       Nothing
     204;   Corrupts registers:
     205;       AX, BX
     206;--------------------------------------------------------------------
     207EnableOrDisableSerialSettings:
     208    mov     bx, ROMVARS.wFlags
     209    call    Buffers_GetRomvarsValueToAXfromOffsetInBX
     210    test    ax, FLG_ROMVARS_MODULE_SERIAL
     211    mov     al, FLG_MENUITEM_VISIBLE
     212    jz      SHORT .DisableSerialSettings
     213
     214    ; Enable serial related
     215    or      [g_MenuitemBootMenuSerialScanDetect+MENUITEM.bFlags], al
     216    ret
     217
     218.DisableSerialSettings:
     219    not     ax
     220    and     [g_MenuitemBootMenuSerialScanDetect+MENUITEM.bFlags], al
    233221    ret
    234222
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Menupages/IdeControllerMenu.asm

    r399 r403  
    188188
    189189g_rgwChoiceToValueLookupForDevice:
    190     dw  DEVICE_XTIDE_REV1
    191     dw  DEVICE_XTIDE_REV2
    192     dw  DEVICE_FAST_XTIDE
     190    dw  DEVICE_8BIT_JRIDE_ISA
     191    dw  DEVICE_8BIT_FAST_XTIDE
     192    dw  DEVICE_8BIT_XTIDE_REV2
     193    dw  DEVICE_8BIT_XTIDE_REV1
    193194    dw  DEVICE_16BIT_ATA
    194195    dw  DEVICE_32BIT_ATA
    195196    dw  DEVICE_SERIAL_PORT
    196     dw  DEVICE_JRIDE_ISA
    197197g_rgszValueToStringLookupForDevice:
     198    dw  g_szValueCfgDeviceJrIdeIsa
     199    dw  g_szValueCfgDeviceFast
     200    dw  g_szValueCfgDeviceRev2
    198201    dw  g_szValueCfgDeviceRev1
    199     dw  g_szValueCfgDeviceRev2
    200     dw  g_szValueCfgDeviceFast
    201202    dw  g_szValueCfgDevice16b
    202203    dw  g_szValueCfgDevice32b
    203204    dw  g_szValueCfgDeviceSerial
    204     dw  g_szValueCfgDeviceJrIdeIsa
     205
    205206
    206207g_rgbChoiceToValueLookupForCOM:
  • trunk/XTIDE_Universal_BIOS_Configurator_v2/Src/Strings.asm

    r399 r403  
    238238
    239239g_szMultichoiceCfgDevice:
     240                        db  "JR-IDE/ISA",LF
     241                        db  "Fast XTIDE (CPLD v2 project)",LF
     242                        db  "XTIDE rev 2 or modded rev 1",LF
    240243                        db  "XTIDE rev 1",LF
    241                         db  "XTIDE rev 2 or modded rev 1",LF
    242                         db  "Fast XTIDE (CPLD v2 project)",LF
    243244                        db  "16-bit ISA/VLB/PCI IDE",LF
    244245                        db  "32-bit VLB/PCI IDE",LF
    245                         db  "Serial port virtual device",LF
    246                         db  "JR-IDE/ISA",NULL
     246                        db  "Serial port virtual device",NULL
     247
    247248
    248249g_szSerialCOMChoice:
     
    295296
    296297
     298g_szValueCfgDeviceJrIdeIsa: db  "JR-ISA",NULL
     299g_szValueCfgDeviceFast:     db  "Fast XT",NULL
     300g_szValueCfgDeviceRev2:     db  "XTIDE r2",NULL
    297301g_szValueCfgDeviceRev1:     db  "XTIDE r1",NULL
    298 g_szValueCfgDeviceRev2:     db  "XTIDE r2",NULL
    299 g_szValueCfgDeviceFast:     db  "Fast XT",NULL
    300302g_szValueCfgDevice16b:      db  "16-bit",NULL
    301303g_szValueCfgDevice32b:      db  "32-bit",NULL
    302304g_szValueCfgDeviceSerial:   db  "Serial",NULL
    303 g_szValueCfgDeviceJrIdeIsa: db  "JR-ISA",NULL
     305
    304306
    305307
     
    351353
    352354; Strings for boot settings menu
    353 g_szItemBootEnableMenu: db  "Boot Menu",NULL
    354355g_szItemBootTimeout:    db  "Selection timeout",NULL
    355356g_szItemBootDrive:      db  "Default boot drive",NULL
    356357g_szItemBootDispMode:   db  "Display Mode",NULL
    357358g_szItemBootFloppyDrvs: db  "Number of Floppy Drives",NULL
    358 ;g_szItemBootSwap:      db  "Swap boot drive numbers",NULL
    359359g_szItemSerialDetect:   db  "Scan for Serial Drives",NULL
    360360
    361 g_szDlgBootEnableMenu:  db  "Enable Boot Menu?",NULL
    362361g_szDlgBootTimeout:     db  "Enter Boot Menu selection timeout in BIOS timer ticks (2...1092).",NULL
    363 g_szDlgBootDrive:       db  "Enter default drive number (0xh for Floppy Drives, 8xh for Hard Disks, FFh for ROM boot).",NULL
    364 g_szDlgBootDispMode:    db  "Select display mode for Boot Menu.",NULL
    365 g_szDlgBootFloppyDrvs:  db  "Select number of Floppy Drives to display on boot menu.",NULL
    366 ;g_szDlgBootSwap:       db  "Enable drive number translation?",NULL
     362g_szDlgBootDrive:       db  "Enter default drive number (0xh for Floppy Drives, 8xh for Hard Disks).",NULL
     363g_szDlgBootDispMode:    db  "Select display mode.",NULL
     364g_szDlgBootFloppyDrvs:  db  "Select number of Floppy Drives in system.",NULL
    367365g_szDlgSerialDetect:    db  "Scan for serial drives?",NULL
    368366
    369 g_szNfoBootEnableMenu:  db  "Enable to display boot drive selection menu.",NULL
    370367g_szNfoBootTimeout:     db  "Menu item selection timeout in BIOS timer ticks. 1 tick = 54.9 ms.",NULL
    371368g_szNfoBootDrive:       db  "Default drive on boot menu.",NULL
    372 g_szNfoDispMode:        db  "Display Mode for Boot Menu.",NULL
    373 g_szNfoBootFloppyDrvs:  db  "Number of Floppy Drives to display on boot menu.",NULL
    374 ;g_szNfoBootSwap:       db  "Drive Number Translation (swap first drive with selected).",NULL
     369g_szNfoDispMode:        db  "Display mode to set when booting.",NULL
     370g_szNfoBootFloppyDrvs:  db  "Number of Floppy Drives in system.",NULL
    375371g_szNfoSerialDetect:    db  "Scans all standard COM ports for serial drives."
    376372                        db  " This can also be invoked by holding down ALT at the end of normal drive detection.",NULL
     
    382378g_szHelpBootFloppyDrvs: incbin  "Bootmenu_FloppyDrives.txt"
    383379                        db  NULL
    384 ;g_szHelpBootSwap:      incbin  "Bootmenu_SwapDrives.txt"
    385 ;                       db  NULL
    386380g_szHelpSerialDetect:   incbin  "Bootmenu_SerialDetect.txt"
    387381                        db  NULL
Note: See TracChangeset for help on using the changeset viewer.