Linux Kernel  3.7.1
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Groups Pages
Macros | Functions | Variables
uninorth-agp.c File Reference
#include <linux/module.h>
#include <linux/pci.h>
#include <linux/slab.h>
#include <linux/init.h>
#include <linux/pagemap.h>
#include <linux/agp_backend.h>
#include <linux/delay.h>
#include <linux/vmalloc.h>
#include <asm/uninorth.h>
#include <asm/pci-bridge.h>
#include <asm/prom.h>
#include <asm/pmac_feature.h>
#include "agp.h"

Go to the source code of this file.

Macros

#define DEFAULT_APERTURE_SIZE   256
 
#define DEFAULT_APERTURE_STRING   "256"
 

Functions

int uninorth_remove_memory (struct agp_memory *mem, off_t pg_start, int type)
 
void null_cache_flush (void)
 
 MODULE_DEVICE_TABLE (pci, agp_uninorth_pci_table)
 
 module_init (agp_uninorth_init)
 
 module_exit (agp_uninorth_cleanup)
 
 module_param (aperture, charp, 0)
 
 MODULE_PARM_DESC (aperture,"Aperture size, must be power of two between 4MB and an\n""\t\tupper limit specific to the UniNorth revision.\n""\t\tDefault: "DEFAULT_APERTURE_STRING"M")
 
 MODULE_AUTHOR ("Ben Herrenschmidt & Paul Mackerras")
 
 MODULE_LICENSE ("GPL")
 

Variables

struct agp_bridge_driver uninorth_agp_driver
 
struct agp_bridge_driver u3_agp_driver
 

Macro Definition Documentation

#define DEFAULT_APERTURE_SIZE   256

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

#define DEFAULT_APERTURE_STRING   "256"

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

Function Documentation

MODULE_AUTHOR ( "Ben Herrenschmidt & Paul Mackerras"  )
MODULE_DEVICE_TABLE ( pci  ,
agp_uninorth_pci_table   
)
module_exit ( agp_uninorth_cleanup  )
module_init ( agp_uninorth_init  )
MODULE_LICENSE ( "GPL"  )
module_param ( aperture  ,
charp  ,
 
)
MODULE_PARM_DESC ( aperture  ,
"Aperture  size,
must be power of two between 4MB and an\n""\t\tupper limit specific to the UniNorth revision.\n""\t\tDefault:"DEFAULT_APERTURE_STRING"M"   
)
void null_cache_flush ( void  )

Definition at line 470 of file uninorth-agp.c.

int uninorth_remove_memory ( struct agp_memory mem,
off_t  pg_start,
int  type 
)

Definition at line 199 of file uninorth-agp.c.

Variable Documentation

struct agp_bridge_driver u3_agp_driver
Initial value:
= {
.owner = THIS_MODULE,
.aperture_sizes = (void *)u3_sizes,
.size_type = U32_APER_SIZE,
.num_aperture_sizes = ARRAY_SIZE(u3_sizes),
.configure = uninorth_configure,
.fetch_size = uninorth_fetch_size,
.cleanup = uninorth_cleanup,
.tlb_flush = uninorth_tlbflush,
.mask_memory = agp_generic_mask_memory,
.masks = NULL,
.cache_flush = null_cache_flush,
.agp_enable = uninorth_agp_enable,
.create_gatt_table = uninorth_create_gatt_table,
.free_gatt_table = uninorth_free_gatt_table,
.insert_memory = uninorth_insert_memory,
.remove_memory = uninorth_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,
.needs_scratch_page = true,
}

Definition at line 532 of file uninorth-agp.c.

struct agp_bridge_driver uninorth_agp_driver
Initial value:
= {
.owner = THIS_MODULE,
.aperture_sizes = (void *)uninorth_sizes,
.size_type = U32_APER_SIZE,
.num_aperture_sizes = ARRAY_SIZE(uninorth_sizes),
.configure = uninorth_configure,
.fetch_size = uninorth_fetch_size,
.cleanup = uninorth_cleanup,
.tlb_flush = uninorth_tlbflush,
.mask_memory = agp_generic_mask_memory,
.masks = NULL,
.cache_flush = null_cache_flush,
.agp_enable = uninorth_agp_enable,
.create_gatt_table = uninorth_create_gatt_table,
.free_gatt_table = uninorth_free_gatt_table,
.insert_memory = uninorth_insert_memory,
.remove_memory = uninorth_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,
.needs_scratch_page = true,
}

Definition at line 504 of file uninorth-agp.c.