Use V-FAST mode register to check whether it supports V-FST mode.

Submitted by:	WATANABE Takuya <sodium@xuni.ne.jp>
This commit is contained in:
nyan 1999-08-17 04:33:11 +00:00
parent 075745f2e2
commit 4b60bc4b35
2 changed files with 6 additions and 6 deletions

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sio.c,v 1.100 1999/08/09 10:35:02 phk Exp $
* $Id: sio.c,v 1.101 1999/08/09 13:03:35 nyan Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@ -4965,10 +4965,10 @@ pc98_check_if_type(device_t dev, struct siodev *iod)
iod->irq = 4;
/* XXX check new internal port. */
outb(0x138, 0);
outb(0x13a, 0);
DELAY(10);
for (tmp = 0; tmp < 100; tmp++) {
if ((inb(0x138) & 1) == 0) {
if ((inb(0x13a) & 0x80) == 0) {
PC98SIO_baud_rate_port(if_type) = 0x13a;
if_8251_type[if_type].name = " (internal fast)";
if_8251_type[if_type].speedtab = pc98fast_speedtab;

View File

@ -30,7 +30,7 @@
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* SUCH DAMAGE.
*
* $Id: sio.c,v 1.100 1999/08/09 10:35:02 phk Exp $
* $Id: sio.c,v 1.101 1999/08/09 13:03:35 nyan Exp $
* from: @(#)com.c 7.5 (Berkeley) 5/16/91
* from: i386/isa sio.c,v 1.234
*/
@ -4965,10 +4965,10 @@ pc98_check_if_type(device_t dev, struct siodev *iod)
iod->irq = 4;
/* XXX check new internal port. */
outb(0x138, 0);
outb(0x13a, 0);
DELAY(10);
for (tmp = 0; tmp < 100; tmp++) {
if ((inb(0x138) & 1) == 0) {
if ((inb(0x13a) & 0x80) == 0) {
PC98SIO_baud_rate_port(if_type) = 0x13a;
if_8251_type[if_type].name = " (internal fast)";
if_8251_type[if_type].speedtab = pc98fast_speedtab;