lkml.org 
[lkml]   [2007]   [May]   [24]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH] $ARCH: Enable arbitary speed tty ioctls and split input/output speed
    On Thu, 24 May 2007 09:45:37 -0400
    David Woodhouse <dwmw2@infradead.org> wrote:

    > On Thu, 2007-05-24 at 14:41 +0100, Alan Cox wrote:
    > > Most people copied the x86 behaviour which makes it easy to transplant.
    > > Some are just smoking something (see ioctls.h for sh-64 and weep), others
    > > have slightly odd behaviour for historical compatibility reasons (Sparc)
    >
    > Likewise, I assume the lack of IBSHIFT on PowerPC is because of AIX?

    I assume nobody ever got around to it. CIBAUD is in the PowerPC System V
    API supplement for example and is supported by other Power OS's.

    > > When PPC wants to do arbitary baud rate it needs to resolve both of the
    > > definitions together. IBSHIFT is simply the shift you apply to the baud
    > > bits to get the input baud bits.
    >
    > Why bother introducing new IBSHIFT stuff when it can be declared
    > obsolete already -- if you want different input and output baud rates,
    > just set BOTHER and have different values c_ispeed and c_ospeed.

    BOTHER is for the output speed. BOTHER << IBSHIFT is for the input speed
    if it different to the default (and you need B0 << IBSHIFT to know if an
    input speed is being specifically set in the first place).

    CIBAUD and IBSHIFT come from standards documents so it appears to make
    sense at some level to support those standards. As everyone else in the
    Power world supports it I don't see why Linux should be different.

    Alan
    -
    To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
    the body of a message to majordomo@vger.kernel.org
    More majordomo info at http://vger.kernel.org/majordomo-info.html
    Please read the FAQ at http://www.tux.org/lkml/

    \
     
     \ /
      Last update: 2007-05-24 17:05    [W:2.649 / U:0.012 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site