Re: iomapping a big endian area

From: Benjamin Herrenschmidt (benh_at_kernel.crashing.org)
Date: 04/04/05

  • Next message: Tejun Heo: "Re: sata_sil Mod15Write quirk workaround patch for vanilla kernel avaialble."
    To: James Bottomley <James.Bottomley@SteelEye.com>
    Date:	Mon, 04 Apr 2005 17:50:39 +1000
    
    

    On Sat, 2005-04-02 at 22:27 -0600, James Bottomley wrote:
    > On Sat, 2005-04-02 at 20:08 -0800, David S. Miller wrote:
    > > > Did anyone have a preference for the API? I was thinking
    > > > ioread32_native, but ioread32be is fine too.
    > >
    > > I think doing foo{be,le}{8,16,32}() would be consistent with
    > > our byteorder.h interface names.
    >
    > Thinking about this some more, I know of no case of a BE bus connected
    > to a LE system, nor do I think anyone would ever create such a beast, so
    > our only missing interface is for a BE bus on a BE system.

    It's more a matter of the device than the bus imho...

    > Thus, I think io{read,write}{16,32}_native are better interfaces ...

    I disagree. The driver will never "know" ...

    > they basically mean pass memory operations without byte swaps, so
    > they're well defined on both BE and LE systems and correspond exactly to
    > our existing _raw_{read,write}{w,l} calls (principle of least surprise).

    I don't think it's sane. You know that your device is BE or LE and use
    the appropriate interface. "native" doesn't make sense to me in this
    context.

    Ben.

    -
    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/


  • Next message: Tejun Heo: "Re: sata_sil Mod15Write quirk workaround patch for vanilla kernel avaialble."

    Relevant Pages

    • Re: JOP as SOPC component
      ... order of six lines of code per interface for a point to point connection, ... I think that this is actually the power of SOPC builder. ... When you have a latency aware master and a slave then there is the one ... aware master/slaves to ones that are not, multiple bus masters, etc. ...
      (comp.arch.fpga)
    • Re: Overclocking the c64
      ... >> I'm just trying to get more info on the dot clock. ... > What do you mean with "interface it to the PC bus"? ... > cartridge port of the C64. ...
      (comp.sys.cbm)
    • Re: misc questions about the device&driver arch
      ... I know these bus interface func r called accessor functions,that call ... pci never calls its children drivers' ... what losts in pci bridge but exist in cardbusbridge: ...
      (freebsd-hackers)
    • Re: Wind measuring devices which can be attached to a pc
      ... > I see you can order the kit with either RS232-DB9 or USB. ... > RS232-DB9 being serial bus, ... > The kit doesn't specify an adapter card. ... > The one wire interface is unknown to me. ...
      (rec.windsurfing)
    • Re: [Patch] new serial flow control
      ... These are the 4 main types of serial interface that I use regularly ... RS485 4-Wire is like RS422 but the bus has the potential to go ... transmit all the time and all the slaves will listen. ... interface hardware that you want the bus to be tristate. ...
      (Linux-Kernel)