Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Functions
drm_pci.c File Reference

Functions and ioctls to manage PCI memory. More...

#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/dma-mapping.h>
#include <linux/export.h>
#include <drm/drmP.h>

Go to the source code of this file.

Functions

void drm_pci_exit (struct drm_driver *driver, struct pci_driver *pdriver)
 
 EXPORT_SYMBOL (drm_pci_exit)
 
int drm_pcie_get_speed_cap_mask (struct drm_device *dev, u32 *mask)
 
 EXPORT_SYMBOL (drm_pcie_get_speed_cap_mask)
 
PCI memory
drm_dma_handle_t * drm_pci_alloc (struct drm_device *dev, size_t size, size_t align)
 Allocate a PCI consistent memory block, for DMA.
 
 EXPORT_SYMBOL (drm_pci_alloc)
 
void __drm_pci_free (struct drm_device *dev, drm_dma_handle_t *dmah)
 Free a PCI consistent memory block without freeing its descriptor.
 
void drm_pci_free (struct drm_device *dev, drm_dma_handle_t *dmah)
 Free a PCI consistent memory block.
 
 EXPORT_SYMBOL (drm_pci_free)
 
int drm_pci_init (struct drm_driver *driver, struct pci_driver *pdriver)
 
 EXPORT_SYMBOL (drm_pci_init)
 

Detailed Description

Functions and ioctls to manage PCI memory.

Warning
These interfaces aren't stable yet.
Todo:

Implement the remaining ioctl's for the PCI pools.

The wrappers here are so thin that they would be better off inlined..

Author
José Fonseca jrfon.nosp@m.seca.nosp@m.@tung.nosp@m.sten.nosp@m.graph.nosp@m.ics..nosp@m.com
Leif Delgass ldelg.nosp@m.ass@.nosp@m.retin.nosp@m.albu.nosp@m.rn.ne.nosp@m.t

Definition in file drm_pci.c.

Function Documentation

void __drm_pci_free ( struct drm_device dev,
drm_dma_handle_t *  dmah 
)

Free a PCI consistent memory block without freeing its descriptor.

This function is for internal use in the Linux-specific DRM core code.

Definition at line 98 of file drm_pci.c.

drm_dma_handle_t* drm_pci_alloc ( struct drm_device dev,
size_t  size,
size_t  align 
)

Allocate a PCI consistent memory block, for DMA.

Definition at line 52 of file drm_pci.c.

void drm_pci_exit ( struct drm_driver *  driver,
struct pci_driver pdriver 
)

Definition at line 454 of file drm_pci.c.

void drm_pci_free ( struct drm_device dev,
drm_dma_handle_t *  dmah 
)

Free a PCI consistent memory block.

Definition at line 120 of file drm_pci.c.

int drm_pci_init ( struct drm_driver *  driver,
struct pci_driver pdriver 
)

Definition at line 444 of file drm_pci.c.

int drm_pcie_get_speed_cap_mask ( struct drm_device dev,
u32 mask 
)

Definition at line 469 of file drm_pci.c.

EXPORT_SYMBOL ( drm_pci_alloc  )
EXPORT_SYMBOL ( drm_pci_free  )
EXPORT_SYMBOL ( drm_pci_init  )
EXPORT_SYMBOL ( drm_pci_exit  )
EXPORT_SYMBOL ( drm_pcie_get_speed_cap_mask  )