Merge branch 'drm-tda998x-devel' of git://ftp.arm.linux.org.uk/~rmk/linux-arm into...
[deliverable/linux.git] / drivers / char / agp / uninorth-agp.c
CommitLineData
1da177e4
LT
1/*
2 * UniNorth AGPGART routines.
3 */
4#include <linux/module.h>
5#include <linux/pci.h>
5a0e3ad6 6#include <linux/slab.h>
1da177e4
LT
7#include <linux/init.h>
8#include <linux/pagemap.h>
9#include <linux/agp_backend.h>
10#include <linux/delay.h>
e8a5f900 11#include <linux/vmalloc.h>
1da177e4
LT
12#include <asm/uninorth.h>
13#include <asm/pci-bridge.h>
14#include <asm/prom.h>
0c541b44 15#include <asm/pmac_feature.h>
1da177e4
LT
16#include "agp.h"
17
18/*
19 * NOTES for uninorth3 (G5 AGP) supports :
20 *
21 * There maybe also possibility to have bigger cache line size for
22 * agp (see pmac_pci.c and look for cache line). Need to be investigated
23 * by someone.
24 *
25 * PAGE size are hardcoded but this may change, see asm/page.h.
26 *
27 * Jerome Glisse <j.glisse@gmail.com>
28 */
29static int uninorth_rev;
30static int is_u3;
61cf0593 31static u32 scratch_value;
1da177e4 32
52f072cb
MD
33#define DEFAULT_APERTURE_SIZE 256
34#define DEFAULT_APERTURE_STRING "256"
b0385146 35static char *aperture = NULL;
0c541b44 36
1da177e4
LT
37static int uninorth_fetch_size(void)
38{