*BSD News Article 27371


Return to BSD News archive

Newsgroups: comp.os.386bsd.questions
Path: sserve!newshost.anu.edu.au!munnari.oz.au!bruce.cs.monash.edu.au!harbinger.cc.monash.edu.au!yeshua.marcam.com!MathWorks.Com!europa.eng.gtefsd.com!howland.reston.ans.net!xlink.net!boss.pem-stuttgart.de!delos.stgt.sub.org!luva!migieger
From: migieger@luva.stgt.sub.org (Michael Giegerich)
Subject: sio: for what is flags 0x0501 needed? what's its meaning?
Organization: private FreeBSD site
Date: Sun, 13 Feb 1994 16:51:35 GMT
Message-ID: <CL69IE.14o@luva.stgt.sub.org>
Lines: 34


I'm configuring an 8 port serial card (which claims compatibility
to AST 4Port, HOSTESS, ARNET Multiport 8) for FreeBSD...

Looking around I found a mandatory (it seems) device line in the FAQ
(for 386bsd-0.2.4) regarding multi-port cards:

device sio2 at isa? port 0x1a0 tty irq 9 flags 0x0501 vector siointr
                                         ^^^^^^^^^^^^

For what is this flags 0x0501 needed for?

My multi-port card has a so called configurable IRQ register. If the
operating system supports it, this register tells which port is active
at any time (so the os doesn't have to poll the ports continously. As
I never saw another multi-port cards I don't know if this is a standard
feature).

Has the `flags' entry something to do with this?
If so, I will have the problem that the max adress I can configure
would be 0x03fc (I have a group of 8 DIP switches on the card to handle
this; each switch stands for an adress: LSB=0x0004, 0x0008, 0x0010,
0x0020, 0x0040, 0x0080, 0x0100, 0x0200=MSB. Adding all together will
give 0x03fc).

Have I to set `flags' to the value those DIP switches represent
(e.g. 0x03fc if all DIP switches are set to on)?

Any help would be much appreciated,
-Michael
-- 
------------------------------+------------------------------
Michael Giegerich             | migieger@luva.stgt.sub.org
------------------------------+------------------------------