lkml.org 
[lkml]   [2011]   [Aug]   [30]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[PATCH v3 16/18] Staging: cx25821: Fix long lines in cx25821-video-upstream-ch2.h
    Date
    Fix long lines in cx25821-video-upstream-ch2.h

    Signed-off-by: Leonid V. Fedorenchik <leonidsbox@gmail.com>
    ---
    .../staging/cx25821/cx25821-video-upstream-ch2.h | 83 ++++++++++++++------
    1 files changed, 60 insertions(+), 23 deletions(-)

    diff --git a/drivers/staging/cx25821/cx25821-video-upstream-ch2.h b/drivers/staging/cx25821/cx25821-video-upstream-ch2.h
    index 029e830..c68aa29 100644
    --- a/drivers/staging/cx25821/cx25821-video-upstream-ch2.h
    +++ b/drivers/staging/cx25821/cx25821-video-upstream-ch2.h
    @@ -65,37 +65,74 @@
    #define USE_RISC_NOOP_VIDEO 1

    #ifdef USE_RISC_NOOP_VIDEO
    -#define PAL_US_VID_PROG_SIZE ((PAL_FIELD_HEIGHT) * 3 * DWORD_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    - RISC_SYNC_INSTRUCTION_SIZE + NUM_NO_OPS*DWORD_SIZE)
    +#define PAL_US_VID_PROG_SIZE \
    + (PAL_FIELD_HEIGHT * 3 * DWORD_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE + RISC_SYNC_INSTRUCTION_SIZE + \
    + NUM_NO_OPS * DWORD_SIZE)

    #define PAL_RISC_BUF_SIZE (2 * PAL_US_VID_PROG_SIZE)

    -#define PAL_VID_PROG_SIZE ((PAL_FIELD_HEIGHT*2) * 3 * DWORD_SIZE + 2*RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE + 2*NUM_NO_OPS*DWORD_SIZE)
    +#define PAL_VID_PROG_SIZE \
    + ((PAL_FIELD_HEIGHT * 2) * 3 * DWORD_SIZE + \
    + 2 * RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    + JUMP_INSTRUCTION_SIZE + 2 * NUM_NO_OPS * DWORD_SIZE)

    -#define ODD_FLD_PAL_PROG_SIZE ((PAL_FIELD_HEIGHT) * 3 * DWORD_SIZE + RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + NUM_NO_OPS*DWORD_SIZE)
    +#define ODD_FLD_PAL_PROG_SIZE \
    + (PAL_FIELD_HEIGHT * 3 * DWORD_SIZE + \
    + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    + NUM_NO_OPS * DWORD_SIZE)

    -#define NTSC_US_VID_PROG_SIZE ((NTSC_ODD_FLD_LINES + 1) * 3 * DWORD_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    - JUMP_INSTRUCTION_SIZE + NUM_NO_OPS*DWORD_SIZE)
    +#define NTSC_US_VID_PROG_SIZE \
    + ((NTSC_ODD_FLD_LINES + 1) * 3 * DWORD_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE + \
    + NUM_NO_OPS * DWORD_SIZE)

    -#define NTSC_RISC_BUF_SIZE (2 * (RISC_SYNC_INSTRUCTION_SIZE + NTSC_US_VID_PROG_SIZE))
    +#define NTSC_RISC_BUF_SIZE \
    + (2 * (RISC_SYNC_INSTRUCTION_SIZE + NTSC_US_VID_PROG_SIZE))

    -#define FRAME1_VID_PROG_SIZE ((NTSC_ODD_FLD_LINES + NTSC_FIELD_HEIGHT) * 3 * DWORD_SIZE + 2*RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE + 2*NUM_NO_OPS*DWORD_SIZE)
    -#define ODD_FLD_NTSC_PROG_SIZE ((NTSC_ODD_FLD_LINES) * 3 * DWORD_SIZE + RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + NUM_NO_OPS*DWORD_SIZE)
    +#define FRAME1_VID_PROG_SIZE \
    + ((NTSC_ODD_FLD_LINES + NTSC_FIELD_HEIGHT) * \
    + 3 * DWORD_SIZE + 2 * RISC_SYNC_INSTRUCTION_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE + \
    + 2 * NUM_NO_OPS * DWORD_SIZE)
    +
    +#define ODD_FLD_NTSC_PROG_SIZE \
    + (NTSC_ODD_FLD_LINES * 3 * DWORD_SIZE + \
    + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    + NUM_NO_OPS * DWORD_SIZE)
    #endif

    #ifndef USE_RISC_NOOP_VIDEO
    -#define PAL_US_VID_PROG_SIZE ((PAL_FIELD_HEIGHT + 1) * 3 * DWORD_SIZE + RISC_WRITECR_INSTRUCTION_SIZE)
    -#define PAL_RISC_BUF_SIZE (2 * (RISC_SYNC_INSTRUCTION_SIZE + PAL_US_VID_PROG_SIZE))
    -#define PAL_VID_PROG_SIZE ((PAL_FIELD_HEIGHT*2) * 3 * DWORD_SIZE + 2*RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE)
    -#define ODD_FLD_PAL_PROG_SIZE ((PAL_FIELD_HEIGHT) * 3 * DWORD_SIZE + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE)
    -#define ODD_FLD_NTSC_PROG_SIZE ((NTSC_ODD_FLD_LINES) * 3 * DWORD_SIZE + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE)
    -#define NTSC_US_VID_PROG_SIZE ((NTSC_ODD_FLD_LINES + 1) * 3 * DWORD_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE)
    -#define NTSC_RISC_BUF_SIZE (2 * (RISC_SYNC_INSTRUCTION_SIZE + NTSC_US_VID_PROG_SIZE))
    -#define FRAME1_VID_PROG_SIZE ((NTSC_ODD_FLD_LINES + NTSC_FIELD_HEIGHT) * 3 * DWORD_SIZE + 2*RISC_SYNC_INSTRUCTION_SIZE + \
    - RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE)
    +#define PAL_US_VID_PROG_SIZE \
    + ((PAL_FIELD_HEIGHT + 1) * 3 * DWORD_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE)
    +
    +#define PAL_RISC_BUF_SIZE \
    + (2 * (RISC_SYNC_INSTRUCTION_SIZE + PAL_US_VID_PROG_SIZE))
    +
    +#define PAL_VID_PROG_SIZE \
    + ((PAL_FIELD_HEIGHT*2) * 3 * DWORD_SIZE + \
    + 2 * RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE + \
    + JUMP_INSTRUCTION_SIZE)
    +
    +#define ODD_FLD_PAL_PROG_SIZE \
    + (PAL_FIELD_HEIGHT * 3 * DWORD_SIZE + \
    + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE)
    +
    +#define ODD_FLD_NTSC_PROG_SIZE \
    + (NTSC_ODD_FLD_LINES * 3 * DWORD_SIZE + \
    + RISC_SYNC_INSTRUCTION_SIZE + RISC_WRITECR_INSTRUCTION_SIZE)
    +
    +#define NTSC_US_VID_PROG_SIZE \
    + ((NTSC_ODD_FLD_LINES + 1) * 3 * DWORD_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE)
    +
    +#define NTSC_RISC_BUF_SIZE \
    + (2 * (RISC_SYNC_INSTRUCTION_SIZE + NTSC_US_VID_PROG_SIZE))
    +
    +#define FRAME1_VID_PROG_SIZE \
    + ((NTSC_ODD_FLD_LINES + NTSC_FIELD_HEIGHT) * \
    + 3 * DWORD_SIZE + 2 * RISC_SYNC_INSTRUCTION_SIZE + \
    + RISC_WRITECR_INSTRUCTION_SIZE + JUMP_INSTRUCTION_SIZE)
    +
    #endif
    --
    1.7.0.4


    \
     
     \ /
      Last update: 2011-08-30 06:21    [W:0.031 / U:32.844 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site