From patchwork Wed Dec 12 22:28:38 2012 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antoine Mathys X-Patchwork-Id: 205669 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 1CD5B2C0092 for ; Thu, 13 Dec 2012 09:29:00 +1100 (EST) Received: from localhost ([::1]:58993 helo=lists.gnu.org) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiunS-0006qW-8v for incoming@patchwork.ozlabs.org; Wed, 12 Dec 2012 17:28:58 -0500 Received: from eggs.gnu.org ([208.118.235.92]:37464) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiunK-0006qI-4Z for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:28:52 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1TiunH-000507-PW for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:28:50 -0500 Received: from mail-ea0-f173.google.com ([209.85.215.173]:36001) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1TiunH-0004zv-J8 for qemu-devel@nongnu.org; Wed, 12 Dec 2012 17:28:47 -0500 Received: by mail-ea0-f173.google.com with SMTP id i13so445628eaa.4 for ; Wed, 12 Dec 2012 14:28:46 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:cc:subject :references:in-reply-to:content-type:content-transfer-encoding; bh=O2MwRQ2kp1/dBv576n5rlEwpeSdFySowTKtwQkfAaNE=; b=UMhWQpRHLxfNb+hF2wwmlMd3rYDbcTYUmC3Tek7EMQF1jHop/PcRBcJXHyPrl4V5Mk ir+o4HJluffy56pi+8Qo9P+N+KiH04LrGdsEOH0mwxacSjCcDkBUlThOMUY4upK8tJNU IhQ/hVYuyarmvmvKfDyTkSHmVdE8BHlRXRUmXuZoUU4RbS20oTGebITAzn/lnUitbr5J zkdBZOzjoQRaHlwMLG8vaT6gO0RTfZb7CkXqh+8EogitPQBKVyGBn26Pb6ymrPKQfJWb CG6bTfSwK54zBHr/CjUV1fH1HQD5kPxkwYfy7d0dj5of44IFCl5cgZa1L2Xqw+XrUhps We1Q== Received: by 10.14.202.3 with SMTP id c3mr6565439eeo.4.1355351326610; Wed, 12 Dec 2012 14:28:46 -0800 (PST) Received: from [192.168.1.33] (adsl-84-227-232-139.adslplus.ch. [84.227.232.139]) by mx.google.com with ESMTPS id f49sm58644063eep.12.2012.12.12.14.28.43 (version=SSLv3 cipher=OTHER); Wed, 12 Dec 2012 14:28:45 -0800 (PST) Message-ID: <50C90516.4080609@gmail.com> Date: Wed, 12 Dec 2012 23:28:38 +0100 From: Antoine Mathys User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: qemu-devel@nongnu.org References: <50C9041A.8020202@gmail.com> In-Reply-To: <50C9041A.8020202@gmail.com> X-detected-operating-system: by eggs.gnu.org: GNU/Linux 3.x [fuzzy] X-Received-From: 209.85.215.173 Cc: Peter Maydell , paul@codesourcery.com Subject: Re: [Qemu-devel] [PATCH v3 2/6] hw/ds1338.c: Add definitions for various flags in, the RTC registers. 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 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;