Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
addr-map.c File Reference
#include <linux/kernel.h>
#include <linux/init.h>
#include <linux/mbus.h>
#include <linux/io.h>
#include <plat/addr-map.h>
#include <mach/mv78xx0.h>
#include "common.h"

Go to the source code of this file.

Macros

#define TARGET_DEV_BUS   1
 
#define TARGET_PCIE0   4
 
#define TARGET_PCIE1   8
 
#define TARGET_PCIE(i)   ((i) ? TARGET_PCIE1 : TARGET_PCIE0)
 
#define ATTR_DEV_SPI_ROM   0x1f
 
#define ATTR_DEV_BOOT   0x2f
 
#define ATTR_DEV_CS3   0x37
 
#define ATTR_DEV_CS2   0x3b
 
#define ATTR_DEV_CS1   0x3d
 
#define ATTR_DEV_CS0   0x3e
 
#define ATTR_PCIE_IO(l)   (0xf0 & ~(0x10 << (l)))
 
#define ATTR_PCIE_MEM(l)   (0xf8 & ~(0x10 << (l)))
 
#define WIN0_OFF(n)   (BRIDGE_VIRT_BASE + 0x0000 + ((n) << 4))
 
#define WIN8_OFF(n)   (BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) << 4))
 

Functions

void __init mv78xx0_setup_cpu_mbus (void)
 
void __init mv78xx0_setup_pcie_io_win (int window, u32 base, u32 size, int maj, int min)
 
void __init mv78xx0_setup_pcie_mem_win (int window, u32 base, u32 size, int maj, int min)
 

Macro Definition Documentation

#define ATTR_DEV_BOOT   0x2f

Definition at line 27 of file addr-map.c.

#define ATTR_DEV_CS0   0x3e

Definition at line 31 of file addr-map.c.

#define ATTR_DEV_CS1   0x3d

Definition at line 30 of file addr-map.c.

#define ATTR_DEV_CS2   0x3b

Definition at line 29 of file addr-map.c.

#define ATTR_DEV_CS3   0x37

Definition at line 28 of file addr-map.c.

#define ATTR_DEV_SPI_ROM   0x1f

Definition at line 26 of file addr-map.c.

#define ATTR_PCIE_IO (   l)    (0xf0 & ~(0x10 << (l)))

Definition at line 32 of file addr-map.c.

#define ATTR_PCIE_MEM (   l)    (0xf8 & ~(0x10 << (l)))

Definition at line 33 of file addr-map.c.

#define TARGET_DEV_BUS   1

Definition at line 22 of file addr-map.c.

#define TARGET_PCIE (   i)    ((i) ? TARGET_PCIE1 : TARGET_PCIE0)

Definition at line 25 of file addr-map.c.

#define TARGET_PCIE0   4

Definition at line 23 of file addr-map.c.

#define TARGET_PCIE1   8

Definition at line 24 of file addr-map.c.

#define WIN0_OFF (   n)    (BRIDGE_VIRT_BASE + 0x0000 + ((n) << 4))

Definition at line 38 of file addr-map.c.

#define WIN8_OFF (   n)    (BRIDGE_VIRT_BASE + 0x0900 + (((n) - 8) << 4))

Definition at line 39 of file addr-map.c.

Function Documentation

void __init mv78xx0_setup_cpu_mbus ( void  )

Definition at line 63 of file addr-map.c.

void __init mv78xx0_setup_pcie_io_win ( int  window,
u32  base,
u32  size,
int  maj,
int  min 
)

Definition at line 81 of file addr-map.c.

void __init mv78xx0_setup_pcie_mem_win ( int  window,
u32  base,
u32  size,
int  maj,
int  min 
)

Definition at line 88 of file addr-map.c.