From patchwork Mon Jan 7 22:42:20 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: 210265 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 5E41B2C0156 for ; Tue, 8 Jan 2013 10:12:45 +1100 (EST) Received: from localhost ([::1]:46912 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsLPs-0001jt-9s for incoming@patchwork.ozlabs.org; Mon, 07 Jan 2013 17:43:36 -0500 Received: from eggs.gnu.org ([208.118.235.92]:52017) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsLOy-0007iw-QT for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:42:42 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TsLOt-0006uk-Sk for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:42:40 -0500 Received: from mout.web.de ([212.227.15.3]:50514) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TsLOt-0006uQ-ID for qemu-devel@nongnu.org; Mon, 07 Jan 2013 17:42:35 -0500 Received: from localhost.localdomain ([84.148.30.17]) by smtp.web.de (mrweb001) with ESMTPSA (Nemesis) id 0MgfXb-1TfMPo2mZj-00O84g; Mon, 07 Jan 2013 23:42:32 +0100 From: =?UTF-8?q?Andreas=20F=C3=A4rber?= To: qemu-devel@nongnu.org Date: Mon, 7 Jan 2013 23:42:20 +0100 Message-Id: <1357598544-4804-3-git-send-email-andreas.faerber@web.de> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1357598544-4804-1-git-send-email-andreas.faerber@web.de> References: <1357598544-4804-1-git-send-email-andreas.faerber@web.de> MIME-Version: 1.0 X-Provags-ID: V02:K0:c2MkU+nGD/r+2XEKjJByy9dIxRLw8UVkcsYfuzdJPn0 j82x2BbjB2G4joGCcSG6qt3AfAd1xOGg55G5oAq7UJU6LXTxGP fP8v/4Hi/JLaCsHWzp8nJ+cGmZ0r3wENMEsVxkV26LKk32BxhE lfO1I6aVr4vlbTuc4xGr11a5yGCj0C7S85yzLs/y5jEqm9YWEw 8Lah1jfnrCGawn0KnVFfA== 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: alex.horn@cs.ox.ac.uk, =?UTF-8?q?Andreas=20F=C3=A4rber?= , anthony@codemonkey.ws, peter.maydell@linaro.org Subject: [Qemu-devel] [PATCH v3 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