home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
DOS/V Power Report 2000 April
/
VPR0004B.BIN
/
DRIVER
/
COMPAQ
/
SP12255
/
sp12255.exe
/
DMWEBC1.CAB
/
serial.tpl
< prev
next >
Wrap
Text File
|
1999-07-21
|
2KB
|
71 lines
<HTML>
<!-- $Id: cf_sysinfo.tmpl 2.2 1998/01/06 20:12:13 cboeker Exp $ -->
<!-- Copyright (C) 1997 Compaq Computer Corporation -->
<HEAD>
<SCRIPT LANGUAGE="JavaScript">
<!--
<!#tables.js>
//-->
</SCRIPT>
<!#PORT.JS>
</HEAD>
<SCRIPT LANGUAGE="JavaScript">
// get Serial Port info
<!*, DMTF|Serial Ports|*, 1, PortIndex>;
<!*, DMTF|Serial Ports|*, 2, PortIOAddress>;
<!*, DMTF|Serial Ports|*, 3, PortIRQ>;
<!*, DMTF|Serial Ports|*, 4, PortName>;
<!*, DMTF|Serial Ports|*, 5, PortConnectorType>;
<!*, DMTF|Serial Ports|*, 6, PortMaxSpeed>;
<!*, DMTF|Serial Ports|*, 7, PortCapability>;
for (i = 0; i <= PortIndex.length - 1; i++)
{
writeTableLabel(sSerialPortNum + PortIndex[i]);
writeTableHead();
writeSingleTableRowOrBlank(sBaseIOAddress + ":", "0x" + dtoh(PortIOAddress[i]));
writeSingleTableRowOrBlank(sIRQ + ":", PortIRQ[i]);
writeSingleTableRowOrBlank(sName + ":", PortName[i]);
writeSingleTableRowOrBlank(sConnectorType + ":", PortConnectorType[i]);
writeSingleTableRowOrBlank(sMaximumSpeed + ":", PortMaxSpeed[i] + " bps");
writeSingleTableRowOrBlank(sCapability + ":", PortCapability[i]);
writeTableTail();
document.write("<BR>");
// Insert blank line between each port
if (i < PortIndex.length-1)
{
writeTableTail();
document.write("<BR>");
}
}
// Function to convert from decimal to hex -- copy from JavaScript book
function htod(n)
{
return parseInt(n, 16);
}
// Function to convert from decimal to hex -- copy from JavaScript book
function dtoh(n)
{
var hd = "0123456789ABCDEF";
n = parseInt(n);
if (n < 16)
return (hd.charAt(n));
else
return (dtoh(n /16) + hd.charAt(parseInt(n%16)));
}
</SCRIPT>
</HTML>