Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
mv64x60.c File Reference
#include <stdarg.h>
#include <stddef.h>
#include "types.h"
#include "elf.h"
#include "page.h"
#include "string.h"
#include "stdio.h"
#include "io.h"
#include "ops.h"
#include "mv64x60.h"

Go to the source code of this file.

Data Structures

struct  mv64x60_mem_win
 
struct  mv64x60_pci_win
 

Macros

#define PCI_DEVFN(slot, func)   ((((slot) & 0x1f) << 3) | ((func) & 0x07))
 
#define MV64x60_CPU2MEM_WINDOWS   4
 
#define MV64x60_CPU2MEM_0_BASE   0x0008
 
#define MV64x60_CPU2MEM_0_SIZE   0x0010
 
#define MV64x60_CPU2MEM_1_BASE   0x0208
 
#define MV64x60_CPU2MEM_1_SIZE   0x0210
 
#define MV64x60_CPU2MEM_2_BASE   0x0018
 
#define MV64x60_CPU2MEM_2_SIZE   0x0020
 
#define MV64x60_CPU2MEM_3_BASE   0x0218
 
#define MV64x60_CPU2MEM_3_SIZE   0x0220
 
#define MV64x60_ENET2MEM_BAR_ENABLE   0x2290
 
#define MV64x60_ENET2MEM_0_BASE   0x2200
 
#define MV64x60_ENET2MEM_0_SIZE   0x2204
 
#define MV64x60_ENET2MEM_1_BASE   0x2208
 
#define MV64x60_ENET2MEM_1_SIZE   0x220c
 
#define MV64x60_ENET2MEM_2_BASE   0x2210
 
#define MV64x60_ENET2MEM_2_SIZE   0x2214
 
#define MV64x60_ENET2MEM_3_BASE   0x2218
 
#define MV64x60_ENET2MEM_3_SIZE   0x221c
 
#define MV64x60_ENET2MEM_4_BASE   0x2220
 
#define MV64x60_ENET2MEM_4_SIZE   0x2224
 
#define MV64x60_ENET2MEM_5_BASE   0x2228
 
#define MV64x60_ENET2MEM_5_SIZE   0x222c
 
#define MV64x60_ENET2MEM_ACC_PROT_0   0x2294
 
#define MV64x60_ENET2MEM_ACC_PROT_1   0x2298
 
#define MV64x60_ENET2MEM_ACC_PROT_2   0x229c
 
#define MV64x60_MPSC2MEM_BAR_ENABLE   0xf250
 
#define MV64x60_MPSC2MEM_0_BASE   0xf200
 
#define MV64x60_MPSC2MEM_0_SIZE   0xf204
 
#define MV64x60_MPSC2MEM_1_BASE   0xf208
 
#define MV64x60_MPSC2MEM_1_SIZE   0xf20c
 
#define MV64x60_MPSC2MEM_2_BASE   0xf210
 
#define MV64x60_MPSC2MEM_2_SIZE   0xf214
 
#define MV64x60_MPSC2MEM_3_BASE   0xf218
 
#define MV64x60_MPSC2MEM_3_SIZE   0xf21c
 
#define MV64x60_MPSC_0_REMAP   0xf240
 
#define MV64x60_MPSC_1_REMAP   0xf244
 
#define MV64x60_MPSC2MEM_ACC_PROT_0   0xf254
 
#define MV64x60_MPSC2MEM_ACC_PROT_1   0xf258
 
#define MV64x60_MPSC2REGS_BASE   0xf25c
 
#define MV64x60_IDMA2MEM_BAR_ENABLE   0x0a80
 
#define MV64x60_IDMA2MEM_0_BASE   0x0a00
 
#define MV64x60_IDMA2MEM_0_SIZE   0x0a04
 
#define MV64x60_IDMA2MEM_1_BASE   0x0a08
 
#define MV64x60_IDMA2MEM_1_SIZE   0x0a0c
 
#define MV64x60_IDMA2MEM_2_BASE   0x0a10
 
#define MV64x60_IDMA2MEM_2_SIZE   0x0a14
 
#define MV64x60_IDMA2MEM_3_BASE   0x0a18
 
#define MV64x60_IDMA2MEM_3_SIZE   0x0a1c
 
#define MV64x60_IDMA2MEM_4_BASE   0x0a20
 
#define MV64x60_IDMA2MEM_4_SIZE   0x0a24
 
#define MV64x60_IDMA2MEM_5_BASE   0x0a28
 
