1/*
2 *  linux/arch/arm/kernel/leds-ftvpci.c
3 *
4 *  Copyright (C) 1999 FutureTV Labs Ltd
5 */
6
7#include <linux/module.h>
8
9#include <asm/hardware.h>
10#include <asm/leds.h>
11#include <asm/system.h>
12#include <asm/io.h>
13
14static void ftvpci_leds_event(led_event_t ledevt)
15{
16	static int led_state = 0;
17
18	switch(ledevt) {
19	case led_timer:
20		led_state ^= 1;
21		raw_writeb(0x1a | led_state, INTCONT_BASE);
22		break;
23
24	default:
25		break;
26	}
27}
28
29void (*leds_event)(led_event_t) = ftvpci_leds_event;
30
31EXPORT_SYMBOL(leds_event);
32