Commit 3bcfd0e7 authored by Gabriela Bittencourt's avatar Gabriela Bittencourt Committed by Greg Kroah-Hartman

staging: sm750fb: format description of parameters in accel.c

Formatting comments in file drivers/staging/sm750fb/sm750_accel.c.
Signed-off-by: default avatarGabriela Bittencourt <gabrielabittencourt00@gmail.com>

Link: https://lore.kernel.org/r/20191023163016.30217-2-gabrielabittencourt00@gmail.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 25c42086
...@@ -130,20 +130,28 @@ int sm750_hw_fillrect(struct lynx_accel *accel, ...@@ -130,20 +130,28 @@ int sm750_hw_fillrect(struct lynx_accel *accel,
return 0; return 0;
} }
int sm750_hw_copyarea( /**
struct lynx_accel *accel, * sm750_hm_copyarea
unsigned int sBase, /* Address of source: offset in frame buffer */ * @sBase: Address of source: offset in frame buffer
unsigned int sPitch, /* Pitch value of source surface in BYTE */ * @sPitch: Pitch value of source surface in BYTE
unsigned int sx, * @sx: Starting x coordinate of source surface
unsigned int sy, /* Starting coordinate of source surface */ * @sy: Starting y coordinate of source surface
unsigned int dBase, /* Address of destination: offset in frame buffer */ * @dBase: Address of destination: offset in frame buffer
unsigned int dPitch, /* Pitch value of destination surface in BYTE */ * @dPitch: Pitch value of destination surface in BYTE
unsigned int Bpp, /* Color depth of destination surface */ * @Bpp: Color depth of destination surface
unsigned int dx, * @dx: Starting x coordinate of destination surface
unsigned int dy, /* Starting coordinate of destination surface */ * @dy: Starting y coordinate of destination surface
unsigned int width, * @width: width of rectangle in pixel value
unsigned int height, /* width and height of rectangle in pixel value */ * @height: height of rectangle in pixel value
unsigned int rop2) /* ROP value */ * @rop2: ROP value
*/
int sm750_hw_copyarea(struct lynx_accel *accel,
unsigned int sBase, unsigned int sPitch,
unsigned int sx, unsigned int sy,
unsigned int dBase, unsigned int dPitch,
unsigned int Bpp, unsigned int dx, unsigned int dy,
unsigned int width, unsigned int height,
unsigned int rop2)
{ {
unsigned int nDirection, de_ctrl; unsigned int nDirection, de_ctrl;
...@@ -288,20 +296,28 @@ static unsigned int deGetTransparency(struct lynx_accel *accel) ...@@ -288,20 +296,28 @@ static unsigned int deGetTransparency(struct lynx_accel *accel)
return de_ctrl; return de_ctrl;
} }
int sm750_hw_imageblit(struct lynx_accel *accel, /**
const char *pSrcbuf, /* pointer to start of source buffer in system memory */ * sm750_hw_imageblit
u32 srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */ * @pSrcbuf: pointer to start of source buffer in system memory
u32 startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */ * @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down
u32 dBase, /* Address of destination: offset in frame buffer */ * and -ive mean button up
u32 dPitch, /* Pitch value of destination surface in BYTE */ * @startBit: Mono data can start at any bit in a byte, this value should be
u32 bytePerPixel, /* Color depth of destination surface */ * 0 to 7
u32 dx, * @dBase: Address of destination: offset in frame buffer
u32 dy, /* Starting coordinate of destination surface */ * @dPitch: Pitch value of destination surface in BYTE
u32 width, * @bytePerPixel: Color depth of destination surface
u32 height, /* width and height of rectangle in pixel value */ * @dx: Starting x coordinate of destination surface
u32 fColor, /* Foreground color (corresponding to a 1 in the monochrome data */ * @dy: Starting y coordinate of destination surface
u32 bColor, /* Background color (corresponding to a 0 in the monochrome data */ * @width: width of rectangle in pixel value
u32 rop2) /* ROP value */ * @height: height of rectangle in pixel value
* @fColor: Foreground color (corresponding to a 1 in the monochrome data
* @bColor: Background color (corresponding to a 0 in the monochrome data
* @rop2: ROP value
*/
int sm750_hw_imageblit(struct lynx_accel *accel, const char *pSrcbuf,
u32 srcDelta, u32 startBit, u32 dBase, u32 dPitch,
u32 bytePerPixel, u32 dx, u32 dy, u32 width,
u32 height, u32 fColor, u32 bColor, u32 rop2)
{ {
unsigned int ulBytesPerScan; unsigned int ulBytesPerScan;
unsigned int ul4BytesPerScan; unsigned int ul4BytesPerScan;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment