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:
parent
075745f2e2
commit
4b60bc4b35
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user