From owner-freebsd-hardware Fri Oct 27 12:50:20 1995 Return-Path: owner-hardware Received: (from root@localhost) by freefall.freebsd.org (8.6.12/8.6.6) id MAA15926 for hardware-outgoing; Fri, 27 Oct 1995 12:50:20 -0700 Received: from sivka.carrier.kiev.ua (root@sivka.carrier.kiev.ua [193.125.68.130]) by freefall.freebsd.org (8.6.12/8.6.6) with ESMTP id MAA15876 for ; Fri, 27 Oct 1995 12:49:39 -0700 Received: from elvisti.kiev.ua (uucp@localhost) by sivka.carrier.kiev.ua (Sendmail 8.who.cares/5) with UUCP id VAA14965 for hardware@freebsd.org; Fri, 27 Oct 1995 21:48:37 +0200 Received: from office.elvisti.kiev.ua (office.elvisti.kiev.ua [193.125.28.33]) by spider2.elvisti.kiev.ua (8.6.12/8.ElVisti) with ESMTP id VAA01165 for ; Fri, 27 Oct 1995 21:27:52 +0200 Received: (from stesin@localhost) by office.elvisti.kiev.ua (8.6.12/8.ElVisti) id VAA09270; Fri, 27 Oct 1995 21:27:51 +0200 From: "Andrew V. Stesin" Message-Id: <199510271927.VAA09270@office.elvisti.kiev.ua> Subject: Re: MOXA C104+ 4-port serial card -- runs good for me. To: bde@zeta.org.au (Bruce Evans) Date: Fri, 27 Oct 1995 21:27:50 +0200 (EET) Cc: hardware@freebsd.org In-Reply-To: <199510271622.CAA20908@godzilla.zeta.org.au> from "Bruce Evans" at Oct 28, 95 02:22:13 am X-Mailer: ELM [version 2.4 PL24alpha5] Content-Type: text Content-Length: 1152 Sender: owner-hardware@freebsd.org Precedence: bulk # # >I couldn't find a way to set where interrupt register lives using # >flags in sio.c without stupid hacking it (FreeBSD-2.0.5 from CD), # >and finally I threw this register somewhere to a "safe" unused place, # >and configured the MOXA card as BOCA # >card (told sio.c that interrupt register is not present at all). # >Could I solve this better? # # You solved it right. BOCA cards have an interrupt register too, but # it isn't used because no one has written the code to use it and # using it would be unportable. Not using the interrupt register # costs about 20 usec per interrupt to poll all the ports. # What will be a Good Official Way of making sio.c smart about the location of the interrupt register (and this way generalizing support for MOXA, AST-4, ARNET-8, BOCA boards -- each have one but at different or tunable location)? What about two upper bytes of device flags in config file with zero value means interrupt register is _really_ missed? # Bruce # -- With best regards -- Andrew Stesin. +380 (44) 2760188 +380 (44) 2713457 +380 (44) 2713560 "...Good marketing beats good technology, every time". True?