Linux Kernel
3.7.1
|
Go to the source code of this file.
Data Structures | |
struct | sta2x11_ahb_regs |
struct | sta2x11_mapping |
struct | sta2x11_instance |
Macros | |
#define | STA2X11_SWIOTLB_SIZE (4*1024*1024) |
#define | STA2X11_NR_EP 4 /* 0..3 included */ |
#define | STA2X11_NR_FUNCS 8 /* 0..7 included */ |
#define | STA2X11_AMBA_SIZE (512 << 20) |
#define | AHB_MAPB 0xCA4 |
#define | AHB_CRW(i) (AHB_MAPB + 0 + (i) * 0x10) |
#define | AHB_CRW_SZMASK 0xfffffc00UL |
#define | AHB_CRW_ENABLE (1 << 0) |
#define | AHB_CRW_WTYPE_MEM (2 << 1) |
#define | AHB_CRW_ROE (1UL << 3) /* Relax Order Ena */ |
#define | AHB_CRW_NSE (1UL << 4) /* No Snoop Enable */ |
#define | AHB_BASE(i) (AHB_MAPB + 4 + (i) * 0x10) |
#define | AHB_PEXLBASE(i) (AHB_MAPB + 8 + (i) * 0x10) |
#define | AHB_PEXHBASE(i) (AHB_MAPB + 12 + (i) * 0x10) |
Functions | |
int | swiotlb_late_init_with_default_size (size_t default_size) |
DECLARE_PCI_FIXUP_ENABLE (PCI_VENDOR_ID_STMICRO, 0xcc17, sta2x11_new_instance) | |
struct sta2x11_instance * | sta2x11_get_instance (struct pci_dev *pdev) |
EXPORT_SYMBOL (sta2x11_get_instance) | |
DECLARE_PCI_FIXUP_ENABLE (PCI_VENDOR_ID_STMICRO, PCI_ANY_ID, sta2x11_setup_pdev) | |
bool | dma_capable (struct device *dev, dma_addr_t addr, size_t size) |
dma_addr_t | phys_to_dma (struct device *dev, phys_addr_t paddr) |
phys_addr_t | dma_to_phys (struct device *dev, dma_addr_t daddr) |
DECLARE_PCI_FIXUP_ENABLE (PCI_VENDOR_ID_STMICRO, PCI_ANY_ID, sta2x11_map_ep) | |
Definition at line 282 of file sta2x11-fixup.c.
Definition at line 276 of file sta2x11-fixup.c.
#define AHB_CRW_ENABLE (1 << 0) |
Definition at line 278 of file sta2x11-fixup.c.
#define AHB_CRW_NSE (1UL << 4) /* No Snoop Enable */ |
Definition at line 281 of file sta2x11-fixup.c.
#define AHB_CRW_ROE (1UL << 3) /* Relax Order Ena */ |
Definition at line 280 of file sta2x11-fixup.c.
#define AHB_CRW_SZMASK 0xfffffc00UL |
Definition at line 277 of file sta2x11-fixup.c.
#define AHB_CRW_WTYPE_MEM (2 << 1) |
Definition at line 279 of file sta2x11-fixup.c.
#define AHB_MAPB 0xCA4 |
Definition at line 275 of file sta2x11-fixup.c.
Definition at line 284 of file sta2x11-fixup.c.
Definition at line 283 of file sta2x11-fixup.c.
#define STA2X11_AMBA_SIZE (512 << 20) |
Definition at line 39 of file sta2x11-fixup.c.
#define STA2X11_NR_EP 4 /* 0..3 included */ |
Definition at line 37 of file sta2x11-fixup.c.
#define STA2X11_NR_FUNCS 8 /* 0..7 included */ |
Definition at line 38 of file sta2x11-fixup.c.
#define STA2X11_SWIOTLB_SIZE (4*1024*1024) |
Definition at line 30 of file sta2x11-fixup.c.
DECLARE_PCI_FIXUP_ENABLE | ( | PCI_VENDOR_ID_STMICRO | , |
0xcc17 | , | ||
sta2x11_new_instance | |||
) |
DECLARE_PCI_FIXUP_ENABLE | ( | PCI_VENDOR_ID_STMICRO | , |
PCI_ANY_ID | , | ||
sta2x11_setup_pdev | |||
) |
DECLARE_PCI_FIXUP_ENABLE | ( | PCI_VENDOR_ID_STMICRO | , |
PCI_ANY_ID | , | ||
sta2x11_map_ep | |||
) |
bool dma_capable | ( | struct device * | dev, |
dma_addr_t | addr, | ||
size_t | size | ||
) |
dma_capable - Check if device can manage DMA transfers (FIXME: kill it) : device for a PCI device : DMA address : DMA size
Definition at line 224 of file sta2x11-fixup.c.
phys_addr_t dma_to_phys | ( | struct device * | dev, |
dma_addr_t | daddr | ||
) |
dma_to_phys - Return the physical address used for this STA2x11 DMA address : device for a PCI device : STA2x11 AMBA DMA address
Definition at line 262 of file sta2x11-fixup.c.
EXPORT_SYMBOL | ( | sta2x11_get_instance | ) |
dma_addr_t phys_to_dma | ( | struct device * | dev, |
phys_addr_t | paddr | ||
) |
phys_to_dma - Return the DMA AMBA address used for this STA2x11 device : device for a PCI device : Physical address
Definition at line 250 of file sta2x11-fixup.c.
|
read |
Definition at line 121 of file sta2x11-fixup.c.