lkml.org 
[lkml]   [2008]   [Mar]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH 16/17] Change RapidIO doorbell source and target ID field to 16-bit.
    Date
    Change RapidIO doorbell source and target ID field to 16-bit for
    support large system size, which max rio devid is 65535.

    Signed-off-by: Zhang Wei <wei.zhang@freescale.com>
    ---
    arch/powerpc/sysdev/fsl_rio.c | 8 ++++----
    1 files changed, 4 insertions(+), 4 deletions(-)

    diff --git a/arch/powerpc/sysdev/fsl_rio.c b/arch/powerpc/sysdev/fsl_rio.c
    index 350db4e..e2c7952 100644
    --- a/arch/powerpc/sysdev/fsl_rio.c
    +++ b/arch/powerpc/sysdev/fsl_rio.c
    @@ -75,13 +75,13 @@
    #define DOORBELL_DSR_TE 0x00000080
    #define DOORBELL_DSR_QFI 0x00000010
    #define DOORBELL_DSR_DIQI 0x00000001
    -#define DOORBELL_TID_OFFSET 0x03
    -#define DOORBELL_SID_OFFSET 0x05
    +#define DOORBELL_TID_OFFSET 0x02
    +#define DOORBELL_SID_OFFSET 0x04
    #define DOORBELL_INFO_OFFSET 0x06

    #define DOORBELL_MESSAGE_SIZE 0x08
    -#define DBELL_SID(x) (*(u8 *)(x + DOORBELL_SID_OFFSET))
    -#define DBELL_TID(x) (*(u8 *)(x + DOORBELL_TID_OFFSET))
    +#define DBELL_SID(x) (*(u16 *)(x + DOORBELL_SID_OFFSET))
    +#define DBELL_TID(x) (*(u16 *)(x + DOORBELL_TID_OFFSET))
    #define DBELL_INF(x) (*(u16 *)(x + DOORBELL_INFO_OFFSET))

    struct rio_atmu_regs {
    --
    1.5.4


    \
     
     \ /
      Last update: 2008-03-04 09:39    [W:0.035 / U:120.768 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site