Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
tegra-ahb.c File Reference
#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/platform_device.h>
#include <linux/io.h>

Go to the source code of this file.

Data Structures

struct  tegra_ahb
 

Macros

#define DRV_NAME   "tegra-ahb"
 
#define AHB_ARBITRATION_DISABLE   0x00
 
#define AHB_ARBITRATION_PRIORITY_CTRL   0x04
 
#define AHB_PRIORITY_WEIGHT(x)   (((x) & 0x7) << 29)
 
#define PRIORITY_SELECT_USB   BIT(6)
 
#define PRIORITY_SELECT_USB2   BIT(18)
 
#define PRIORITY_SELECT_USB3   BIT(17)
 
#define AHB_GIZMO_AHB_MEM   0x0c
 
#define ENB_FAST_REARBITRATE   BIT(2)
 
#define DONT_SPLIT_AHB_WR   BIT(7)
 
#define AHB_GIZMO_APB_DMA   0x10
 
#define AHB_GIZMO_IDE   0x18
 
#define AHB_GIZMO_USB   0x1c
 
#define AHB_GIZMO_AHB_XBAR_BRIDGE   0x20
 
#define AHB_GIZMO_CPU_AHB_BRIDGE   0x24
 
#define AHB_GIZMO_COP_AHB_BRIDGE   0x28
 
#define AHB_GIZMO_XBAR_APB_CTLR   0x2c
 
#define AHB_GIZMO_VCP_AHB_BRIDGE   0x30
 
#define AHB_GIZMO_NAND   0x3c
 
#define AHB_GIZMO_SDMMC4   0x44
 
#define AHB_GIZMO_XIO   0x48
 
#define AHB_GIZMO_BSEV   0x60
 
#define AHB_GIZMO_BSEA   0x70
 
#define AHB_GIZMO_NOR   0x74
 
#define AHB_GIZMO_USB2   0x78
 
#define AHB_GIZMO_USB3   0x7c
 
#define IMMEDIATE   BIT(18)
 
#define AHB_GIZMO_SDMMC1   0x80
 
#define AHB_GIZMO_SDMMC2   0x84
 
#define AHB_GIZMO_SDMMC3   0x88
 
#define AHB_MEM_PREFETCH_CFG_X   0xd8
 
#define AHB_ARBITRATION_XBAR_CTRL   0xdc
 
#define AHB_MEM_PREFETCH_CFG3   0xe0
 
#define AHB_MEM_PREFETCH_CFG4   0xe4
 
#define AHB_MEM_PREFETCH_CFG1   0xec
 
#define AHB_MEM_PREFETCH_CFG2   0xf0
 
#define PREFETCH_ENB   BIT(31)
 
#define MST_ID(x)   (((x) & 0x1f) << 26)
 
#define AHBDMA_MST_ID   MST_ID(5)
 
#define USB_MST_ID   MST_ID(6)
 
#define USB2_MST_ID   MST_ID(18)
 
#define USB3_MST_ID   MST_ID(17)
 
#define ADDR_BNDRY(x)   (((x) & 0xf) << 21)
 
#define INACTIVITY_TIMEOUT(x)   (((x) & 0xffff) << 0)
 
#define AHB_ARBITRATION_AHB_MEM_WRQUE_MST_ID   0xf8
 
#define AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE   BIT(17)
 

Functions

 module_platform_driver (tegra_ahb_driver)
 
 MODULE_AUTHOR ("Hiroshi DOYU <[email protected]>")
 
 MODULE_DESCRIPTION ("Tegra AHB driver")
 
 MODULE_LICENSE ("GPL v2")
 
 MODULE_ALIAS ("platform:"DRV_NAME)
 

Macro Definition Documentation

#define ADDR_BNDRY (   x)    (((x) & 0xf) << 21)

Definition at line 74 of file tegra-ahb.c.

#define AHB_ARBITRATION_AHB_MEM_WRQUE_MST_ID   0xf8

Definition at line 77 of file tegra-ahb.c.

#define AHB_ARBITRATION_DISABLE   0x00

Definition at line 30 of file tegra-ahb.c.

#define AHB_ARBITRATION_PRIORITY_CTRL   0x04

Definition at line 31 of file tegra-ahb.c.

#define AHB_ARBITRATION_XBAR_CTRL   0xdc

Definition at line 63 of file tegra-ahb.c.

#define AHB_ARBITRATION_XBAR_CTRL_SMMU_INIT_DONE   BIT(17)

Definition at line 79 of file tegra-ahb.c.

#define AHB_GIZMO_AHB_MEM   0x0c

Definition at line 37 of file tegra-ahb.c.

#define AHB_GIZMO_AHB_XBAR_BRIDGE   0x20

