Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions
pci_dma.c File Reference
#include <linux/gfp.h>
#include <linux/module.h>
#include <linux/dma-mapping.h>
#include <asm/dma.h>
#include <asm/sn/intr.h>
#include <asm/sn/pcibus_provider_defs.h>
#include <asm/sn/pcidev.h>
#include <asm/sn/sn_sal.h>

Go to the source code of this file.

Macros

#define SG_ENT_VIRT_ADDRESS(sg)   (sg_virt((sg)))
 
#define SG_ENT_PHYS_ADDRESS(SG)   virt_to_phys(SG_ENT_VIRT_ADDRESS(SG))
 

Functions

int sn_dma_set_mask (struct device *dev, u64 dma_mask)
 
 EXPORT_SYMBOL (sn_dma_set_mask)
 
u64 sn_dma_get_required_mask (struct device *dev)
 
 EXPORT_SYMBOL_GPL (sn_dma_get_required_mask)
 
charsn_pci_get_legacy_mem (struct pci_bus *bus)
 
int sn_pci_legacy_read (struct pci_bus *bus, u16 port, u32 *val, u8 size)
 
int sn_pci_legacy_write (struct pci_bus *bus, u16 port, u32 val, u8 size)
 
void sn_dma_init (void)
 

Macro Definition Documentation

#define SG_ENT_PHYS_ADDRESS (   SG)    virt_to_phys(SG_ENT_VIRT_ADDRESS(SG))

Definition at line 22 of file pci_dma.c.

#define SG_ENT_VIRT_ADDRESS (   sg)    (sg_virt((sg)))

Definition at line 21 of file pci_dma.c.

Function Documentation

EXPORT_SYMBOL ( sn_dma_set_mask  )
EXPORT_SYMBOL_GPL ( sn_dma_get_required_mask  )
u64 sn_dma_get_required_mask ( struct device dev)

Definition at line 353 of file pci_dma.c.

void sn_dma_init ( void  )

Definition at line 484 of file pci_dma.c.

int sn_dma_set_mask ( struct device dev,
u64  dma_mask 
)

sn_dma_set_mask - set the DMA mask : device to set : new mask

Set 's DMA mask if the hw supports it.

Definition at line 51 of file pci_dma.c.

char* sn_pci_get_legacy_mem ( struct pci_bus bus)

Definition at line 359 of file pci_dma.c.

int sn_pci_legacy_read ( struct pci_bus bus,
u16  port,
u32 val,
u8  size 
)

Definition at line 367 of file pci_dma.c.

int sn_pci_legacy_write ( struct pci_bus bus,
u16  port,
u32  val,
u8  size 
)

Definition at line 412 of file pci_dma.c.