From: niklas Date: Sat, 4 May 1996 14:15:27 +0000 (+0000) Subject: Reintroduce GG2_GET_STATUS macro X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=3c9f394c7414283a98e344d2fc2a72404d92ab90;p=openbsd Reintroduce GG2_GET_STATUS macro --- diff --git a/sys/arch/amiga/isa/ggbusreg.h b/sys/arch/amiga/isa/ggbusreg.h index 1bc9d461b56..d6ede981964 100644 --- a/sys/arch/amiga/isa/ggbusreg.h +++ b/sys/arch/amiga/isa/ggbusreg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: ggbusreg.h,v 1.2 1996/04/27 18:38:59 niklas Exp $ */ +/* $OpenBSD: ggbusreg.h,v 1.3 1996/05/04 14:15:27 niklas Exp $ */ /* * Copyright (c) 1994, 1996 Niklas Hallqvist @@ -37,6 +37,7 @@ #define GG2_STATUS 0x18000 #define GG2_STATUS_ADDR(va) (volatile u_int16_t *)((va) + GG2_STATUS) +#define GG2_GET_STATUS(va) (*GG2_STATUS_ADDR(va)) #define GG2_MASTER 0 #define GG2_WAIT 1