Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Data Structures | Macros | Functions
amd-k7-agp.c File Reference
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/agp_backend.h>
#include <linux/page-flags.h>
#include <linux/mm.h>
#include <linux/slab.h>
#include "agp.h"

Go to the source code of this file.

Data Structures

struct  amd_page_map
 
struct  _amd_irongate_private
 

Macros

#define AMD_MMBASE   0x14
 
#define AMD_APSIZE   0xac
 
#define AMD_MODECNTL   0xb0
 
#define AMD_MODECNTL2   0xb2
 
#define AMD_GARTENABLE   0x02 /* In mmio region (16-bit register) */
 
#define AMD_ATTBASE   0x04 /* In mmio region (32-bit register) */
 
#define AMD_TLBFLUSH   0x0c /* In mmio region (32-bit register) */
 
#define AMD_CACHEENTRY   0x10 /* In mmio region (32-bit register) */
 
#define GET_PAGE_DIR_OFF(addr)   (addr >> 22)
 
#define GET_PAGE_DIR_IDX(addr)
 
#define GET_GATT_OFF(addr)   ((addr & 0x003ff000) >> 12)
 
#define GET_GATT(addr)
 

Functions

 MODULE_DEVICE_TABLE (pci, agp_amdk7_pci_table)
 
 module_init (agp_amdk7_init)
 
 module_exit (agp_amdk7_cleanup)
 
 MODULE_LICENSE ("GPL and additional rights")
 

Macro Definition Documentation

#define AMD_APSIZE   0xac

Definition at line 15 of file amd-k7-agp.c.

#define AMD_ATTBASE   0x04 /* In mmio region (32-bit register) */

Definition at line 19 of file amd-k7-agp.c.

#define AMD_CACHEENTRY   0x10 /* In mmio region (32-bit register) */

Definition at line 21 of file amd-k7-agp.c.

#define AMD_GARTENABLE   0x02 /* In mmio region (16-bit register) */

Definition at line 18 of file amd-k7-agp.c.

#define AMD_MMBASE   0x14

Definition at line 14 of file amd-k7-agp.c.

#define AMD_MODECNTL   0xb0

Definition at line 16 of file amd-k7-agp.c.

#define AMD_MODECNTL2   0xb2

Definition at line 17 of file amd-k7-agp.c.

#define AMD_TLBFLUSH   0x0c /* In mmio region (32-bit register) */

Definition at line 20 of file amd-k7-agp.c.

#define GET_GATT (   addr)
Value:
(amd_irongate_private.gatt_pages[\
GET_PAGE_DIR_IDX(addr)]->remapped)

Definition at line 119 of file amd-k7-agp.c.

#define GET_GATT_OFF (   addr)    ((addr & 0x003ff000) >> 12)

Definition at line 118 of file amd-k7-agp.c.

#define GET_PAGE_DIR_IDX (   addr)
Value:
GET_PAGE_DIR_OFF(agp_bridge->gart_bus_addr))

Definition at line 116 of file amd-k7-agp.c.

#define GET_PAGE_DIR_OFF (   addr)    (addr >> 22)

Definition at line 115 of file amd-k7-agp.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
agp_amdk7_pci_table   
)
module_exit ( agp_amdk7_cleanup  )
module_init ( agp_amdk7_init  )
MODULE_LICENSE ( "GPL and additional rights"  )