Skip to contentSkip to conversation

RS485: ioctls defined twice ?

DISCUSSION Claudio Scordino 2 participants 2 messages Aug 15, 2010 TTY layer and serial drivers

lore
Share & tools
lore
#0 lore raw

Hi all,

is there any reason why ioctls TIOCGRS485 and TIOCSRS485 are defined (with the same values) in both include/asm-generic/ioctls.h and arch/arm/include/asm/ioctls.h ?

The same happens also for avr32, powerpc and cris (which, however, defines a different value for TIOCSRS485).

Is it duplicated code ?

Or should these values stay in both asm/ioctls.h and asm-generic/ioctls.h ?

Many thanks,

Claudio

#1 lore raw
Quoted 3 lines · Claudio Scordino

Hi all,

is there any reason why ioctls TIOCGRS485 and TIOCSRS485 are defined

Please wrap your message sensibly so I can see it while replying to you.

Quoted 5 lines

The same happens also for avr32, powerpc and cris (which, however, defines

Is it duplicated code ?

Or should these values stay in both asm/ioctls.h and asm-generic/ioctls.h ?

As an exercise to help you answer your own question, please research how asm-generic/ioctls.h get included on an avr32, powerpc, cris or ARM kernel build.