Received: by 2002:a25:d7c1:0:0:0:0:0 with SMTP id o184csp1855398ybg; Thu, 24 Oct 2019 00:50:49 -0700 (PDT) X-Google-Smtp-Source: APXvYqxLAuuMjLrxtQTo8g6jCPDB0LS/qmDGOOS0LDI0DQjlrR+8YDchIT9jsDwP/6BqtAsP+iKs X-Received: by 2002:a17:906:ff01:: with SMTP id zn1mr11567924ejb.327.1571903449515; Thu, 24 Oct 2019 00:50:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1571903449; cv=none; d=google.com; s=arc-20160816; b=Q+v7ePjv7SChRGhfolJ+8UfUxVcwgqPgE389dDsshkKVwvzIRekrXxuKVLPhcTTt2w Jv/CKg6MXnpbo/UP/Y0+FZ2owjIp0mobUrGb4D9ZrAPpHusNxeE/QBNnFXmgCn11SK5C ddlt1PtSyuMLtKwph9KxcPUYNY+ouZayE3Lo2mFyecyMYN/IpGgKl7knFzrEMBjreVeD pRFusUGfi+LChQ22P3s9/hZRsBEhRD/3lCNkqUFurHTVQmxHxyAZjXVfC/2c3D9Ke75p S6eooEIGH8m2qn2laYE1F7/mkzGeps9PAQxFp7BFiWa9HnW3W2sguuKJRGYj6nJj4DBV FzFA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from :dkim-signature; bh=SucdjKTGQcanI63L94XU0ndX+0QHtlZGsavJY3p6BqA=; b=CIY8TSvHy8qFNBxOC60llVhGIoQfzkFQKLjoxKFde/lneSnnIilGhYEu5SQOqzKqqK fkE5RIviqakVjTxhz9JTorb+0UHqNwCNN0m0LMUqb6XLLT+H+E+Uv0VQuUmGcdkZNDIz laMqeDJ9fgp/PsKPxRTEPKMOS8eRb292t6nEkXxo9zs3yEggZiN84YbEiadLMjbn8/94 77QVKrcApX2vneMtHdTnK8/moelIqK8Mdk2DcMrnfFyrb48Wfjss0gG0NtUJRweXaSAO Jazk1YbB4qhhvMf7J32C78JBYTQIxeNIAwyRjynDmqk/CdwQXkacwuJZFxC4i9m5Imf7 KO1A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NhyKubbI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id l19si8577582ejz.106.2019.10.24.00.50.25; Thu, 24 Oct 2019 00:50:49 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=NhyKubbI; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2436538AbfJWQay (ORCPT + 99 others); Wed, 23 Oct 2019 12:30:54 -0400 Received: from mail-qt1-f196.google.com ([209.85.160.196]:43409 "EHLO mail-qt1-f196.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2436533AbfJWQax (ORCPT ); Wed, 23 Oct 2019 12:30:53 -0400 Received: by mail-qt1-f196.google.com with SMTP id t20so33155264qtr.10; Wed, 23 Oct 2019 09:30:52 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:content-transfer-encoding; bh=SucdjKTGQcanI63L94XU0ndX+0QHtlZGsavJY3p6BqA=; b=NhyKubbIifRt3AhK5Egtx9QnOPj1v//tXutsSnBwRmGH1pPaeiFJm04d/udCUcFHVA 2pgEq3W3mODPiR3aXH2hqyK87JAc/WoFuGI9Nrs6pj9lwRnZZ+n3e+OgoLVqH5EICScL tRfVk7Em36cn5n/p+w2+VimZLKyjzoAm6huuRee3vgPld5M30vipDo3yQnLzRXDwOgZe 6zemSjktm3iZEQpJgVb4BcV4FkAajvF1iEKmUWeyApUatAR9iBtJrN6k8ia+kFRUxzRp DYhpm2kFg4eNwlHTL/MKF6//+R6djzAY5zCucG9n+hV/gqhRMyINYIv05502j1RxHv3h KRAg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=SucdjKTGQcanI63L94XU0ndX+0QHtlZGsavJY3p6BqA=; b=RyDuK2EKbJ4MGKpsCfdnM342lHpH+h4SGw+8/PSgwd7VfCOL7kHdlkC4R0JixbsvBB OwFb+pW0lgVkio7+dfJF0KceKbIP5zAjsJ9oqIhi2Pjlp99pXHMRPdSVbi4QCfed1erD wpMAijxPHG/haEhoVSqKk/TV6LxXQd3jKecXQ9DE/lF4D7NSXxDQGNHj2Ae0BXlSc38L HaSkxxvLVsS/ZbIHyyHlEZYtU41cTvnMWPr15wQuedflTmTelKl+/To5OkvufEmW4MdD 6CE/qkJoyD/5mGEpe1gBBV2nDaJcay2hGxwXBUMGgedosIWtX8HjIq+bb2a5Qyqj+SSu 7LFQ== X-Gm-Message-State: APjAAAV75Mi/73/0Mrc4JW+cvHeyvk1zI3BatRZcG2mxZuliNUUYdBpv mjEUvaHit/ew5Lbsxz3zbP75Ls0L0pU= X-Received: by 2002:ac8:fda:: with SMTP id f26mr10287344qtk.34.1571848251776; Wed, 23 Oct 2019 09:30:51 -0700 (PDT) Received: from localhost.localdomain ([201.53.210.37]) by smtp.gmail.com with ESMTPSA id t13sm8349067qtn.18.2019.10.23.09.30.48 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Wed, 23 Oct 2019 09:30:51 -0700 (PDT) From: Gabriela Bittencourt To: outreachy-kernel@googlegroups.com, sudipm.mukherjee@gmail.com, teddy.wang@siliconmotion.com, gregkh@linuxfoundation.org, linux-fbdev@vger.kernel.org, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, lkcamp@lists.libreplanetbr.org Cc: Gabriela Bittencourt Subject: [PATCH v3 2/2] staging: sm750fb: format description of parameters in accel.h Date: Wed, 23 Oct 2019 13:30:14 -0300 Message-Id: <20191023163016.30217-3-gabrielabittencourt00@gmail.com> X-Mailer: git-send-email 2.20.1 In-Reply-To: <20191023163016.30217-1-gabrielabittencourt00@gmail.com> References: <20191023163016.30217-1-gabrielabittencourt00@gmail.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Formatting comments in file drivers/staging/sm750fb/sm750_accel.h. Signed-off-by: Gabriela Bittencourt --- Changes v3: - Apply changes in file accel.h --- drivers/staging/sm750fb/sm750_accel.h | 75 ++++++++++++++++----------- 1 file changed, 46 insertions(+), 29 deletions(-) diff --git a/drivers/staging/sm750fb/sm750_accel.h b/drivers/staging/sm750fb/sm750_accel.h index c4f42002a50f..c16350b5a310 100644 --- a/drivers/staging/sm750fb/sm750_accel.h +++ b/drivers/staging/sm750fb/sm750_accel.h @@ -194,33 +194,50 @@ int sm750_hw_fillrect(struct lynx_accel *accel, u32 x, u32 y, u32 width, u32 height, u32 color, u32 rop); -int sm750_hw_copyarea( -struct lynx_accel *accel, -unsigned int sBase, /* Address of source: offset in frame buffer */ -unsigned int sPitch, /* Pitch value of source surface in BYTE */ -unsigned int sx, -unsigned int sy, /* Starting coordinate of source surface */ -unsigned int dBase, /* Address of destination: offset in frame buffer */ -unsigned int dPitch, /* Pitch value of destination surface in BYTE */ -unsigned int bpp, /* Color depth of destination surface */ -unsigned int dx, -unsigned int dy, /* Starting coordinate of destination surface */ -unsigned int width, -unsigned int height, /* width and height of rectangle in pixel value */ -unsigned int rop2); - -int sm750_hw_imageblit(struct lynx_accel *accel, - const char *pSrcbuf, /* pointer to start of source buffer in system memory */ - u32 srcDelta, /* Pitch value (in bytes) of the source buffer, +ive means top down and -ive mean button up */ - u32 startBit, /* Mono data can start at any bit in a byte, this value should be 0 to 7 */ - u32 dBase, /* Address of destination: offset in frame buffer */ - u32 dPitch, /* Pitch value of destination surface in BYTE */ - u32 bytePerPixel, /* Color depth of destination surface */ - u32 dx, - u32 dy, /* Starting coordinate of destination surface */ - u32 width, - u32 height, /* width and height of rectangle in pixel value */ - u32 fColor, /* Foreground color (corresponding to a 1 in the monochrome data */ - u32 bColor, /* Background color (corresponding to a 0 in the monochrome data */ - u32 rop2); +/** + * sm750_hm_copyarea + * @sBase: Address of source: offset in frame buffer + * @sPitch: Pitch value of source surface in BYTE + * @sx: Starting x coordinate of source surface + * @sy: Starting y coordinate of source surface + * @dBase: Address of destination: offset in frame buffer + * @dPitch: Pitch value of destination surface in BYTE + * @Bpp: Color depth of destination surface + * @dx: Starting x coordinate of destination surface + * @dy: Starting y coordinate of destination surface + * @width: width of rectangle in pixel value + * @height: height of rectangle in pixel 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); + +/** + * sm750_hw_imageblit + * @pSrcbuf: pointer to start of source buffer in system memory + * @srcDelta: Pitch value (in bytes) of the source buffer, +ive means top down + *>----- and -ive mean button up + * @startBit: Mono data can start at any bit in a byte, this value should be + *>----- 0 to 7 + * @dBase: Address of destination: offset in frame buffer + * @dPitch: Pitch value of destination surface in BYTE + * @bytePerPixel: Color depth of destination surface + * @dx: Starting x coordinate of destination surface + * @dy: Starting y coordinate of destination surface + * @width: width of rectangle in pixel 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); + #endif -- 2.20.1