From patchwork Wed Jan 16 00:57:55 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: =?utf-8?q?Andreas_F=C3=A4rber?= X-Patchwork-Id: 212360 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.gnu.org (lists.gnu.org [208.118.235.17]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) by ozlabs.org (Postfix) with ESMTPS id 5D9BB2C0095 for ; Wed, 16 Jan 2013 11:58:35 +1100 (EST) Received: from localhost ([::1]:53886 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvHKr-000446-6V for incoming@patchwork.ozlabs.org; Tue, 15 Jan 2013 19:58:33 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52819) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvHKX-0003yG-0C for qemu-devel@nongnu.org; Tue, 15 Jan 2013 19:58:14 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TvHKU-0002Sp-AX for qemu-devel@nongnu.org; Tue, 15 Jan 2013 19:58:12 -0500 Received: from mout.web.de ([212.227.15.3]:59736) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TvHKU-0002SH-0M for qemu-devel@nongnu.org; Tue, 15 Jan 2013 19:58:10 -0500 Received: from localhost.localdomain ([84.148.40.139]) by smtp.web.de (mrweb003) with ESMTPSA (Nemesis) id 0MhUcU-1TZk451K8Q-00Mq75; Wed, 16 Jan 2013 01:58:07 +0100 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Wed, 16 Jan 2013 01:57:55 +0100 Message-Id: <1358297879-26576-3-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1358297879-26576-1-git-send-email-andreas.faerber@web.de> References: <1358297879-26576-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Provags-ID: V02:K0:ZZAsUo28kAy/NpzP2U1IlWCcmtku1oJqhWCpfO1hyHt KtI5YljD6yB3bubyYKsa/u1cDo0kyHzpOYi67T97wfQVFtVMzq A+npJmIuA+m3igUO/J22wQCGXysKTbhXQnOq5DlarhNJQcMu5z VWWMUo9O9ShQ4p7OIYMACGLhVr7y8PrnkQ21mP8DeYUAGMvI4t tWUjUffx0xf2eMxdqmY1Q== X-detected-operating-system: by eggs.gnu.org: GNU/Linux 2.4.x-2.6.x [generic] X-Received-From: 212.227.15.3 Cc: =?UTF-8?q?Andreas=20F=C3=A4rber?= , anthony@codemonkey.ws Subject: [Qemu-devel] [PATCH for-1.4 v4 2/6] tmp105: Split out I2C message constants from header X-BeenThere: qemu-devel@nongnu.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Sender: qemu-devel-bounces+incoming=patchwork.ozlabs.org@nongnu.org Allows value sharing with qtest. Signed-off-by: Andreas Färber Reviewed-by: Anthony Liguori --- hw/tmp105.h | 34 +--------------------------------- hw/tmp105_regs.h | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 Dateien geändert, 51 Zeilen hinzugefügt(+), 33 Zeilen entfernt(-) create mode 100644 hw/tmp105_regs.h diff --git a/hw/tmp105.h b/hw/tmp105.h index 51eff4b..982d1c9 100644 --- a/hw/tmp105.h +++ b/hw/tmp105.h @@ -15,39 +15,7 @@ #define QEMU_TMP105_H #include "i2c.h" - -/** - * TMP105Reg: - * @TMP105_REG_TEMPERATURE: Temperature register - * @TMP105_REG_CONFIG: Configuration register - * @TMP105_REG_T_LOW: Low temperature register (also known as T_hyst) - * @TMP105_REG_T_HIGH: High temperature register (also known as T_OS) - * - * The following temperature sensors are - * compatible with the TMP105 registers: - * - adt75 - * - ds1775 - * - ds75 - * - lm75 - * - lm75a - * - max6625 - * - max6626 - * - mcp980x - * - stds75 - * - tcn75 - * - tmp100 - * - tmp101 - * - tmp105 - * - tmp175 - * - tmp275 - * - tmp75 - **/ -typedef enum TMP105Reg { - TMP105_REG_TEMPERATURE = 0, - TMP105_REG_CONFIG, - TMP105_REG_T_LOW, - TMP105_REG_T_HIGH, -} TMP105Reg; +#include "tmp105_regs.h" /** * tmp105_set: diff --git a/hw/tmp105_regs.h b/hw/tmp105_regs.h new file mode 100644 index 0000000..9b55aba --- /dev/null +++ b/hw/tmp105_regs.h @@ -0,0 +1,50 @@ +/* + * Texas Instruments TMP105 Temperature Sensor I2C messages + * + * Browse the data sheet: + * + * http://www.ti.com/lit/gpn/tmp105 + * + * Copyright (C) 2012 Alex Horn + * Copyright (C) 2008-2012 Andrzej Zaborowski + * + * This work is licensed under the terms of the GNU GPL, version 2 or + * later. See the COPYING file in the top-level directory. + */ +#ifndef QEMU_TMP105_MSGS_H +#define QEMU_TMP105_MSGS_H + +/** + * TMP105Reg: + * @TMP105_REG_TEMPERATURE: Temperature register + * @TMP105_REG_CONFIG: Configuration register + * @TMP105_REG_T_LOW: Low temperature register (also known as T_hyst) + * @TMP105_REG_T_HIGH: High temperature register (also known as T_OS) + * + * The following temperature sensors are + * compatible with the TMP105 registers: + * - adt75 + * - ds1775 + * - ds75 + * - lm75 + * - lm75a + * - max6625 + * - max6626 + * - mcp980x + * - stds75 + * - tcn75 + * - tmp100 + * - tmp101 + * - tmp105 + * - tmp175 + * - tmp275 + * - tmp75 + **/ +typedef enum TMP105Reg { + TMP105_REG_TEMPERATURE = 0, + TMP105_REG_CONFIG, + TMP105_REG_T_LOW, + TMP105_REG_T_HIGH, +} TMP105Reg; + +#endif