#include <linux/module.h>
#include <linux/pci.h>
#include <linux/init.h>
#include <linux/agp_backend.h>
#include <linux/mmzone.h>
#include <asm/page.h>
#include <asm/e820/api.h>
#include <asm/amd_nb.h>
#include <asm/gart.h>
#include "agp.h"
#define NVIDIA_X86_64_0_APBASE …
#define NVIDIA_X86_64_1_APBASE1 …
#define NVIDIA_X86_64_1_APLIMIT1 …
#define NVIDIA_X86_64_1_APSIZE …
#define NVIDIA_X86_64_1_APBASE2 …
#define NVIDIA_X86_64_1_APLIMIT2 …
#define ULI_X86_64_BASE_ADDR …
#define ULI_X86_64_HTT_FEA_REG …
#define ULI_X86_64_ENU_SCR_REG …
static struct resource *aperture_resource;
static bool __initdata agp_try_unsupported = …;
static int agp_bridges_found;
static void amd64_tlbflush(struct agp_memory *temp)
{ … }
static int amd64_insert_memory(struct agp_memory *mem, off_t pg_start, int type)
{ … }
static struct aper_size_info_32 amd64_aperture_sizes[7] = …;
static int amd64_fetch_size(void)
{ … }
static u64 amd64_configure(struct pci_dev *hammer, u64 gatt_table)
{ … }
static const struct aper_size_info_32 amd_8151_sizes[7] = …;
static int amd_8151_configure(void)
{ … }
static void amd64_cleanup(void)
{ … }
static const struct agp_bridge_driver amd_8151_driver = …;
static int agp_aperture_valid(u64 aper, u32 size)
{ … }
static int fix_northbridge(struct pci_dev *nb, struct pci_dev *agp, u16 cap)
{ … }
static int cache_nbs(struct pci_dev *pdev, u32 cap_ptr)
{ … }
static void amd8151_init(struct pci_dev *pdev, struct agp_bridge_data *bridge)
{ … }
static const struct aper_size_info_32 uli_sizes[7] = …;
static int uli_agp_init(struct pci_dev *pdev)
{ … }
static const struct aper_size_info_32 nforce3_sizes[5] = …;
static int nforce3_agp_init(struct pci_dev *pdev)
{ … }
static int agp_amd64_probe(struct pci_dev *pdev,
const struct pci_device_id *ent)
{ … }
static void agp_amd64_remove(struct pci_dev *pdev)
{ … }
static int agp_amd64_resume(struct device *dev)
{ … }
static const struct pci_device_id agp_amd64_pci_table[] = …;
MODULE_DEVICE_TABLE(pci, agp_amd64_pci_table);
static const struct pci_device_id agp_amd64_pci_promisc_table[] = …;
static DEFINE_SIMPLE_DEV_PM_OPS(agp_amd64_pm_ops, NULL, agp_amd64_resume);
static struct pci_driver agp_amd64_pci_driver = …;
int __init agp_amd64_init(void)
{ … }
static int __init agp_amd64_mod_init(void)
{ … }
static void __exit agp_amd64_cleanup(void)
{ … }
module_init(…) …;
module_exit(agp_amd64_cleanup);
MODULE_AUTHOR(…) …;
module_param(agp_try_unsupported, bool, 0);
MODULE_DESCRIPTION(…) …;
MODULE_LICENSE(…) …;