From: Damien Lespiau Subject: [PATCH igt 5/6] tools: Removed unused tools/intel_iosf_read.c Date: Mon, 6 Jan 2014 15:02:33 +0000 Message-ID: <1389020554-12404-6-git-send-email-damien.lespiau@intel.com> References: <1389020554-12404-1-git-send-email-damien.lespiau@intel.com> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1823713193==" Return-path: Received: from mga09.intel.com (mga09.intel.com [134.134.136.24]) by gabe.freedesktop.org (Postfix) with ESMTP id A6CC7106014 for ; Mon, 6 Jan 2014 07:02:55 -0800 (PST) In-Reply-To: <1389020554-12404-1-git-send-email-damien.lespiau@intel.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: intel-gfx-bounces@lists.freedesktop.org Errors-To: intel-gfx-bounces@lists.freedesktop.org To: intel-gfx@lists.freedesktop.org List-Id: intel-gfx@lists.freedesktop.org --===============1823713193== Content-Type: text/plain; charset=y Content-Transfer-Encoding: quoted-printable Also intel_iosf_read() does not exist, and would need a bit more arguments. Signed-off-by: Damien Lespiau --- tools/intel_iosf_read.c | 70 -------------------------------------------= ------ 1 file changed, 70 deletions(-) delete mode 100644 tools/intel_iosf_read.c diff --git a/tools/intel_iosf_read.c b/tools/intel_iosf_read.c deleted file mode 100644 index 15cd82c..0000000 --- a/tools/intel_iosf_read.c +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright =C2=A9 2012 Intel Corporation - * - * Permission is hereby granted, free of charge, to any person obtaining= a - * copy of this software and associated documentation files (the "Softwa= re"), - * to deal in the Software without restriction, including without limita= tion - * the rights to use, copy, modify, merge, publish, distribute, sublicen= se, - * and/or sell copies of the Software, and to permit persons to whom the - * Software is furnished to do so, subject to the following conditions: - * - * The above copyright notice and this permission notice (including the = next - * paragraph) shall be included in all copies or substantial portions of= the - * Software. - * - * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRE= SS OR - * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILI= TY, - * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SH= ALL - * THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR = OTHER - * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISI= NG - * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER - * DEALINGS IN THE SOFTWARE. - * - * Authors: - * Vijay Purushothaman - * - */ - -#include -#include -#include -#include -#include -#include "intel_gpu_tools.h" - -static void usage(char *cmdname) -{ - printf("Warning : This program will work only on Valleyview\n"); - printf("Usage: %s [addr]\n", cmdname); - printf("\t addr : in 0xXXXX format\n"); -} - -int main(int argc, char** argv) -{ - int ret =3D 0; - uint32_t reg, val; - char *cmdname =3D strdup(argv[0]); - struct pci_device *dev =3D intel_get_pci_device(); - - if (argc !=3D 2 || !IS_VALLEYVIEW(dev->device_id)) { - usage(cmdname); - ret =3D 1; - goto out; - } - - sscanf(argv[1], "0x%x", ®); - - intel_register_access_init(dev, 0); - - ret =3D intel_iosf_read(reg, &val); - if (ret) - fprintf(stderr, "iosf read failed: %d\n", ret); - - printf("Read IOSF register: 0x%x - Value : 0x%x\n", reg, val); - - intel_register_access_fini(); - -out: - free(cmdname); - return ret; -} --=20 1.8.3.1 --===============1823713193== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Intel-gfx mailing list Intel-gfx@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/intel-gfx --===============1823713193==--