summaryrefslogtreecommitdiffstats
path: root/sys/pc98
diff options
context:
space:
mode:
authornyan <nyan@FreeBSD.org>1999-08-17 04:33:11 +0000
committernyan <nyan@FreeBSD.org>1999-08-17 04:33:11 +0000
commit4b60bc4b357c96d624a7d5aa1f4ec5f15d8f55b8 (patch)
treedbe41c70525debba267b0fbf7167ec4cc1b07149 /sys/pc98
parent075745f2e2fb52fde8ec60e7f50fb9fac232769b (diff)
downloadFreeBSD-src-4b60bc4b357c96d624a7d5aa1f4ec5f15d8f55b8.zip
FreeBSD-src-4b60bc4b357c96d624a7d5aa1f4ec5f15d8f55b8.tar.gz
Use V-FAST mode register to check whether it supports V-FST mode.
Submitted by: WATANABE Takuya <sodium@xuni.ne.jp>
Diffstat (limited to 'sys/pc98')
-rw-r--r--sys/pc98/cbus/sio.c6
-rw-r--r--sys/pc98/pc98/sio.c6
2 files changed, 6 insertions, 6 deletions
diff --git a/sys/pc98/cbus/sio.c b/sys/pc98/cbus/sio.c
index bda5ad8..6d66b30 100644
--- a/sys/pc98/cbus/sio.c
+++ b/sys/pc98/cbus/sio.c
@@ -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;
diff --git a/sys/pc98/pc98/sio.c b/sys/pc98/pc98/sio.c
index bda5ad8..6d66b30 100644
--- a/sys/pc98/pc98/sio.c
+++ b/sys/pc98/pc98/sio.c
@@ -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;
OpenPOWER on IntegriCloud