From owner-FreeBSD-tech-jp@jp.freebsd.org  Wed Apr  7 13:53:02 1999
Received: by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) id NAA22238;
	Wed, 7 Apr 1999 13:53:02 +0900 (JST)
	(envelope-from owner-FreeBSD-tech-jp@jp.FreeBSD.org)
Received: from inet-tsb.toshiba.co.jp (inet-tsb.toshiba.co.jp [202.33.96.40])
	by jaz.jp.freebsd.org (8.9.2+3.1W/8.7.3) with ESMTP id NAA22233
	for <FreeBSD-tech-jp@jp.freebsd.org>; Wed, 7 Apr 1999 13:53:00 +0900 (JST)
	(envelope-from ogishim@jsg.komukai.toshiba.co.jp)
Received: from tis2.tis.toshiba.co.jp by inet-tsb.toshiba.co.jp (8.8.8/3.3W9-04/12/95)
	id NAA13802; Wed, 7 Apr 1999 13:51:57 +0900 (JST)
Received: from mx.toshiba.co.jp by tis2.tis.toshiba.co.jp (8.8.4+2.7Wbeta4/3.3W9-95082317)
	id NAA13923; Wed, 7 Apr 1999 13:51:57 +0900 (JST)
Received: from mugi27.jsg.komukai.toshiba.co.jp by toshiba.co.jp (8.7.1+2.6Wbeta4/3.3W9-TOSHIBA-GLOBAL SERVER) id NAA21705; Wed, 7 Apr 1999 13:51:53 +0900 (JST)
Received: from ogishim.jsg.komukai.toshiba.co.jp (kmk025233 [133.115.153.233]) by mugi27.jsg.komukai.toshiba.co.jp (8.8.5/3.5Wpl4-1.9/1.9) with SMTP
	id NAA01444 for <FreeBSD-tech-jp@jp.freebsd.org>; Wed, 7 Apr 1999 13:51:52 +0900 (JST)
Message-Id: <199904070351.AA00374@ogishim.jsg.komukai.toshiba.co.jp>
From: Shinji Ogishima <ogishim@jsg.komukai.toshiba.co.jp>
Date: Wed, 07 Apr 1999 12:51:20 +0900
To: FreeBSD-tech-jp@jp.freebsd.org
MIME-Version: 1.0
X-Mailer: AL-Mail32 Version 1.01
Content-Type: text/plain; charset=iso-2022-jp
Reply-To: FreeBSD-tech-jp@jp.freebsd.org
Precedence: list
X-Distribute: distribute version 2.1 (Alpha) patchlevel 24e+990405
X-Sequence: FreeBSD-tech-jp 2101
Subject: [FreeBSD-tech-jp 2101] RXTX =?ISO-2022-JP?B?GyRCJE4lMxsoQg==?=
 =?ISO-2022-JP?B?GyRCJXMlUSUkJWskSyREJCQkRhsoQg==?= 
Errors-To: owner-FreeBSD-tech-jp@jp.freebsd.org
Sender: owner-FreeBSD-tech-jp@jp.freebsd.org
X-Originator: ogishim@jsg.komukai.toshiba.co.jp

$B$*@$OC$K$J$j$^$9!#(B

JAVA$B$N(BCommunicationAPI$B$rAH$_9~$b$&$H;W$$!"(BRXTX$B$r%3%s%Q%$%k$7$h$&$H(B
$B$7$F$$$k$N$G$9$,!"9=B$BN(Bserial_icounter_struct$B$J$k$b$N$,2r7h$G$-$:(B
$B$&$^$/$$$-$^$;$s!#(B

RXTX$B$N4IM}<T(BTrentJarvi$B;a$K;G$C$?$H$3$m!"(B
Linux$B$G$O(B/usr/include/linux/serial.h$B$K$"$k9=B$BN(Bserial_icounter_struct
$B$KAjEv$9$k$b$N$,(BFreeBSD$B$G$O$I$3$K$"$k$N$+$o$+$i$J$$$H$N$3$H!#(B
$B$I$J$?$+$4B8CN$NJ}$,$$$i$7$?$i65$($F$$$?$@$1$^$;$s$+!)(B

$B$A$J$_$K!"(Bserial_icounter_struct$B$N(BLinux$B$G$N9=B$$O0J2<$N$H$*$j$G$9!#(B
struct serial_icounter_struct {
        int cts, dsr, rng, dcd;
        int rx, tx;
        int frame, overrun, parity, brk;
        int buf_overrun;
        int reserved[9];
};

RXTX$B$O(B http://jarvi.ezlink.com/rxtx $B$K$"$j$^$9!#(B

$B$^$?!"0J2<$K(BTrentJarvi$B;a$+$i$N%a!<%k$rE:IU$7$^$9!#(B
We are looking at differences at the kernel level here.  TCGIOCOUNT and
serial_icounter_struct may well not exhist.  I'm going to get the bsd
kernel source and see just how its handled.  Until then you can try
commenting out the TCGIOCOUNT and the high buadrate thats not defined.

Defining your own serial_icounter_struct will not work.  The kernel has to
know about it.  On linux I can look in /usr/include/linux to find files
that tell me what the kernel knows about (serial.h in this case).

TCGIOCOUNT is a 'secret' word the kernel knows means fill the
serial_icounter_struct with information about whats happened on the serial
port.  The second patch I sent you tries to comment out this code knowing
that bsd will be different at this level.

I will look into this some more.  I cant figure out how to find the exact
files I'm interested in on the internet so I may have to download a large
portion of freebsd.

Trent Jarvi
