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

Go to the source code of this file.

Data Structures

struct  serverworks_page_map
 
struct  _serverworks_private
 

Macros

#define SVWRKS_COMMAND   0x04
 
#define SVWRKS_APSIZE   0x10
 
#define SVWRKS_MMBASE   0x14
 
#define SVWRKS_CACHING   0x4b
 
#define SVWRKS_AGP_ENABLE   0x60
 
#define SVWRKS_FEATURE   0x68
 
#define SVWRKS_SIZE_MASK   0xfe000000
 
#define SVWRKS_GART_CACHE   0x02
 
#define SVWRKS_GATTBASE   0x04
 
#define SVWRKS_TLBFLUSH   0x10
 
#define SVWRKS_POSTFLUSH   0x14
 
#define SVWRKS_DIRFLUSH   0x0c
 
#define SVRWRKS_GET_GATT(addr)
 
#define GET_PAGE_DIR_OFF(addr)   (addr >> 22)
 
#define GET_PAGE_DIR_IDX(addr)
 
#define GET_GATT_OFF(addr)   ((addr & 0x003ff000) >> 12)
 

Functions

 MODULE_DEVICE_TABLE (pci, agp_serverworks_pci_table)
 
 module_init (agp_serverworks_init)
 
 module_exit (agp_serverworks_cleanup)
 
 MODULE_LICENSE ("GPL and additional rights")
 

Macro Definition Documentation

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

Definition at line 134 of file sworks-agp.c.

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

Definition at line 129 of file sworks-agp.c.

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

Definition at line 125 of file sworks-agp.c.

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

Definition at line 121 of file sworks-agp.c.

#define SVWRKS_AGP_ENABLE   0x60

Definition at line 18 of file sworks-agp.c.

#define SVWRKS_APSIZE   0x10

Definition at line 15 of file sworks-agp.c.

#define SVWRKS_CACHING   0x4b

Definition at line 17 of file sworks-agp.c.

#define SVWRKS_COMMAND   0x04

Definition at line 14 of file sworks-agp.c.

#define SVWRKS_DIRFLUSH   0x0c

Definition at line 28 of file sworks-agp.c.

#define SVWRKS_FEATURE   0x68

Definition at line 19 of file sworks-agp.c.

#define SVWRKS_GART_CACHE   0x02

Definition at line 24 of file sworks-agp.c.

#define SVWRKS_GATTBASE   0x04

Definition at line 25 of file sworks-agp.c.

#define SVWRKS_MMBASE   0x14

Definition at line 16 of file sworks-agp.c.

#define SVWRKS_POSTFLUSH   0x14

Definition at line 27 of file sworks-agp.c.

#define SVWRKS_SIZE_MASK   0xfe000000

Definition at line 21 of file sworks-agp.c.

#define SVWRKS_TLBFLUSH   0x10

Definition at line 26 of file sworks-agp.c.

Function Documentation

MODULE_DEVICE_TABLE ( pci  ,
agp_serverworks_pci_table   
)
module_exit ( agp_serverworks_cleanup  )
module_init ( agp_serverworks_init  )
MODULE_LICENSE ( "GPL and additional rights"  )