From mboxrd@z Thu Jan 1 00:00:00 1970 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) Message-ID: <50C90516.4080609@gmail.com> Date: Wed, 12 Dec 2012 23:28:38 +0100 From: Antoine Mathys MIME-Version: 1.0 References: <50C9041A.8020202@gmail.com> In-Reply-To: <50C9041A.8020202@gmail.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Subject: Re: [Qemu-devel] [PATCH v3 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