16 Feb, 2007

1 commit

  • Getting BenH's new EMAC driver working on 440GP, I found some more
    problems in the native mode paths of the new DCR code:
    - dcr_map() is supposed to return a dcr_host_t, but the native
    version is a macro that doesn't expand to an expression. With native
    DCRs, dcr_host_t is an empty structure, so we just use a constructor
    expression instead.
    - dcr_unmap() uses {} instead of the safer do {} while (0)
    idiom to implement a no-op

    Here's a fix.

    Signed-off-by: David Gibson
    Acked-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    David Gibson
     

11 Dec, 2006

1 commit


04 Dec, 2006

1 commit

  • This patch adds new dcr_map/dcr_read/dcr_write accessors for DCRs that
    can be used by drivers to transparently address either native DCRs or
    memory mapped DCRs. The implementation for memory mapped DCRs is done
    after the binding being currently worked on for SLOF and the Axon
    chipset. This patch enables it for the cell native platform

    Signed-off-by: Benjamin Herrenschmidt
    Signed-off-by: Paul Mackerras

    Benjamin Herrenschmidt