Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions | Variables
ioport.c File Reference
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/kernel.h>
#include <linux/errno.h>
#include <linux/types.h>
#include <linux/ioport.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include <linux/pci.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
#include <linux/scatterlist.h>
#include <linux/of_device.h>
#include <asm/io.h>
#include <asm/vaddrs.h>
#include <asm/oplib.h>
#include <asm/prom.h>
#include <asm/page.h>
#include <asm/pgalloc.h>
#include <asm/dma.h>
#include <asm/iommu.h>
#include <asm/io-unit.h>
#include <asm/leon.h>

Go to the source code of this file.

Data Structures

struct  xresource
 

Macros

#define XNMLN   15
 
#define XNRES   10 /* SS-10 uses 8 */
 

Functions

void __iomemioremap (unsigned long offset, unsigned long size)
 
 EXPORT_SYMBOL (ioremap)
 
void iounmap (volatile void __iomem *virtual)
 
 EXPORT_SYMBOL (iounmap)
 
void __iomemof_ioremap (struct resource *res, unsigned long offset, unsigned long size, char *name)
 
 EXPORT_SYMBOL (of_ioremap)
 
void of_iounmap (struct resource *res, void __iomem *base, unsigned long size)
 
 EXPORT_SYMBOL (of_iounmap)
 
 EXPORT_SYMBOL (pci32_dma_ops)
 
 EXPORT_SYMBOL (leon_dma_ops)
 
 EXPORT_SYMBOL (dma_ops)
 
int dma_supported (struct device *dev, u64 mask)
 
 EXPORT_SYMBOL (dma_supported)
 

Variables

struct sparc32_dma_ops * sparc32_dma_ops
 
struct resource sparc_iomap
 
struct dma_map_ops pci32_dma_ops
 
struct dma_map_opsleon_dma_ops = &pci32_dma_ops
 
struct dma_map_opsdma_ops = &sbus_dma_ops
 

Macro Definition Documentation

#define XNMLN   15

Definition at line 88 of file ioport.c.

#define XNRES   10 /* SS-10 uses 8 */

Definition at line 89 of file ioport.c.

Function Documentation

int dma_supported ( struct device dev,
u64  mask 
)

Definition at line 667 of file ioport.c.

EXPORT_SYMBOL ( ioremap  )
EXPORT_SYMBOL ( iounmap  )
EXPORT_SYMBOL ( of_ioremap  )
EXPORT_SYMBOL ( of_iounmap  )
EXPORT_SYMBOL ( pci32_dma_ops  )
EXPORT_SYMBOL ( leon_dma_ops  )
EXPORT_SYMBOL ( dma_ops  )
EXPORT_SYMBOL ( dma_supported  )
void __iomem* ioremap ( unsigned long  offset,
unsigned long  size 
)

Definition at line 124 of file ioport.c.

void iounmap ( volatile void __iomem virtual)

Definition at line 136 of file ioport.c.

void __iomem* of_ioremap ( struct resource res,
unsigned long  offset,
unsigned long  size,
char name 
)

Definition at line 159 of file ioport.c.

void of_iounmap ( struct resource res,
void __iomem base,
unsigned long  size 
)

Definition at line 168 of file ioport.c.

Variable Documentation

struct dma_map_ops* dma_ops = &sbus_dma_ops

Definition at line 657 of file ioport.c.

struct dma_map_ops* leon_dma_ops = &pci32_dma_ops

Definition at line 654 of file ioport.c.

struct dma_map_ops pci32_dma_ops
Initial value:
= {
.alloc = pci32_alloc_coherent,
.free = pci32_free_coherent,
.map_page = pci32_map_page,
.unmap_page = pci32_unmap_page,
.map_sg = pci32_map_sg,
.unmap_sg = pci32_unmap_sg,
.sync_single_for_cpu = pci32_sync_single_for_cpu,
.sync_single_for_device = pci32_sync_single_for_device,
.sync_sg_for_cpu = pci32_sync_sg_for_cpu,
.sync_sg_for_device = pci32_sync_sg_for_device,
}

Definition at line 639 of file ioport.c.

struct sparc32_dma_ops* sparc32_dma_ops

Definition at line 53 of file ioport.c.

struct resource sparc_iomap
Initial value:
= {
.name = "sparc_iomap", .start = IOBASE_VADDR, .end = IOBASE_END - 1
}

Definition at line 78 of file ioport.c.