Last change
on this file since 233 was 233, checked in by gregli@…, 13 years ago |
Serial Port: split single byte port and baud into two bytes, taking advantage of the two bytes in DPT_SERIAL, which supports more serial baud rates and in particular fixed a bug where a 4x client machine couldn't talk to a 115.2K server machine. This is a wide change, touching lots of files, but most are shallow changes. DetectPrint.asm took the most significant changes, now it calculates the baud rate to display instead of using characters provided by the Configurator. The Configurator now has a new menu flag, FLG_MENUITEM_CHOICESTRINGS, for specifying that values are not linear and they should be lookedup rather than indexed. Finally, another important bug fixed here is that in some error cases, the serial port code could get into an infinite loop waiting ont the hardware; now it has a timeout.
|
File size:
667 bytes
|
Line | |
---|
1 | ; Project name : XTIDE Universal BIOS
|
---|
2 | ; Description : Sets Serial Device specific parameters to DPT.
|
---|
3 |
|
---|
4 | ; Section containing code
|
---|
5 | SECTION .text
|
---|
6 |
|
---|
7 | ;--------------------------------------------------------------------
|
---|
8 | ; SerialDPT_Finalize
|
---|
9 | ; Parameters:
|
---|
10 | ; DS:DI: Ptr to Disk Parameter Table
|
---|
11 | ; ES:SI: Ptr to 512-byte ATA information read from the drive
|
---|
12 | ; Returns:
|
---|
13 | ; Nothing
|
---|
14 | ; Corrupts registers:
|
---|
15 | ; AX, BX, CX, DX
|
---|
16 | ;--------------------------------------------------------------------
|
---|
17 | SerialDPT_Finalize:
|
---|
18 | or byte [di+DPT.bFlagsHigh], FLGH_DPT_SERIAL_DEVICE
|
---|
19 | mov ax, [es:si+ATA6.wVendor]
|
---|
20 | mov word [di+DPT_SERIAL.wSerialPortAndBaud], ax
|
---|
21 | ret
|
---|
22 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.