From owner-freebsd-sparc64@FreeBSD.ORG Sat Aug 2 13:48:45 2003 Return-Path: Delivered-To: freebsd-sparc64@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id F066C37B401 for ; Sat, 2 Aug 2003 13:48:45 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id 04C6443FE0 for ; Sat, 2 Aug 2003 13:48:44 -0700 (PDT) (envelope-from maxim@geddar.km.ua) Received: from geddar.km.ua (localhost [127.0.0.1]) by geddar.km.ua (8.12.9/8.12.9) with ESMTP id h72KmfPR061602; Sat, 2 Aug 2003 23:48:41 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h72KmexM061601; Sat, 2 Aug 2003 23:48:40 +0300 (EEST) Date: Sat, 2 Aug 2003 23:48:40 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030802204840.GC77415@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> <20030802101221.GB77415@km.ua> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030802101221.GB77415@km.ua> User-Agent: Mutt/1.5.4i cc: freebsd-sparc@freebsd.org Subject: Re: sio(4) driver X-BeenThere: freebsd-sparc64@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Porting FreeBSD to the Sparc List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 02 Aug 2003 20:48:46 -0000 On Sat, Aug 02, 2003 at 01:12:21PM +0300, Maxim Mazurok wrote: >>> I need to add 2 async serial port to my sparc. >>> >>> 5.1-RELEASE >>> >>> I add to kernel >>> >>> device puc >>> options PUC_FASTINTR >>> >>> but i forgot add >>> >>> device sio >>> >>> after reboot i have in dmesg: >>> >>> puc0: port 0x1030-0x103f,0x1020-0x1027,0x1018-0x101f,0x1010-0x1017,0x1008-0x100f,0x1000-0x1007 irq 4 at device 3.0 on pci1 >>> >>> card detected, but no have ports (no sio driver in kernel). >>> I rebuild kernel width sio driver and after reboot have kernel trap. >>> sio(4) diver are ported to sparc? >> >>It works only for ISA sio(4)s currently, due to some ISA specific code >>that happens to work with PCI on other platforms. I have attached a >>quick hack to fix this which I use on one of my machines, which should >>get you around the problems (it also cointains things like console >>support). >>The rework which marcel@ is doing in the perforce repository will >>fix this the right way. > >YES! >it worked! > >puc0: port 0x1030-0x103f,0x1020-0x1027,0x1018-0x101f,0x1010-0x1017,0x1008-0x100f,0x1000-0x1007 irq 4 at device 3.0 on pci1 >sio0: type 16550A >sio1: type 16550A > >BIG TNX! hmmm. i see strange.... this card inserted in my Ultra AXi motherboard. onboard i have two serial ports: sab0: addr 0x1400400000-0x140040007f irq 43 on ebus0 sabtty0: on sab0 sabtty0: console 9600,8,n,1,- sabtty1: on sab0 ports are worked. after insert dual-rs232 ports card i have worked sio0 and sio1 (see up). but in dmesg i see two strange ports: sio2 addr 0x14003803f8-0x14003803ff irq 41 on ebus0 sio2: type 16550A sio3 addr 0x14003602f8-0x14003602ff irq 42 on ebus0 sio3: type 16550A who know, what this? p.s. sorry for my bad english. -- Maxim Mazurok (MMP2-RIPE)