Merge tag 'v3.3.7' into 3.3/master
[zen-stable.git] / arch / mips / include / asm / mach-lantiq / lantiq_platform.h
bloba305f1d0259e76e282c9787fa1042799c0d40f7f
1 /*
2 * This program is free software; you can redistribute it and/or modify it
3 * under the terms of the GNU General Public License version 2 as published
4 * by the Free Software Foundation.
6 * Copyright (C) 2010 John Crispin <blogic@openwrt.org>
7 */
9 #ifndef _LANTIQ_PLATFORM_H__
10 #define _LANTIQ_PLATFORM_H__
12 #include <linux/mtd/partitions.h>
13 #include <linux/socket.h>
15 /* struct used to pass info to the pci core */
16 enum {
17 PCI_CLOCK_INT = 0,
18 PCI_CLOCK_EXT
21 #define PCI_EXIN0 0x0001
22 #define PCI_EXIN1 0x0002
23 #define PCI_EXIN2 0x0004
24 #define PCI_EXIN3 0x0008
25 #define PCI_EXIN4 0x0010
26 #define PCI_EXIN5 0x0020
27 #define PCI_EXIN_MAX 6
29 #define PCI_GNT1 0x0040
30 #define PCI_GNT2 0x0080
31 #define PCI_GNT3 0x0100
32 #define PCI_GNT4 0x0200
34 #define PCI_REQ1 0x0400
35 #define PCI_REQ2 0x0800
36 #define PCI_REQ3 0x1000
37 #define PCI_REQ4 0x2000
38 #define PCI_REQ_SHIFT 10
39 #define PCI_REQ_MASK 0xf
41 struct ltq_pci_data {
42 int clock;
43 int gpio;
44 int irq[16];
47 /* struct used to pass info to network drivers */
48 struct ltq_eth_data {
49 struct sockaddr mac;
50 int mii_mode;
53 #endif