From owner-freebsd-current@FreeBSD.ORG Sat Dec 13 13:36:27 2008 Return-Path: Delivered-To: freebsd-current@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 26CE71065672 for ; Sat, 13 Dec 2008 13:36:27 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from services.ipt.ru (services.ipt.ru [194.62.233.110]) by mx1.freebsd.org (Postfix) with ESMTP id CCB1F8FC0C for ; Sat, 13 Dec 2008 13:36:26 +0000 (UTC) (envelope-from bsam@ipt.ru) Received: from bb.ipt.ru ([194.62.233.89]) by services.ipt.ru with esmtp (Exim 4.54 (FreeBSD)) id 1LBUfR-00019Q-By; Sat, 13 Dec 2008 16:36:25 +0300 To: Marcel Moolenaar References: <92804393@bb.ipt.ru> <26722819@bb.ipt.ru> <26719629@bb.ipt.ru> <19F75E66-0535-4982-9726-E2C0A03117EA@mac.com> <94541668@bb.ipt.ru> <48144979@bb.ipt.ru> <548CF0A3-1B07-49DA-A177-6EA85FD8CF2F@mac.com> <94539778@bb.ipt.ru> <9939E942-A2FC-4240-BC14-527D45C187B7@mac.com> From: Boris Samorodov Date: Sat, 13 Dec 2008 16:36:25 +0300 In-Reply-To: <9939E942-A2FC-4240-BC14-527D45C187B7@mac.com> (Marcel Moolenaar's message of "Fri\, 12 Dec 2008 09\:48\:58 -0800") Message-ID: <94529078@bb.ipt.ru> User-Agent: Gnus/5.11 (Gnus v5.11) Emacs/22.3 (berkeley-unix) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Cc: freebsd-current@FreeBSD.org, rea-fbsd@codelabs.ru Subject: Re: Timeda 8-multiport adapter: only 2 ports available X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Dec 2008 13:36:27 -0000 Marcel Moolenaar writes: > The attached patch is a quick and dirty way to > program the ports. Can you see if it actually works and > if it makes a difference? ----- cc -O2 -pipe -fno-strict-aliasing -Werror -D_KERNEL -DKLD_MODULE -std=c99 -nostdinc -DHAVE_KERNEL_OPTION_HEADERS -include /usr/obj/usr/src/sys/BB/opt_global.h -I. -I@ -I@/contrib/altq -finline-limit=8000 --param inline-unit-growth=100 --param large-function-growth=1000 -fno-common -g -I/usr/obj/usr/src/sys/BB -mno-align-long-strings -mpreferred-stack-boundary=2 -mno-mmx -mno-3dnow -mno-sse -mno-sse2 -mno-sse3 -ffreestanding -fstack-protector -fstack-protector -Wall -Wredundant-decls -Wnested-externs -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline -Wcast-qual -Wundef -Wno-pointer-sign -fformat-extensions -c /usr/src/sys/modules/puc/../../dev/puc/puc.c /usr/src/sys/modules/puc/../../dev/puc/pucdata.c: In function 'puc_config_timedia': /usr/src/sys/modules/puc/../../dev/puc/pucdata.c:1157: error: dereferencing pointer to incomplete type /usr/src/sys/modules/puc/../../dev/puc/pucdata.c:1157: error: dereferencing pointer to incomplete type *** Error code 1 ----- That's for the line [*]: ----- --- pucdata.c (revision 185784) +++ pucdata.c (working copy) @@ -1145,6 +1145,10 @@ case PUC_CFG_GET_TYPE: *res = PUC_TYPE_SERIAL; return (0); + case PUC_CFG_INIT_PORT: + bus_write_1((struct res *)res, 1 /* IER */, [*] + (port >= 2) ? 0x10 : 0); + return (0); default: break; } ----- WBR -- Boris Samorodov (bsam) Research Engineer, http://www.ipt.ru Telephone & Internet SP FreeBSD committer, http://www.FreeBSD.org The Power To Serve