"device card" no longer being used?
韡武 張
zhangweiwu at realss.com
Fri Apr 30 06:40:16 PDT 2004
Hello. I feel a bit strange why the pcic device is commented out on FreeBSD
5.2.1 GENERIC on my old thinkpad 380XD. This way my old IBM Creditcard
Ethernet II on PCMCIA cannot be detected.
But this card is on the list of 5.2.1 hardware list. I tried to uncomment it
and get the compile error:
> cc -c -O -pipe -march=pentium-mmx -Wall -Wredundant-decls -Wnested-externs
-Wstrict-prototypes -Wmi
> ssing-prototypes -Wpointer-arith -Winline -Wcast-qual -fformat-extensions
-std=c99 -nostdinc -I-
> -I. -I/usr/src/sys -I/usr/src/sys/contrib/dev/acpica
-I/usr/src/sys/contrib/ipfilter -I/usr/src/sys/
> contrib/dev/ath -I/usr/src/sys/contrib/dev/ath/freebsd
-I/usr/src/sys/contrib/ngatm -D_KERNEL -inclu
> de opt_global.h -fno-common -finline-limit=15000 -fno-strict-aliasing
-mno-align-long-strings -mpre
> ferred-stack-boundary=2 -ffreestanding -Werror
/usr/src/sys/dev/pcic/i82365.c
> /usr/src/sys/dev/pcic/i82365.c: In function `pcic_chip_do_mem_map':
> /usr/src/sys/dev/pcic/i82365.c:849: error: structure has no member named
`offset'
> /usr/src/sys/dev/pcic/i82365.c:851: error: structure has no member named
`offset'
> /usr/src/sys/dev/pcic/i82365.c:851: error: `PCCARD_MEM_ATTR' undeclared
(first use in this function)
>
> /usr/src/sys/dev/pcic/i82365.c:851: error: (Each undeclared identifier is
reported only once
> /usr/src/sys/dev/pcic/i82365.c:851: error: for each function it appears
in.)
> /usr/src/sys/dev/pcic/i82365.c: In function `pcic_chip_mem_map':
> /usr/src/sys/dev/pcic/i82365.c:928: error: structure has no member named
`offset'
> /usr/src/sys/dev/pcic/i82365.c: In function `pcic_enable_socket':
> /usr/src/sys/dev/pcic/i82365.c:1212: warning: implicit declaration of
function `CARD_GET_TYPE'
> /usr/src/sys/dev/pcic/i82365.c:1216: error: `PCCARD_IFTYPE_IO' undeclared
(first use in this functio
> n)
> /usr/src/sys/dev/pcic/i82365.c: In function `pcic_set_res_flags':
> /usr/src/sys/dev/pcic/i82365.c:1467: error: `PCCARD_MEM_ATTR' undeclared
(first use in this function
> )
> *** Error code 1
>
> Stop in /usr/obj/usr/src/sys/TP380XD.
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
The notebook used to run FreeBSD 4.5 with kernel config:
# PCCARD (PCMCIA) support
device card
device pcic0
device pcic1
And if i compile with
device pccard
rather than
device card
I get the compile error:
> thinkpad# make kernel clean KERNCONF=TP380XD
>
> --------------------------------------------------------------
> >>> Kernel build for TP380XD started on Thu Apr 29 17:53:14 CST 2004
> --------------------------------------------------------------
> ===> TP380XD
> mkdir -p /usr/obj/usr/src/sys
> cd /usr/src/sys/i386/conf;
PATH=/usr/obj/usr/src/i386/legacy/usr/sbin:/usr/obj/usr/src/i386/legacy/
>
usr/bin:/usr/obj/usr/src/i386/legacy/usr/games:/usr/obj/usr/src/i386/usr/sbin:/usr/obj/usr/src/i386/
> usr/bin:/usr/obj/usr/src/i386/usr/games:/sbin:/bin:/usr/sbin:/usr/bin
config -d /usr/obj/usr/src/s
> ys/TP380XD /usr/src/sys/i386/conf/TP380XD
> config: Device "card" requires a count
> config: 1 errors
> *** Error code 1
>
> Stop in /usr/src.
> *** Error code 1
>
> Stop in /usr/src.
>
Does that mean FreeBSD 5.2.1 only suppor cardbus devices?
I wish I don't have to go back to 4.x thanks to that I want to use bluetooth
which is only supported in 5.x
Please give me a hint. Thank you.
More information about the freebsd-mobile
mailing list