Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
amd_gart_64.c File Reference
#include <linux/types.h>
#include <linux/ctype.h>
#include <linux/agp_backend.h>
#include <linux/init.h>
#include <linux/mm.h>
#include <linux/sched.h>
#include <linux/string.h>
#include <linux/spinlock.h>
#include <linux/pci.h>
#include <linux/module.h>
#include <linux/topology.h>
#include <linux/interrupt.h>
#include <linux/bitmap.h>
#include <linux/kdebug.h>
#include <linux/scatterlist.h>
#include <linux/iommu-helper.h>
#include <linux/syscore_ops.h>
#include <linux/io.h>
#include <linux/gfp.h>
#include <linux/atomic.h>
#include <asm/mtrr.h>
#include <asm/pgtable.h>
#include <asm/proto.h>
#include <asm/iommu.h>
#include <asm/gart.h>
#include <asm/cacheflush.h>
#include <asm/swiotlb.h>
#include <asm/dma.h>
#include <asm/amd_nb.h>
#include <asm/x86_init.h>
#include <asm/iommu_table.h>

Go to the source code of this file.

Macros

#define GPTE_VALID   1
 
#define GPTE_COHERENT   2
 
#define GPTE_ENCODE(x)   (((x) & 0xfffff000) | (((x) >> 32) << 4) | GPTE_VALID | GPTE_COHERENT)
 
#define GPTE_DECODE(x)   (((x) & 0xfffff000) | (((u64)(x) & 0xff0) << 28))
 
#define EMERGENCY_PAGES   32 /* = 128KB */
 
#define AGPEXTERN
 
#define GART_MAX_PHYS_ADDR   (1ULL << 40)
 

Functions

void set_up_gart_resume (u32 aper_order, u32 aper_alloc)
 
int __init gart_iommu_init (void)
 
void __init gart_parse_options (char *p)
 
 IOMMU_INIT_POST (gart_iommu_hole_init)
 

Variables

AGPEXTERN int agp_memory_reserved
 
AGPEXTERN __u32agp_gatt_table
 

Macro Definition Documentation

#define AGPEXTERN

Definition at line 81 of file amd_gart_64.c.

#define EMERGENCY_PAGES   32 /* = 128KB */

Definition at line 76 of file amd_gart_64.c.

#define GART_MAX_PHYS_ADDR   (1ULL << 40)

Definition at line 85 of file amd_gart_64.c.

#define GPTE_COHERENT   2

Definition at line 71 of file amd_gart_64.c.

#define GPTE_DECODE (   x)    (((x) & 0xfffff000) | (((u64)(x) & 0xff0) << 28))

Definition at line 74 of file amd_gart_64.c.

#define GPTE_ENCODE (   x)    (((x) & 0xfffff000) | (((x) >> 32) << 4) | GPTE_VALID | GPTE_COHERENT)

Definition at line 72 of file amd_gart_64.c.

#define GPTE_VALID   1

Definition at line 70 of file amd_gart_64.c.

Function Documentation

int __init gart_iommu_init ( void  )

Definition at line 733 of file amd_gart_64.c.

void __init gart_parse_options ( char p)

Definition at line 860 of file amd_gart_64.c.

IOMMU_INIT_POST ( gart_iommu_hole_init  )
void set_up_gart_resume ( u32  aper_order,
u32  aper_alloc 
)

Definition at line 593 of file amd_gart_64.c.

Variable Documentation

AGPEXTERN __u32* agp_gatt_table

Definition at line 89 of file amd_gart_64.c.

AGPEXTERN int agp_memory_reserved

Definition at line 88 of file amd_gart_64.c.