#define MV64x60_IDMA2MEM_5_SIZE   0x0a2c
 
#define MV64x60_IDMA2MEM_6_BASE   0x0a30
 
#define MV64x60_IDMA2MEM_6_SIZE   0x0a34
 
#define MV64x60_IDMA2MEM_7_BASE   0x0a38
 
#define MV64x60_IDMA2MEM_7_SIZE   0x0a3c
 
#define MV64x60_IDMA2MEM_ACC_PROT_0   0x0a70
 
#define MV64x60_IDMA2MEM_ACC_PROT_1   0x0a74
 
#define MV64x60_IDMA2MEM_ACC_PROT_2   0x0a78
 
#define MV64x60_IDMA2MEM_ACC_PROT_3   0x0a7c
 
#define MV64x60_PCI_ACC_CNTL_WINDOWS   6
 
#define MV64x60_PCI0_PCI_DECODE_CNTL   0x0d3c
 
#define MV64x60_PCI1_PCI_DECODE_CNTL   0x0dbc
 
#define MV64x60_PCI0_BAR_ENABLE   0x0c3c
 
#define MV64x60_PCI02MEM_0_SIZE   0x0c08
 
#define MV64x60_PCI0_ACC_CNTL_0_BASE_LO   0x1e00
 
#define MV64x60_PCI0_ACC_CNTL_0_BASE_HI   0x1e04
 
#define MV64x60_PCI0_ACC_CNTL_0_SIZE   0x1e08
 
#define MV64x60_PCI0_ACC_CNTL_1_BASE_LO   0x1e10
 
#define MV64x60_PCI0_ACC_CNTL_1_BASE_HI   0x1e14
 
#define MV64x60_PCI0_ACC_CNTL_1_SIZE   0x1e18
 
#define MV64x60_PCI0_ACC_CNTL_2_BASE_LO   0x1e20
 
#define MV64x60_PCI0_ACC_CNTL_2_BASE_HI   0x1e24
 
#define MV64x60_PCI0_ACC_CNTL_2_SIZE   0x1e28
 
#define MV64x60_PCI0_ACC_CNTL_3_BASE_LO   0x1e30
 
#define MV64x60_PCI0_ACC_CNTL_3_BASE_HI   0x1e34
 
#define MV64x60_PCI0_ACC_CNTL_3_SIZE   0x1e38
 
#define MV64x60_PCI0_ACC_CNTL_4_BASE_LO   0x1e40
 
#define MV64x60_PCI0_ACC_CNTL_4_BASE_HI   0x1e44
 
#define MV64x60_PCI0_ACC_CNTL_4_SIZE   0x1e48
 
#define MV64x60_PCI0_ACC_CNTL_5_BASE_LO   0x1e50
 
#define MV64x60_PCI0_ACC_CNTL_5_BASE_HI   0x1e54
 
#define MV64x60_PCI0_ACC_CNTL_5_SIZE   0x1e58
 
#define MV64x60_PCI1_BAR_ENABLE   0x0cbc
 
#define MV64x60_PCI12MEM_0_SIZE   0x0c88
 
#define MV64x60_PCI1_ACC_CNTL_0_BASE_LO   0x1e80
 
#define MV64x60_PCI1_ACC_CNTL_0_BASE_HI   0x1e84
 
#define MV64x60_PCI1_ACC_CNTL_0_SIZE   0x1e88
 
#define MV64x60_PCI1_ACC_CNTL_1_BASE_LO   0x1e90
 
#define MV64x60_PCI1_ACC_CNTL_1_BASE_HI   0x1e94
 
#define MV64x60_PCI1_ACC_CNTL_1_SIZE   0x1e98
 
#define MV64x60_PCI1_ACC_CNTL_2_BASE_LO   0x1ea0
 
#define MV64x60_PCI1_ACC_CNTL_2_BASE_HI   0x1ea4
 
#define MV64x60_PCI1_ACC_CNTL_2_SIZE   0x1ea8
 
#define MV64x60_PCI1_ACC_CNTL_3_BASE_LO   0x1eb0
 
#define MV64x60_PCI1_ACC_CNTL_3_BASE_HI   0x1eb4
 
#define MV64x60_PCI1_ACC_CNTL_3_SIZE   0x1eb8
 
#define MV64x60_PCI1_ACC_CNTL_4_BASE_LO   0x1ec0
 
#define MV64x60_PCI1_ACC_CNTL_4_BASE_HI   0x1ec4
 
