#include <linux/kernel.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/mbus.h>
#include <video/vga.h>
#include <asm/irq.h>
#include <asm/mach/pci.h>
#include <plat/pcie.h>
#include <plat/addr-map.h>
#include <mach/orion5x.h>
#include "common.h"
Go to the source code of this file.
#define PCI_BAR_REMAP_DDR_CS |
( |
|
n | ) |
|
Value:
Definition at line 242 of file pci.c.
#define PCI_BAR_SIZE_DDR_CS |
( |
|
n | ) |
|
Value:
Definition at line 238 of file pci.c.
#define PCI_CMD_HOST_REORDER (1 << 29) |
#define PCI_CONF_ADDR_EN (1 << 31) |
#define PCI_CONF_BUS |
( |
|
bus | ) |
(((bus) & 0xff) << 16) |
#define PCI_CONF_DEV |
( |
|
dev | ) |
(((dev) & 0x1f) << 11) |
#define PCI_CONF_FUNC |
( |
|
func | ) |
(((func) & 0x3) << 8) |
#define PCI_CONF_FUNC_BAR_CS |
( |
|
n | ) |
((n) >> 1) |
#define PCI_CONF_FUNC_STAT_CMD 0 |
#define PCI_CONF_REG |
( |
|
reg | ) |
((reg) & 0xfc) |
#define PCI_CONF_REG_BAR_HI_CS |
( |
|
n | ) |
(((n) & 1) ? 0x1c : 0x14) |
#define PCI_CONF_REG_BAR_LO_CS |
( |
|
n | ) |
(((n) & 1) ? 0x18 : 0x10) |
#define PCI_CONF_REG_STAT_CMD 4 |
#define PCI_MODE_64BIT (1 << 2) |
#define PCI_MODE_PCIX ((1 << 4) | (1 << 5)) |
#define PCI_P2P_BUS_MASK (0xff << PCI_P2P_BUS_OFFS) |
#define PCI_P2P_BUS_OFFS 16 |
#define PCI_P2P_DEV_MASK (0x1f << PCI_P2P_DEV_OFFS) |
#define PCI_P2P_DEV_OFFS 24 |
Definition at line 41 of file pci.c.
#define PCIX_STAT_BUS_MASK (0xff << PCIX_STAT_BUS_OFFS) |
#define PCIX_STAT_BUS_OFFS 8 |
Definition at line 43 of file pci.c.