Definition at line 44 of file tegra-ahb.c.

#define AHB_GIZMO_APB_DMA   0x10

Definition at line 41 of file tegra-ahb.c.

#define AHB_GIZMO_BSEA   0x70

Definition at line 53 of file tegra-ahb.c.

#define AHB_GIZMO_BSEV   0x60

Definition at line 52 of file tegra-ahb.c.

#define AHB_GIZMO_COP_AHB_BRIDGE   0x28

Definition at line 46 of file tegra-ahb.c.

#define AHB_GIZMO_CPU_AHB_BRIDGE   0x24

Definition at line 45 of file tegra-ahb.c.

#define AHB_GIZMO_IDE   0x18

Definition at line 42 of file tegra-ahb.c.

#define AHB_GIZMO_NAND   0x3c

Definition at line 49 of file tegra-ahb.c.

#define AHB_GIZMO_NOR   0x74

Definition at line 54 of file tegra-ahb.c.

#define AHB_GIZMO_SDMMC1   0x80

Definition at line 59 of file tegra-ahb.c.

#define AHB_GIZMO_SDMMC2   0x84

Definition at line 60 of file tegra-ahb.c.

#define AHB_GIZMO_SDMMC3   0x88

Definition at line 61 of file tegra-ahb.c.

#define AHB_GIZMO_SDMMC4   0x44

Definition at line 50 of file tegra-ahb.c.

#define AHB_GIZMO_USB   0x1c

Definition at line 43 of file tegra-ahb.c.

#define AHB_GIZMO_USB2   0x78

Definition at line 55 of file tegra-ahb.c.

#define AHB_GIZMO_USB3   0x7c

Definition at line 56 of file tegra-ahb.c.

#define AHB_GIZMO_VCP_AHB_BRIDGE   0x30

Definition at line 48 of file tegra-ahb.c.

#define AHB_GIZMO_XBAR_APB_CTLR   0x2c

Definition at line 47 of file tegra-ahb.c.

#define AHB_GIZMO_XIO   0x48

Definition at line 51 of file tegra-ahb.c.

#define AHB_MEM_PREFETCH_CFG1   0xec

Definition at line 66 of file tegra-ahb.c.

#define AHB_MEM_PREFETCH_CFG2   0xf0

Definition at line 67 of file tegra-ahb.c.

#define AHB_MEM_PREFETCH_CFG3   0xe0

Definition at line 64 of file tegra-ahb.c.

#define AHB_MEM_PREFETCH_CFG4   0xe4

Definition at line 65 of file tegra-ahb.c.

#define AHB_MEM_PREFETCH_CFG_X   0xd8

Definition at line 62 of file tegra-ahb.c.

#define AHB_PRIORITY_WEIGHT (   x)    (((x) & 0x7) << 29)

Definition at line 32 of file tegra-ahb.c.

#define AHBDMA_MST_ID   MST_ID(5)

Definition at line 70 of file tegra-ahb.c.

#define DONT_SPLIT_AHB_WR   BIT(7)

Definition at line 39 of file tegra-ahb.c.

#define DRV_NAME   "tegra-ahb"

Definition at line 28 of file tegra-ahb.c.

#define ENB_FAST_REARBITRATE   BIT(2)

Definition at line 38 of file tegra-ahb.c.

#define IMMEDIATE   BIT(18)

Definition at line 57 of file tegra-ahb.c.

#define INACTIVITY_TIMEOUT (   x)    (((x) & 0xffff) << 0)

Definition at line 75 of file tegra-ahb.c.

#define MST_ID (   x)    (((x) & 0x1f) << 26)

Definition at line 69 of file tegra-ahb.c.

#define PREFETCH_ENB   BIT(31)

Definition at line 68 of file tegra-ahb.c.

#define PRIORITY_SELECT_USB   BIT(6)

Definition at line 33 of file tegra-ahb.c.

#define PRIORITY_SELECT_USB2   BIT(18)

Definition at line 34 of file tegra-ahb.c.

#define PRIORITY_SELECT_USB3   BIT(17)

Definition at line 35 of file tegra-ahb.c.

#define USB2_MST_ID   MST_ID(18)

Definition at line 72 of file tegra-ahb.c.

#define USB3_MST_ID   MST_ID(17)

Definition at line 73 of file tegra-ahb.c.

#define USB_MST_ID   MST_ID(6)

Definition at line 71 of file tegra-ahb.c.

Function Documentation

MODULE_ALIAS ( "platform:"  DRV_NAME)
MODULE_AUTHOR ( "Hiroshi DOYU <[email protected]>"  )
MODULE_DESCRIPTION ( "Tegra AHB driver )
MODULE_LICENSE ( "GPL v2 )
module_platform_driver ( tegra_ahb_driver  )