From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([208.118.235.92]:46401) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiYhC-0000cg-VH for qemu-devel@nongnu.org; Tue, 11 Dec 2012 17:53:03 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiYh8-0007uz-BG for qemu-devel@nongnu.org; Tue, 11 Dec 2012 17:53:02 -0500 Received: from mail-ea0-f173.google.com ([209.85.215.173]:65161) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiYh8-0007ut-4G for qemu-devel@nongnu.org; Tue, 11 Dec 2012 17:52:58 -0500 Received: by mail-ea0-f173.google.com with SMTP id i13so2633eaa.4 for ; Tue, 11 Dec 2012 14:52:57 -0800 (PST) Message-ID: <50C7B946.6070709@gmail.com> Date: Tue, 11 Dec 2012 23:52:54 +0100 From: Antoine Mathys MIME-Version: 1.0 References: <50C7B767.8020406@gmail.com> In-Reply-To: <50C7B767.8020406@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: [Qemu-devel] [PATCH v2 2/6] hw/ds1338.c: Add definitions for various flags in the RTC registers. List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Cc: Peter Maydell , paul@codesourcery.com Signed-off-by: Antoine Mathys --- hw/ds1338.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/hw/ds1338.c b/hw/ds1338.c index faaa4a0..69018bc 100644 --- a/hw/ds1338.c +++ b/hw/ds1338.c @@ -17,6 +17,12 @@ */ #define NVRAM_SIZE 64 +/* Flags definitions */ +#define SECONDS_CH 0x80 +#define HOURS_12 0x40 +#define HOURS_PM 0x20 +#define CTRL_OSF 0x20 + typedef struct { I2CSlave i2c; int64_t offset; -- 1.7.10.4