#define MV64x60_PCI1_ACC_CNTL_4_SIZE   0x1ec8
 
#define MV64x60_PCI1_ACC_CNTL_5_BASE_LO   0x1ed0
 
#define MV64x60_PCI1_ACC_CNTL_5_BASE_HI   0x1ed4
 
#define MV64x60_PCI1_ACC_CNTL_5_SIZE   0x1ed8
 
#define MV64x60_CPU2PCI_SWAP_NONE   0x01000000
 
#define MV64x60_CPU2PCI0_IO_BASE   0x0048
 
#define MV64x60_CPU2PCI0_IO_SIZE   0x0050
 
#define MV64x60_CPU2PCI0_IO_REMAP   0x00f0
 
#define MV64x60_CPU2PCI0_MEM_0_BASE   0x0058
 
#define MV64x60_CPU2PCI0_MEM_0_SIZE   0x0060
 
#define MV64x60_CPU2PCI0_MEM_0_REMAP_LO   0x00f8
 
#define MV64x60_CPU2PCI0_MEM_0_REMAP_HI   0x0320
 
#define MV64x60_CPU2PCI1_IO_BASE   0x0090
 
#define MV64x60_CPU2PCI1_IO_SIZE   0x0098
 
#define MV64x60_CPU2PCI1_IO_REMAP   0x0108
 
#define MV64x60_CPU2PCI1_MEM_0_BASE   0x00a0
 
#define MV64x60_CPU2PCI1_MEM_0_SIZE   0x00a8
 
#define MV64x60_CPU2PCI1_MEM_0_REMAP_LO   0x0110
 
#define MV64x60_CPU2PCI1_MEM_0_REMAP_HI   0x0340
 

Functions

u32 mv64x60_cfg_read (u8 *bridge_base, u8 hose, u8 bus, u8 devfn, u8 offset)
 
void mv64x60_cfg_write (u8 *bridge_base, u8 hose, u8 bus, u8 devfn, u8 offset, u32 val)
 
void mv64x60_config_ctlr_windows (u8 *bridge_base, u8 *bridge_pbase, u8 is_coherent)
 
void mv64x60_config_pci_windows (u8 *bridge_base, u8 *bridge_pbase, u8 hose, u8 bus, u32 mem_size, u32 acc_bits)
 
void mv64x60_config_cpu2pci_window (u8 *bridge_base, u8 hose, u32 pci_base_hi, u32 pci_base_lo, u32 cpu_base, u32 size, struct mv64x60_cpu2pci_win *offset_tbl)
 
u32 mv64x60_get_mem_size (u8 *bridge_base)
 
u8mv64x60_get_bridge_pbase (void)
 
u8mv64x60_get_bridge_base (void)
 
u8 mv64x60_is_coherent (void)
 

Variables

struct {
   u32   addr
 
