On Sat, Mar 29, 2003 at 12:09:44AM -0600, Harley D. Eades III wrote:Thanks for the reply,
Hello,
This might be off topic, but I hope someone can answer a question for me. Is there any documentation on parport.h parport_pc.h. I seem to get err's when I try to use either of them.
Do you have to link to a lib? I am not shere I am trying to learn more about devices and such. Any help will be appreciated.
You might try Documentation/parport.txt and Documentation/parport-lowlevel.txt in the kernel source tree.
Your question is a bit vague. What are you trying to do? What errors do you get?
Shots in the dark: Have you got "Support for user space parallel port drivers" (CONFIG_PPDEV) enabled in your kernel config? Have you installed/played with libieee1284/libieee1284-dev?
Pigeon
Really all I am doing is learning more about device drivers and such. So to learn I am reinventing the wheel and writing a cheap little printer driver just to get a hold of things. Yes my question was vague, I was up late that night so I was not all there ;). Yes all the correct parport modules are loaded. and about the libieee1284/libieee1284-dev, no I will check it out thanks. And Eric thanks for the mailing lists I will check those out also thanks for the help.
hde
Errors:
#include <linux/parport_pc.h>
int main () { return 0; }
$ gcc -c test.c
In file included from test.c:1:
/usr/include/linux/parport_pc.h:40: parse error before `dma_addr_t'
/usr/include/linux/parport_pc.h:40: warning: no semicolon at end of struct or union
/usr/include/linux/parport_pc.h:42: parse error before `}'
/usr/include/linux/parport_pc.h:44: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h:44: warning: its scope is only this definition or declaration, which is probably not what you want.
/usr/include/linux/parport_pc.h: In function `parport_pc_write_data':
/usr/include/linux/parport_pc.h:49: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:52: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_read_data':
/usr/include/linux/parport_pc.h:54: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:111: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `__parport_pc_frob_control':
/usr/include/linux/parport_pc.h:113: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h:114: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h:121: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h:122: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h:123: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:127: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_data_reverse':
/usr/include/linux/parport_pc.h:129: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:132: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_data_forward':
/usr/include/linux/parport_pc.h:134: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:138: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_write_control':
/usr/include/linux/parport_pc.h:140: `PARPORT_CONTROL_STROBE' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:140: (Each undeclared identifier is reported only once
/usr/include/linux/parport_pc.h:140: for each function it appears in.)
/usr/include/linux/parport_pc.h:141: `PARPORT_CONTROL_AUTOFD' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:142: `PARPORT_CONTROL_INIT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:143: `PARPORT_CONTROL_SELECT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:147: `KERN_DEBUG' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:147: parse error before string constant
/usr/include/linux/parport_pc.h:149: warning: passing arg 1 of `parport_pc_data_reverse' from incompatible pointer type
/usr/include/linux/parport_pc.h:152: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:155: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_read_control':
/usr/include/linux/parport_pc.h:157: `PARPORT_CONTROL_STROBE' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:158: `PARPORT_CONTROL_AUTOFD' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:159: `PARPORT_CONTROL_INIT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:160: `PARPORT_CONTROL_SELECT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:161: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h:162: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:167: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_frob_control':
/usr/include/linux/parport_pc.h:169: `PARPORT_CONTROL_STROBE' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:170: `PARPORT_CONTROL_AUTOFD' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:171: `PARPORT_CONTROL_INIT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:172: `PARPORT_CONTROL_SELECT' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:176: `KERN_DEBUG' undeclared (first use in this function)
/usr/include/linux/parport_pc.h:176: parse error before string constant
/usr/include/linux/parport_pc.h:180: warning: passing arg 1 of `parport_pc_data_reverse' from incompatible pointer type
/usr/include/linux/parport_pc.h:182: warning: passing arg 1 of `parport_pc_data_forward' from incompatible pointer type
/usr/include/linux/parport_pc.h:189: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:192: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_read_status':
/usr/include/linux/parport_pc.h:194: dereferencing pointer to incomplete type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:198: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_disable_irq':
/usr/include/linux/parport_pc.h:200: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:203: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h: In function `parport_pc_enable_irq':
/usr/include/linux/parport_pc.h:205: warning: passing arg 1 of `__parport_pc_frob_control' from incompatible pointer type
/usr/include/linux/parport_pc.h: At top level:
/usr/include/linux/parport_pc.h:208: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h:210: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h:212: warning: `struct parport_state' declared inside parameter list
/usr/include/linux/parport_pc.h:212: warning: `struct pardevice' declared inside parameter list
/usr/include/linux/parport_pc.h:214: warning: `struct parport_state' declared inside parameter list
/usr/include/linux/parport_pc.h:214: warning: `struct parport' declared inside parameter list
/usr/include/linux/parport_pc.h:216: warning: `struct parport_state' declared inside parameter list
/usr/include/linux/parport_pc.h:216: warning: `struct parport' declared inside parameter list
#
--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]