From owner-freebsd-sparc64@FreeBSD.ORG Fri Aug 22 06:13:59 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 D46AB16A4BF for ; Fri, 22 Aug 2003 06:13:59 -0700 (PDT) Received: from geddar.km.ua (geddar.km.ua [62.149.0.130]) by mx1.FreeBSD.org (Postfix) with ESMTP id BBDF443F75 for ; Fri, 22 Aug 2003 06:13:56 -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 h7MDDoPR097605; Fri, 22 Aug 2003 16:13:50 +0300 (EEST) (envelope-from maxim@geddar.km.ua) Received: (from maxim@localhost) by geddar.km.ua (8.12.9/8.12.9/Submit) id h7MDDnKj097604; Fri, 22 Aug 2003 16:13:49 +0300 (EEST) Date: Fri, 22 Aug 2003 16:13:49 +0300 From: Maxim Mazurok To: Thomas Moestl Message-ID: <20030822131349.GD21392@km.ua> References: <20030801132240.GA77415@km.ua> <20030801170417.GC834@crow.dom2ip.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20030801170417.GC834@crow.dom2ip.de> 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: Fri, 22 Aug 2003 13:14:00 -0000 On Fri, Aug 01, 2003 at 07:04:17PM +0200, Thomas Moestl 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. i try to upgrade my 5.1-RELEASE to 5-CURRENT. in 5-CURRENT tree this patch not applied yet. i try to apply your patch and rebuild kernel, but have this: root@fang:/sys/sparc64/compile/FANG#make all cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions -std=c99 -g -nostdinc -I- -I. -I../../.. -I../../../dev -I../../../contrib/dev/acpica -I../../../contrib/ipfilter -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd -D_KERNEL -include opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing -mcmodel=medlow -msoft-float -ffreestanding -Werror ../../../dev/sio/sio.c cc1: warnings being treated as errors ../../../dev/sio/sio.c: In function `siocnmap': ../../../dev/sio/sio.c:3448: warning: implicit declaration of function `sparc64_fake_bustag' *** Error code 1 Stop in /var/src/sys/sparc64/compile/FANG. can you help me? -- Maxim Mazurok (MMP2-RIPE)