   u32   data
 
mv64x60_pci_cfgio [2]
 
struct mv64x60_cpu2pci_win mv64x60_cpu2pci_io [2]
 
struct mv64x60_cpu2pci_win mv64x60_cpu2pci_mem [2]
 

Macro Definition Documentation

#define MV64x60_CPU2MEM_0_BASE   0x0008

Definition at line 26 of file mv64x60.c.

#define MV64x60_CPU2MEM_0_SIZE   0x0010

Definition at line 27 of file mv64x60.c.

#define MV64x60_CPU2MEM_1_BASE   0x0208

Definition at line 28 of file mv64x60.c.

#define MV64x60_CPU2MEM_1_SIZE   0x0210

Definition at line 29 of file mv64x60.c.

#define MV64x60_CPU2MEM_2_BASE   0x0018

Definition at line 30 of file mv64x60.c.

#define MV64x60_CPU2MEM_2_SIZE   0x0020

Definition at line 31 of file mv64x60.c.

#define MV64x60_CPU2MEM_3_BASE   0x0218

Definition at line 32 of file mv64x60.c.

#define MV64x60_CPU2MEM_3_SIZE   0x0220

Definition at line 33 of file mv64x60.c.

#define MV64x60_CPU2MEM_WINDOWS   4

Definition at line 25 of file mv64x60.c.

#define MV64x60_CPU2PCI0_IO_BASE   0x0048

Definition at line 137 of file mv64x60.c.

#define MV64x60_CPU2PCI0_IO_REMAP   0x00f0

Definition at line 139 of file mv64x60.c.

#define MV64x60_CPU2PCI0_IO_SIZE   0x0050

Definition at line 138 of file mv64x60.c.

#define MV64x60_CPU2PCI0_MEM_0_BASE   0x0058

Definition at line 140 of file mv64x60.c.

#define MV64x60_CPU2PCI0_MEM_0_REMAP_HI   0x0320

Definition at line 143 of file mv64x60.c.

#define MV64x60_CPU2PCI0_MEM_0_REMAP_LO   0x00f8

Definition at line 142 of file mv64x60.c.

#define MV64x60_CPU2PCI0_MEM_0_SIZE   0x0060

Definition at line 141 of file mv64x60.c.

#define MV64x60_CPU2PCI1_IO_BASE   0x0090

Definition at line 145 of file mv64x60.c.

#define MV64x60_CPU2PCI1_IO_REMAP   0x0108

Definition at line 147 of file mv64x60.c.

#define MV64x60_CPU2PCI1_IO_SIZE   0x0098

Definition at line 146 of file mv64x60.c.

#define MV64x60_CPU2PCI1_MEM_0_BASE   0x00a0

Definition at line 148 of file mv64x60.c.

#define MV64x60_CPU2PCI1_MEM_0_REMAP_HI   0x0340

Definition at line 151 of file mv64x60.c.

#define MV64x60_CPU2PCI1_MEM_0_REMAP_LO   0x0110

Definition at line 150 of file mv64x60.c.

#define MV64x60_CPU2PCI1_MEM_0_SIZE   0x00a8

Definition at line 149 of file mv64x60.c.

#define MV64x60_CPU2PCI_SWAP_NONE   0x01000000

Definition at line 135 of file mv64x60.c.

#define MV64x60_ENET2MEM_0_BASE   0x2200

Definition at line 36 of file mv64x60.c.

#define MV64x60_ENET2MEM_0_SIZE   0x2204

Definition at line 37 of file mv64x60.c.

#define MV64x60_ENET2MEM_1_BASE   0x2208

Definition at line 38 of file mv64x60.c.

#define MV64x60_ENET2MEM_1_SIZE   0x220c

Definition at line 39 of file mv64x60.c.

#define MV64x60_ENET2MEM_2_BASE   0x2210

Definition at line 40 of file mv64x60.c.

#define MV64x60_ENET2MEM_2_SIZE   0x2214

Definition at line 41 of file mv64x60.c.

#define MV64x60_ENET2MEM_3_BASE   0x2218

Definition at line 42 of file mv64x60.c.

#define MV64x60_ENET2MEM_3_SIZE   0x221c

Definition at line 43 of file mv64x60.c.

#define MV64x60_ENET2MEM_4_BASE   0x2220

Definition at line 44 of file mv64x60.c.

#define MV64x60_ENET2MEM_4_SIZE   0x2224

Definition at line 45 of file mv64x60.c.

#define MV64x60_ENET2MEM_5_BASE   0x2228

Definition at line 46 of file mv64x60.c.

#define MV64x60_ENET2MEM_5_SIZE   0x222c

Definition at line 47 of file mv64x60.c.

#define MV64x60_ENET2MEM_ACC_PROT_0   0x2294

Definition at line 48 of file mv64x60.c.

#define MV64x60_ENET2MEM_ACC_PROT_1   0x2298

Definition at line 49 of file mv64x60.c.

#define MV64x60_ENET2MEM_ACC_PROT_2   0x229c

Definition at line 50 of file mv64x60.c.

#define MV64x60_ENET2MEM_BAR_ENABLE   0x2290

Definition at line 35 of file mv64x60.c.

#define MV64x60_IDMA2MEM_0_BASE   0x0a00

Definition at line 68 of file mv64x60.c.

#define MV64x60_IDMA2MEM_0_SIZE   0x0a04

Definition at line 69 of file mv64x60.c.

#define MV64x60_IDMA2MEM_1_BASE   0x0a08

Definition at line 70 of file mv64x60.c.

#define MV64x60_IDMA2MEM_1_SIZE   0x0a0c

Definition at line 71 of file mv64x60.c.

#define MV64x60_IDMA2MEM_2_BASE   0x0a10

Definition at line 72 of file mv64x60.c.

#define MV64x60_IDMA2MEM_2_SIZE   0x0a14

Definition at line 73 of file mv64x60.c.

#define MV64x60_IDMA2MEM_3_BASE   0x0a18

Definition at line 74 of file mv64x60.c.

#define MV64x60_IDMA2MEM_3_SIZE   0x0a1c

Definition at line 75 of file mv64x60.c.

#define MV64x60_IDMA2MEM_4_BASE   0x0a20

Definition at line 76 of file mv64x60.c.

#define MV64x60_IDMA2MEM_4_SIZE   0x0a24

Definition at line 77 of file mv64x60.c.

#define MV64x60_IDMA2MEM_5_BASE   0x0a28

Definition at line 78 of file mv64x60.c.

#define MV64x60_IDMA2MEM_5_SIZE   0x0a2c

Definition at line 79 of file mv64x60.c.

#define MV64x60_IDMA2MEM_6_BASE   0x0a30

Definition at line 80 of file mv64x60.c.

#define MV64x60_IDMA2MEM_6_SIZE   0x0a34

Definition at line 81 of file mv64x60.c.

#define MV64x60_IDMA2MEM_7_BASE   0x0a38

Definition at line 82 of file mv64x60.c.

#define MV64x60_IDMA2MEM_7_SIZE   0x0a3c

Definition at line 83 of file mv64x60.c.

#define MV64x60_IDMA2MEM_ACC_PROT_0   0x0a70

Definition at line 84 of file mv64x60.c.

#define MV64x60_IDMA2MEM_ACC_PROT_1   0x0a74

Definition at line 85 of file mv64x60.c.

#define MV64x60_IDMA2MEM_ACC_PROT_2   0x0a78

Definition at line 86 of file mv64x60.c.

#define MV64x60_IDMA2MEM_ACC_PROT_3   0x0a7c

Definition at line 87 of file mv64x60.c.

#define MV64x60_IDMA2MEM_BAR_ENABLE   0x0a80

Definition at line 67 of file mv64x60.c.

#define MV64x60_MPSC2MEM_0_BASE   0xf200

Definition at line 53 of file mv64x60.c.

#define MV64x60_MPSC2MEM_0_SIZE   0xf204

Definition at line 54 of file mv64x60.c.

#define MV64x60_MPSC2MEM_1_BASE   0xf208

Definition at line 55 of file mv64x60.c.

#define MV64x60_MPSC2MEM_1_SIZE   0xf20c

Definition at line 56 of file mv64x60.c.

#define MV64x60_MPSC2MEM_2_BASE   0xf210

Definition at line 57 of file mv64x60.c.

#define MV64x60_MPSC2MEM_2_SIZE   0xf214

Definition at line 58 of file mv64x60.c.

#define MV64x60_MPSC2MEM_3_BASE   0xf218

Definition at line 59 of file mv64x60.c.

#define MV64x60_MPSC2MEM_3_SIZE   0xf21c

Definition at line 60 of file mv64x60.c.

#define MV64x60_MPSC2MEM_ACC_PROT_0   0xf254

Definition at line 63 of file mv64x60.c.

#define MV64x60_MPSC2MEM_ACC_PROT_1   0xf258

Definition at line 64 of file mv64x60.c.

#define MV64x60_MPSC2MEM_BAR_ENABLE   0xf250

Definition at line 52 of file mv64x60.c.

#define MV64x60_MPSC2REGS_BASE   0xf25c

Definition at line 65 of file mv64x60.c.

#define MV64x60_MPSC_0_REMAP   0xf240

Definition at line 61 of file mv64x60.c.

#define MV64x60_MPSC_1_REMAP   0xf244

Definition at line 62 of file mv64x60.c.

#define MV64x60_PCI02MEM_0_SIZE   0x0c08

Definition at line 94 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_0_BASE_HI   0x1e04

Definition at line 96 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_0_BASE_LO   0x1e00

Definition at line 95 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_0_SIZE   0x1e08

Definition at line 97 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_1_BASE_HI   0x1e14

Definition at line 99 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_1_BASE_LO   0x1e10

Definition at line 98 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_1_SIZE   0x1e18

Definition at line 100 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_2_BASE_HI   0x1e24

Definition at line 102 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_2_BASE_LO   0x1e20

Definition at line 101 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_2_SIZE   0x1e28

Definition at line 103 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_3_BASE_HI   0x1e34

Definition at line 105 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_3_BASE_LO   0x1e30

Definition at line 104 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_3_SIZE   0x1e38

Definition at line 106 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_4_BASE_HI   0x1e44

Definition at line 108 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_4_BASE_LO   0x1e40

Definition at line 107 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_4_SIZE   0x1e48

Definition at line 109 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_5_BASE_HI   0x1e54

Definition at line 111 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_5_BASE_LO   0x1e50

Definition at line 110 of file mv64x60.c.

#define MV64x60_PCI0_ACC_CNTL_5_SIZE   0x1e58

Definition at line 112 of file mv64x60.c.

#define MV64x60_PCI0_BAR_ENABLE   0x0c3c

Definition at line 93 of file mv64x60.c.

#define MV64x60_PCI0_PCI_DECODE_CNTL   0x0d3c

Definition at line 90 of file mv64x60.c.

#define MV64x60_PCI12MEM_0_SIZE   0x0c88

Definition at line 115 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_0_BASE_HI   0x1e84

Definition at line 117 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_0_BASE_LO   0x1e80

Definition at line 116 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_0_SIZE   0x1e88

Definition at line 118 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_1_BASE_HI   0x1e94

Definition at line 120 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_1_BASE_LO   0x1e90

Definition at line 119 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_1_SIZE   0x1e98

Definition at line 121 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_2_BASE_HI   0x1ea4

Definition at line 123 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_2_BASE_LO   0x1ea0

Definition at line 122 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_2_SIZE   0x1ea8

Definition at line 124 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_3_BASE_HI   0x1eb4

Definition at line 126 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_3_BASE_LO   0x1eb0

Definition at line 125 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_3_SIZE   0x1eb8

Definition at line 127 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_4_BASE_HI   0x1ec4

Definition at line 129 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_4_BASE_LO   0x1ec0

Definition at line 128 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_4_SIZE   0x1ec8

Definition at line 130 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_5_BASE_HI   0x1ed4

Definition at line 132 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_5_BASE_LO   0x1ed0

Definition at line 131 of file mv64x60.c.

#define MV64x60_PCI1_ACC_CNTL_5_SIZE   0x1ed8

Definition at line 133 of file mv64x60.c.

#define MV64x60_PCI1_BAR_ENABLE   0x0cbc

Definition at line 114 of file mv64x60.c.

#define MV64x60_PCI1_PCI_DECODE_CNTL   0x0dbc

Definition at line 91 of file mv64x60.c.

#define MV64x60_PCI_ACC_CNTL_WINDOWS   6

Definition at line 89 of file mv64x60.c.

#define PCI_DEVFN (   slot,
  func 
)    ((((slot) & 0x1f) << 3) | ((func) & 0x07))

