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

Go to the source code of this file.

Data Structures

struct  _hp_private
 

Macros

#define HP_ZX1_IOC_OFFSET   0x1000 /* ACPI reports SBA, we want IOC */
 
#define HP_ZX1_IBASE   0x300
 
#define HP_ZX1_IMASK   0x308
 
#define HP_ZX1_PCOM   0x310
 
#define HP_ZX1_TCNFG   0x318
 
#define HP_ZX1_PDIR_BASE   0x320
 
#define HP_ZX1_IOVA_BASE   GB(1UL)
 
#define HP_ZX1_IOVA_SIZE   GB(1UL)
 
#define HP_ZX1_GART_SIZE   (HP_ZX1_IOVA_SIZE / 2)
 
#define HP_ZX1_SBA_IOMMU_COOKIE   0x0000badbadc0ffeeUL
 
#define HP_ZX1_PDIR_VALID_BIT   0x8000000000000000UL
 
#define HP_ZX1_IOVA_TO_PDIR(va)   ((va - hp_private.iova_base) >> hp_private.io_tlb_shift)
 
#define AGP8X_MODE_BIT   3
 
#define AGP8X_MODE   (1 << AGP8X_MODE_BIT)
 

Functions

 module_init (agp_hp_init)
 
 module_exit (agp_hp_cleanup)
 
 MODULE_LICENSE ("GPL and additional rights")
 

Variables

struct agp_bridge_driver hp_zx1_driver
 

Macro Definition Documentation

#define AGP8X_MODE   (1 << AGP8X_MODE_BIT)

Definition at line 42 of file hp-agp.c.

#define AGP8X_MODE_BIT   3

Definition at line 41 of file hp-agp.c.

#define HP_ZX1_GART_SIZE   (HP_ZX1_IOVA_SIZE / 2)

Definition at line 35 of file hp-agp.c.

#define HP_ZX1_IBASE   0x300

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

#define HP_ZX1_IMASK   0x308

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

#define HP_ZX1_IOC_OFFSET   0x1000 /* ACPI reports SBA, we want IOC */

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

#define HP_ZX1_IOVA_BASE   GB(1UL)

Definition at line 33 of file hp-agp.c.

#define HP_ZX1_IOVA_SIZE   GB(1UL)

Definition at line 34 of file hp-agp.c.

#define HP_ZX1_IOVA_TO_PDIR (   va)    ((va - hp_private.iova_base) >> hp_private.io_tlb_shift)

Definition at line 39 of file hp-agp.c.

#define HP_ZX1_PCOM   0x310

Definition at line 29 of file hp-agp.c.

#define HP_ZX1_PDIR_BASE   0x320

Definition at line 31 of file hp-agp.c.

#define HP_ZX1_PDIR_VALID_BIT   0x8000000000000000UL

Definition at line 38 of file hp-agp.c.

#define HP_ZX1_SBA_IOMMU_COOKIE   0x0000badbadc0ffeeUL

Definition at line 36 of file hp-agp.c.

#define HP_ZX1_TCNFG   0x318

Definition at line 30 of file hp-agp.c.

Function Documentation

module_exit ( agp_hp_cleanup  )
module_init ( agp_hp_init  )
MODULE_LICENSE ( "GPL and additional rights"  )

Variable Documentation

struct agp_bridge_driver hp_zx1_driver
Initial value:
= {
.owner = THIS_MODULE,
.size_type = FIXED_APER_SIZE,
.configure = hp_zx1_configure,
.fetch_size = hp_zx1_fetch_size,
.cleanup = hp_zx1_cleanup,
.tlb_flush = hp_zx1_tlbflush,
.mask_memory = hp_zx1_mask_memory,
.masks = hp_zx1_masks,
.agp_enable = hp_zx1_enable,
.cache_flush = global_cache_flush,
.create_gatt_table = hp_zx1_create_gatt_table,
.free_gatt_table = hp_zx1_free_gatt_table,
.insert_memory = hp_zx1_insert_memory,
.remove_memory = hp_zx1_remove_memory,
.alloc_by_type = agp_generic_alloc_by_type,
.free_by_type = agp_generic_free_by_type,
.agp_alloc_page = agp_generic_alloc_page,
.agp_alloc_pages = agp_generic_alloc_pages,
.agp_destroy_page = agp_generic_destroy_page,
.agp_destroy_pages = agp_generic_destroy_pages,
.agp_type_to_mask_type = agp_generic_type_to_mask_type,
.cant_use_aperture = true,
}

Definition at line 420 of file hp-agp.c.