Merge tag 'for-linus' of git://git.kernel.org/pub/scm/virt/kvm/kvm
[linux-block.git] / drivers / char / agp / uninorth-agp.c
CommitLineData
09c434b8 1// SPDX-License-Identifier: GPL-2.0-only
1da177e4
LT
2/*
3 * UniNorth AGPGART routines.
4 */
5#include <linux/module.h>
6#include <linux/pci.h>
5a0e3ad6 7#include <linux/slab.h>
1da177e4
LT
8#include <linux/init.h>
9#include <linux/pagemap.h>
10#include <linux/agp_backend.h>
11#include <linux/delay.h>
e8a5f900 12#include <linux/vmalloc.h>
1da177e4 13#include <asm/uninorth.h>
1da177e4 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{