Hi John,

i wuold want add a syscall to write 8 or 16 bit on PortG, with
gpiosetbyte like this:

asmlinkage void sys_gpiosetbyte(unsigned char port, unsigned int bits,
 int value){
        switch(port){
        case 'G':
        case 'g':
                if((bits & 0x0000FF00)==0x0000FF00){
                port_g_data_shadow &= ~bits;
                value = (value << 8);
                *R_PORT_G_DATA = port_g_data_shadow |= value;
                };
                if((bits & 0x00FF0000)==0x00FF0000){
                port_g_data_shadow &= ~bits;
                value = (value << 16);
                *R_PORT_G_DATA = port_g_data_shadow |= value;
                };
                break;

        case 'A':
        case 'a':

        case 'B':
        case 'b':
                break;
                        }
 }

I changed also <gipo_syscall.h> , <unistd.h> but i can't find
<syscall_table.S>

Can you help me?
Thank you
Gabriele   

--- In [email protected], [EMAIL PROTECTED] wrote:
>
> what exactly is the syscall supposed to do ?
> 
> 
> 
> Quoting gabrielepinca <[EMAIL PROTECTED]>:
> 
> > Someone know how to add system call at the fox? I need for user guide
> > or tutorial... Thank you Gabriele
> >
> >
>


Reply via email to