Allow card.resource to be built with the right name again (by using the
[AROS.git] / arch / m68k-amiga / card / cardresetremove.c
blob395b445d0ef2b44cbf7b694a2dd264ae678b500e
1 /*
2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: CardResetRemove() function.
6 Lang: english
7 */
9 #include "card_intern.h"
11 AROS_LH2(ULONG, CardResetRemove,
12 AROS_LHA(struct CardHandle*, handle, A1),
13 AROS_LHA(ULONG, flag, D0),
14 struct CardResource*, CardResource, 7, Card)
16 AROS_LIBFUNC_INIT
18 volatile struct GayleIO *gio = (struct GayleIO*)GAYLE_BASE;
20 CARDDEBUG(bug("CardResetRemove(%p,%08x)\n", handle, flag));
22 if (!ISMINE)
23 return 0;
25 CardResource->resetberr = flag ? GAYLE_IRQ_RESET : 0;
26 gio->intreq = (0xff & ~(GAYLE_IRQ_RESET | GAYLE_IRQ_BERR)) | CardResource->resetberr;
28 return 1;
30 AROS_LIBFUNC_EXIT