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>
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 */
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
47
/* struct used to pass info to network drivers */