[Asterisk-Users] Two AVM Fritz Card (hack does not work)
what I am doing wrong?
Jakob Strebel
mail at teamstrebel.ch
Mon Mar 22 14:56:09 MST 2004
Thomas,
I restarted the hack and found that I did not edit all the files in
src.drv. My mistake sorry.
jakob at asterisk:/usr/src/fritz2/src.drv$ grep _fcpci_ *
defs.h:#elif defined (__fcpci__)
driver.c:#elif defined (__fcpci__)
driver.c:#if defined (__fcpci__)
driver.c:#if defined (__fcpci__)
driver.c:#if defined (__fcpci__) && defined (SHARED_IRQ)
driver.c:#elif defined (__fcpci__)
main.c:#if defined (__fcpci__)
main.c:#if defined (__fcpci__)
main.c:#if defined (__fcpci__) || (defined (__fcpnp__) && defined
(CONFIG_ISAPNP))
main.c:#if defined (__fcpci__) || (defined (__fcpnp__) && defined
(CONFIG_ISAPNP))
So I fixed this, changed all _fcpci_ to _f2pci_. Now I am running into a
new problems.
IF I change _fcpci_ to f2pci in defs.h (but change all fcpci to f2pci in
driver.c and main.c )then I get the following error:
main.c: At top level:
main.c:60: error: parse error before "PRODUCT_LOGO"
main.c: In function `fritz_init':
main.c:140: error: `PRODUCT_LOGO' undeclared (first use in this function)
main.c:140: error: (Each undeclared identifier is reported only once
main.c:140: error: for each function it appears in.)
main.c:140: error: parse error before string constant
make[1]: *** [main.o] Error 1
make[1]: Leaving directory `/usr/src/fritz2/src.drv'
make: *** [drv] Error 2
IF I change all _fcpci_ to _f2pci_ in def.h, driver.c and main.c then I get
the error below.
driver.c:96:3: #error You must define a card identifier...
driver.c: In function `install_card':
driver.c:432: error: `IO_RANGE' undeclared (first use in this function)
driver.c:432: error: (Each undeclared identifier is reported only once
driver.c:432: error: for each function it appears in.)
driver.c:440: error: `ID_OFFSET' undeclared (first use in this function)
driver.c:444: error: `CARD_ID' undeclared (first use in this function)
driver.c: In function `remove_card':
driver.c:489: error: `IO_RANGE' undeclared (first use in this function)
driver.c: In function `add_card':
driver.c:617: warning: implicit declaration of function `find_card'
driver.c:619: error: `PCI_OK' undeclared (first use in this function)
driver.c:621: error: `PCI_NO_PCI_KERN' undeclared (first use in this function)
driver.c:624: error: `PCI_NO_CARD' undeclared (first use in this function)
driver.c:627: error: `PCI_NO_PCI' undeclared (first use in this function)
driver.c: In function `params_ok':
driver.c:1172: error: `IO_RANGE' undeclared (first use in this function)
/usr/src/linux/include/asm/string.h: At top level:
driver.c:113: warning: `sched_lock' defined but not used
make[1]: *** [driver.o] Error 1
make[1]: Leaving directory `/usr/src/fritz2/src.drv'
make: *** [drv] Error 2
I guess there is something missing, but what where ?
Thanks in advance for your help
jakob
More information about the asterisk-users
mailing list