/* NOTE: For the power LED, use the LED_POWER_* macros since they differ  */
static void set_led(struct cardinfo *card, int shift, unsigned char state)
/* NOTE: For the power LED, use the LED_POWER_* macros since they differ  */
static void set_led(struct cardinfo *card, int shift, unsigned char state)
{
	unsigned char led;
	led = readb(card->csr_remap + MEMCTRLCMD_LEDCTRL);
	if (state == LED_FLIP)
		led ^= (1<<shift);
	else {
		led &= ~(0x03 << shift);
		led |= (state << shift);
	}
	writeb(led, card->csr_remap + MEMCTRLCMD_LEDCTRL);
}