[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: parse error before "u32"



Hi Pieter,

thanks for the reply! However I would really like to set the parallell 
port into manual mode and read/write bytes from user space. Is it 
possible to do this "the normal Linux way" i.e. by ioperm() and inb() 
calls? This of course means that there is no driver active in the kernel.

Brgds

/Stefan

Pieter Grimmerink wrote:

>>-----Original Message-----
>>From: owner-dev-etrax@xxxxxxx.com]On">mailto:owner-dev-etrax@xxxxxxx.com]On
>>Behalf Of Stefan Olsson
>>Sent: dinsdag 27 januari 2004 20:23
>>To: dev-etrax@xxxxxxx.com
>>Subject: parse error before "u32"
>>    
>>
>...
>  
>
>>The code is as simple as it gets...
>>    
>>
>...
>  
>
>>int main( int argc, char *argv[] )
>>{
>>  *R_PAR0_CONFIG = 0x00000060;  // Initialise manual mode
>>    
>>
>
>These register addresses are not mapped into userspace memory.
>They can be written to from kernelspace only, so you'll have
>to write a kernel driver to do this.
>(or look for an existing one that does what you want)
>
>Regards,
>
>Pieter
>  
>