From owner-freebsd-current@FreeBSD.ORG Thu Feb 3 21:27:18 2005 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A324616A509 for ; Thu, 3 Feb 2005 21:27:18 +0000 (GMT) Received: from mail26.sea5.speakeasy.net (mail26.sea5.speakeasy.net [69.17.117.28]) by mx1.FreeBSD.org (Postfix) with ESMTP id CB9EF43D41 for ; Thu, 3 Feb 2005 21:27:17 +0000 (GMT) (envelope-from jhb@FreeBSD.org) Received: (qmail 4452 invoked from network); 3 Feb 2005 21:27:17 -0000 Received: from server.baldwin.cx ([216.27.160.63]) (envelope-sender )AES256-SHA encrypted SMTP for ; 3 Feb 2005 21:27:16 -0000 Received: from [10.50.40.202] (gw1.twc.weather.com [216.133.140.1]) (authenticated bits=0) by server.baldwin.cx (8.13.1/8.13.1) with ESMTP id j13LQs9I056817; Thu, 3 Feb 2005 16:27:08 -0500 (EST) (envelope-from jhb@FreeBSD.org) From: John Baldwin To: freebsd-current@FreeBSD.org Date: Thu, 3 Feb 2005 13:04:41 -0500 User-Agent: KMail/1.6.2 References: <57062.211.96.21.195.1106558752.squirrel@webmail.catholic.org> In-Reply-To: <57062.211.96.21.195.1106558752.squirrel@webmail.catholic.org> MIME-Version: 1.0 Content-Disposition: inline Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit Message-Id: <200502031304.41476.jhb@FreeBSD.org> X-Spam-Status: No, score=-102.8 required=4.2 tests=ALL_TRUSTED, USER_IN_WHITELIST autolearn=failed version=3.0.2 X-Spam-Checker-Version: SpamAssassin 3.0.2 (2004-11-16) on server.baldwin.cx cc: wsk Subject: Re: Rocketport uPCI ioaddr mapping failed under FreeBSD-5.3&CURRENT X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 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: Thu, 03 Feb 2005 21:27:18 -0000 On Monday 24 January 2005 04:25 am, wsk wrote: > hi,folks: > > after installed RocketPort uPCI card into my box;it > dumps the follow eror msgs: > > rp0: port 0xde00-0xdeff,0xdd80-0xddff mem > 0xfcedff80-0xfcedffff > irq 19 at device 10.0 on pci2 > rp0: failed: rid 0x10 is memory, requested 4 > rp0: ioaddr mapping failed for RocketPort(PCI). > device_attach: rp0 attach returned 6 Looks like you need to change the driver to map its io addresses from a different BAR for this chip ID since BAR 0 is memory, not I/O. I'm not sure this driver will work with this card, btw, but you can try changing this line in the attach function of sys/dev/rp/rp_pci.c: ctlp->io_rid[0] = 0x10; to use either '0x14' or '0x18' rather than '0x10' and see if it works. > and pciconfig the rp0: > rp0@pci2:10:0: class=0x078000 card=0x080511fe chip=0x080511fe rev=0x01 > hdr=0x00 > vendor = 'Comtrol Corp' > class = simple comms > > and downloaded the 1800255A file and follwed the README from > www.comtrol.com. During the buildkernel, I got errors: > > cc -c -O -pipe -Wall -Wredundant-decls -Wnested-externs > -Wstrict-prototypes -Wmissing-prototypes -Wpointer-arith -Winline > -Wcast-qual -fformat-extensions -std=c99 -nostdinc -I- -I. -I../../.. > -I../../../contrib/dev/acpica -I../../../contrib/altq > -I../../../contrib/ipfilter -I../../../contrib/pf > -I../../../contrib/dev/ath -I../../../contrib/dev/ath/freebsd > -I../../../contrib/ngatm -D_KERNEL -include opt_global.h -fno-common > -finline-limit=8000 --param inline-unit-growth=100 --param > large-function-growth=1000 -mno-align-long-strings > -mpreferred-stack-boundary=2 -ffreestanding -Werror ../../../dev/rp/rp.c > ../../../dev/rp/rp.c: In function `rp_do_receive': > ../../../dev/rp/rp.c:772: error: request for member `l_rint' in something > not a structure or union > ../../../dev/rp/rp.c:820: error: request for member `l_rint' in something > not a structure or union > ../../../dev/rp/rp.c: In function `rp_handle_port': > ../../../dev/rp/rp.c:850: error: request for member `l_modem' in something > not a structure or union > ../../../dev/rp/rp.c:854: error: request for member `l_modem' in something > not a structure or union > ../../../dev/rp/rp.c:855: error: request for member `l_modem' in something > not a structure or union > ../../../dev/rp/rp.c: In function `rp_do_poll': > ../../../dev/rp/rp.c:903: error: request for member `l_start' in something > not a structure or union > ../../../dev/rp/rp.c: In function `rp_attachcommon': > ../../../dev/rp/rp.c:982: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c:985: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c:988: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c:991: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c:994: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c:997: warning: assignment makes integer from pointer > without a cast > ../../../dev/rp/rp.c: In function `rp_releaseresource': > ../../../dev/rp/rp.c:1077: warning: passing arg 1 of `destroy_dev' makes > pointer from integer without a cast > ../../../dev/rp/rp.c: In function `rpopen': > ../../../dev/rp/rp.c:1088: error: argument "dev" doesn't match prototype > ../../../dev/rp/rp.c:672: error: prototype declaration > ../../../dev/rp/rp.c:1096: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1097: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1102: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1108: error: invalid type argument of `->' > ../../../dev/rp/rp.c:1120: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1145: warning: assignment makes pointer from integer > without a cast > ../../../dev/rp/rp.c:1150: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1200: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1201: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1202: error: request for member `l_modem' in > something not a structure or union > ../../../dev/rp/rp.c:1212: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1221: error: request for member `l_open' in something > not a structure or union > ../../../dev/rp/rp.c:1224: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c: In function `rpclose': > ../../../dev/rp/rp.c:1246: error: argument "dev" doesn't match prototype > ../../../dev/rp/rp.c:673: error: prototype declaration > ../../../dev/rp/rp.c:1252: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1253: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1257: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1264: error: request for member `l_close' in > something not a structure or union > ../../../dev/rp/rp.c:1271: warning: implicit declaration of function > `ttyclose' > ../../../dev/rp/rp.c:1271: warning: nested extern declaration of `ttyclose' > ../../../dev/rp/rp.c: In function `rpread': > ../../../dev/rp/rp.c:1321: error: argument "dev" doesn't match prototype > ../../../dev/rp/rp.c:676: error: prototype declaration > ../../../dev/rp/rp.c:1326: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1327: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1331: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1335: error: request for member `l_read' in something > not a structure or union > ../../../dev/rp/rp.c: In function `rpwrite': > ../../../dev/rp/rp.c:1345: error: argument "dev" doesn't match prototype > ../../../dev/rp/rp.c:674: error: prototype declaration > ../../../dev/rp/rp.c:1351: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1352: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1356: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1367: error: request for member `l_write' in > something not a structure or union > ../../../dev/rp/rp.c: In function `rpioctl': > ../../../dev/rp/rp.c:1388: error: argument "dev" doesn't match prototype > ../../../dev/rp/rp.c:675: error: prototype declaration > ../../../dev/rp/rp.c:1403: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1404: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1410: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1413: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1415: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1418: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1460: warning: passing arg 1 of `minor' makes pointer > from integer without a cast > ../../../dev/rp/rp.c:1482: error: request for member `l_ioctl' in > something not a structure or union > ../../../dev/rp/rp.c: In function `rp_disc_optim': > ../../../dev/rp/rp.c:1763: error: request for member `l_rint' in something > not a structure or union > ../../../dev/rp/rp.c: At top level: > ../../../dev/rp/rp.c:2364: error: syntax error before "rp_pci_mod" > ../../../dev/rp/rp.c:2364: warning: type defaults to `int' in declaration > of `rp_pci_mod' > ../../../dev/rp/rp.c:2364: warning: initialization makes integer from > pointer without a cast > ../../../dev/rp/rp.c:2364: warning: excess elements in scalar initializer > ../../../dev/rp/rp.c:2364: warning: (near initialization for `rp_pci_mod') > ../../../dev/rp/rp.c:2364: warning: excess elements in scalar initializer > ../../../dev/rp/rp.c:2364: warning: (near initialization for `rp_pci_mod') > ../../../dev/rp/rp.c:2364: warning: data definition has no type or storage > class../../../dev/rp/rp.c:2364: warning: type defaults to `int' in > declaration of `DECLARE_MODULE' > ../../../dev/rp/rp.c:2364: warning: parameter names (without types) in > function declaration > ../../../dev/rp/rp.c:2364: warning: data definition has no type or storage > class../../../dev/rp/rp.c:2809: error: syntax error before "rp_isa_mod" > ../../../dev/rp/rp.c:2809: warning: type defaults to `int' in declaration > of `rp_isa_mod' > ../../../dev/rp/rp.c:2809: warning: initialization makes integer from > pointer without a cast > ../../../dev/rp/rp.c:2809: warning: excess elements in scalar initializer > ../../../dev/rp/rp.c:2809: warning: (near initialization for `rp_isa_mod') > ../../../dev/rp/rp.c:2809: warning: excess elements in scalar initializer > ../../../dev/rp/rp.c:2809: warning: (near initialization for `rp_isa_mod') > ../../../dev/rp/rp.c:2809: warning: data definition has no type or storage > class../../../dev/rp/rp.c:2809: warning: type defaults to `int' in > declaration of `DECLARE_MODULE' > ../../../dev/rp/rp.c:2809: warning: parameter names (without types) in > function declaration > ../../../dev/rp/rp.c:2809: warning: redundant redeclaration of > 'DECLARE_MODULE' > ../../../dev/rp/rp.c:2364: warning: previous declaration of > 'DECLARE_MODULE' was here > ../../../dev/rp/rp.c:2809: warning: data definition has no type or storage > class*** Error code 1 > > Stop in /usr/src/sys/i386/compile/WSK. > > thinks in any Re with appresiates! > > > > > ----------------------------------------- > This email was sent using FREE Catholic Online Webmail! > http://webmail.catholic.org/ > _______________________________________________ > freebsd-current@freebsd.org mailing list > http://lists.freebsd.org/mailman/listinfo/freebsd-current > To unsubscribe, send any mail to "freebsd-current-unsubscribe@freebsd.org" -- John Baldwin <>< http://www.FreeBSD.org/~jhb/ "Power Users Use the Power to Serve" = http://www.FreeBSD.org