From patchwork Mon Aug 26 03:11:54 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Lin, Mengdong" X-Patchwork-Id: 2849510 Return-Path: X-Original-To: patchwork-intel-gfx@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.19.201]) by patchwork1.web.kernel.org (Postfix) with ESMTP id 6A39C9F2F4 for ; Mon, 26 Aug 2013 10:12:05 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 1F8A6202E5 for ; Mon, 26 Aug 2013 10:12:04 +0000 (UTC) Received: from gabe.freedesktop.org (gabe.freedesktop.org [131.252.210.177]) by mail.kernel.org (Postfix) with ESMTP id 12268202DD for ; Mon, 26 Aug 2013 10:12:03 +0000 (UTC) Received: from gabe.freedesktop.org (localhost [127.0.0.1]) by gabe.freedesktop.org (Postfix) with ESMTP id 09386E6F16 for ; Mon, 26 Aug 2013 03:12:03 -0700 (PDT) X-Original-To: intel-gfx@lists.freedesktop.org Delivered-To: intel-gfx@lists.freedesktop.org Received: from mga03.intel.com (mga03.intel.com [143.182.124.21]) by gabe.freedesktop.org (Postfix) with ESMTP id 041E1E66D7 for ; Mon, 26 Aug 2013 03:10:55 -0700 (PDT) Received: from azsmga001.ch.intel.com ([10.2.17.19]) by azsmga101.ch.intel.com with ESMTP; 26 Aug 2013 03:10:55 -0700 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.89,957,1367996400"; d="scan'208";a="351637230" Received: from amanda-hsw-pc.sh.intel.com ([10.239.37.28]) by azsmga001.ch.intel.com with ESMTP; 26 Aug 2013 03:10:54 -0700 From: mengdong.lin@intel.com To: intel-gfx@lists.freedesktop.org Date: Sun, 25 Aug 2013 23:11:54 -0400 Message-Id: <1377486714-24291-1-git-send-email-mengdong.lin@intel.com> X-Mailer: git-send-email 1.8.1.2 Subject: [Intel-gfx] [PATCH] quick_dump/hsw: support haswell in device auto-detection X-BeenThere: intel-gfx@lists.freedesktop.org X-Mailman-Version: 2.1.13 Precedence: list List-Id: Intel graphics driver community testing & development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org Errors-To: intel-gfx-bounces+patchwork-intel-gfx=patchwork.kernel.org@lists.freedesktop.org X-Spam-Status: No, score=-5.1 required=5.0 tests=BAYES_00, DATE_IN_PAST_06_12, RCVD_IN_DNSWL_MED, RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=unavailable version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP From: Mengdong Lin This patch exposes is_haswell() to python, to be used by device auto-detection. Signed-off-by: Mengdong Lin diff --git a/tools/quick_dump/chipset.i b/tools/quick_dump/chipset.i index 69dc8df..4b13487 100644 --- a/tools/quick_dump/chipset.i +++ b/tools/quick_dump/chipset.i @@ -7,6 +7,7 @@ extern int is_sandybridge(unsigned short pciid); extern int is_ivybridge(unsigned short pciid); extern int is_valleyview(unsigned short pciid); +extern int is_haswell(unsigned short pciid); extern struct pci_device *intel_get_pci_device(); extern int intel_register_access_init(struct pci_device *pci_dev, int safe); extern uint32_t intel_register_read(uint32_t reg); @@ -19,6 +20,7 @@ extern uint32_t intel_dpio_reg_read(uint32_t reg); extern int is_sandybridge(unsigned short pciid); extern int is_ivybridge(unsigned short pciid); +extern int is_haswell(unsigned short pciid); extern int is_valleyview(unsigned short pciid); extern struct pci_device *intel_get_pci_device(); extern int intel_register_access_init(struct pci_device *pci_dev, int safe);