2 Copyright © 1995-2014, The AROS Development Team. All rights reserved.
5 Desc: CardProgramVoltage() function.
9 #include "card_intern.h"
11 AROS_LH2(LONG
, CardProgramVoltage
,
12 AROS_LHA(struct CardHandle
*, handle
, A1
),
13 AROS_LHA(ULONG
, voltage
, D0
),
14 struct CardResource
*, CardResource
, 10, Card
)
18 volatile struct GayleIO
*gio
= (struct GayleIO
*)GAYLE_BASE
;
21 CARDDEBUG(bug("CardProgramVoltage(%p,%d)\n", handle
, voltage
));
26 if (voltage
!= GAYLE_CFG_0V
&& voltage
!= GAYLE_CFG_5V
)
27 return -1; /* Don't want 12V at this point.. */
30 v
= gio
->config
& ~GAYLE_CFG_VOLTAGE
;