Definition at line 23 of file mv64x60.c.

Function Documentation

u32 mv64x60_cfg_read ( u8 bridge_base,
u8  hose,
u8  bus,
u8  devfn,
u8  offset 
)

Definition at line 181 of file mv64x60.c.

void mv64x60_cfg_write ( u8 bridge_base,
u8  hose,
u8  bus,
u8  devfn,
u8  offset,
u32  val 
)

Definition at line 188 of file mv64x60.c.

void mv64x60_config_cpu2pci_window ( u8 bridge_base,
u8  hose,
u32  pci_base_hi,
u32  pci_base_lo,
u32  cpu_base,
u32  size,
struct mv64x60_cpu2pci_win offset_tbl 
)

Definition at line 495 of file mv64x60.c.

void mv64x60_config_ctlr_windows ( u8 bridge_base,
u8 bridge_pbase,
u8  is_coherent 
)

Definition at line 280 of file mv64x60.c.

void mv64x60_config_pci_windows ( u8 bridge_base,
u8 bridge_pbase,
u8  hose,
u8  bus,
u32  mem_size,
u32  acc_bits 
)

Definition at line 411 of file mv64x60.c.

u8* mv64x60_get_bridge_base ( void  )

Definition at line 551 of file mv64x60.c.

u8* mv64x60_get_bridge_pbase ( void  )

Definition at line 533 of file mv64x60.c.

u32 mv64x60_get_mem_size ( u8 bridge_base)

Definition at line 514 of file mv64x60.c.

u8 mv64x60_is_coherent ( void  )

Definition at line 568 of file mv64x60.c.

Variable Documentation

u32 addr

Definition at line 168 of file mv64x60.c.

Definition at line 169 of file mv64x60.c.

struct mv64x60_cpu2pci_win mv64x60_cpu2pci_io[2]
Initial value:
= {
{
.remap_hi = 0,
},
{
.remap_hi = 0,
},
}

Definition at line 464 of file mv64x60.c.

struct mv64x60_cpu2pci_win mv64x60_cpu2pci_mem[2]
struct { ... } mv64x60_pci_cfgio[2]
Initial value:
= {
{
.addr = 0xcf8,
.data = 0xcfc,
},
{
.addr = 0xc78,
.data = 0xc7c,
}
}