Re: Rocketport uPCI ioaddr mapping failed under FreeBSD-5.3&CURRENT

From: John Baldwin <jhb_at_FreeBSD.org>
Date: Thu, 3 Feb 2005 13:04:41 -0500
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: <RocketPort PCI> 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_at_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_at_freebsd.org mailing list
> http://lists.freebsd.org/mailman/listinfo/freebsd-current
> To unsubscribe, send any mail to "freebsd-current-unsubscribe_at_freebsd.org"

-- 
John Baldwin <jhb_at_FreeBSD.org>  <><  http://www.FreeBSD.org/~jhb/
"Power Users Use the Power to Serve"  =  http://www.FreeBSD.org
Received on Thu Feb 03 2005 - 20:27:18 UTC

This archive was generated by hypermail 2.4.0 : Wed May 19 2021 - 11:38:27 UTC