ceph: update for write_inode API change
[pandora-kernel.git] / arch / arm / mach-ixp4xx / include / mach / fsg.h
1 /*
2  * arch/arm/mach-ixp4xx/include/mach/fsg.h
3  *
4  * Freecom FSG-3 platform specific definitions
5  *
6  * Author: Rod Whitby <rod@whitby.id.au>
7  * Author: Tomasz Chmielewski <mangoo@wpkg.org>
8  * Maintainers: http://www.nslu2-linux.org
9  *
10  * Based on coyote.h by
11  * Copyright 2004 (c) MontaVista, Software, Inc.
12  *
13  * This file is licensed under  the terms of the GNU General Public
14  * License version 2. This program is licensed "as is" without any
15  * warranty of any kind, whether express or implied.
16  */
17
18 #ifndef __ASM_ARCH_HARDWARE_H__
19 #error "Do not include this directly, instead #include <mach/hardware.h>"
20 #endif
21
22 #define FSG_SDA_PIN             12
23 #define FSG_SCL_PIN             13
24
25 /*
26  * FSG PCI IRQs
27  */
28 #define FSG_PCI_MAX_DEV         3
29 #define FSG_PCI_IRQ_LINES       3
30
31
32 /* PCI controller GPIO to IRQ pin mappings */
33 #define FSG_PCI_INTA_PIN        6
34 #define FSG_PCI_INTB_PIN        7
35 #define FSG_PCI_INTC_PIN        5
36
37 /* Buttons */
38
39 #define FSG_SB_GPIO             4       /* sync button */
40 #define FSG_RB_GPIO             9       /* reset button */
41 #define FSG_UB_GPIO             10      /* usb button */
42
43 /* LEDs */
44
45 #define FSG_LED_WLAN_BIT        0
46 #define FSG_LED_WAN_BIT         1
47 #define FSG_LED_SATA_BIT        2
48 #define FSG_LED_USB_BIT         4
49 #define FSG_LED_RING_BIT        5
50 #define FSG_LED_SYNC_BIT        7