Deleted Added
full compact
agpreg.h (133406) agpreg.h (133852)
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
1/*-
2 * Copyright (c) 2000 Doug Rabson
3 * All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 9 unchanged lines hidden (view full) ---

18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
24 * SUCH DAMAGE.
25 *
26 * $FreeBSD: head/sys/dev/agp/agpreg.h 133406 2004-08-09 21:01:49Z anholt $
26 * $FreeBSD: head/sys/dev/agp/agpreg.h 133852 2004-08-16 12:25:48Z obrien $
27 */
28
29#ifndef _PCI_AGPREG_H_
30#define _PCI_AGPREG_H_
31
32/*
33 * Offsets for various AGP configuration registers.
34 */

--- 205 unchanged lines hidden (view full) ---

240#define AGP_NVIDIA_1_WBC 0xf0
241#define AGP_NVIDIA_2_GARTCTRL 0xd0
242#define AGP_NVIDIA_2_APBASE 0xd8
243#define AGP_NVIDIA_2_APLIMIT 0xdc
244#define AGP_NVIDIA_2_ATTBASE(i) (0xe0 + (i) * 4)
245#define AGP_NVIDIA_3_APBASE 0x50
246#define AGP_NVIDIA_3_APLIMIT 0x54
247
27 */
28
29#ifndef _PCI_AGPREG_H_
30#define _PCI_AGPREG_H_
31
32/*
33 * Offsets for various AGP configuration registers.
34 */

--- 205 unchanged lines hidden (view full) ---

240#define AGP_NVIDIA_1_WBC 0xf0
241#define AGP_NVIDIA_2_GARTCTRL 0xd0
242#define AGP_NVIDIA_2_APBASE 0xd8
243#define AGP_NVIDIA_2_APLIMIT 0xdc
244#define AGP_NVIDIA_2_ATTBASE(i) (0xe0 + (i) * 4)
245#define AGP_NVIDIA_3_APBASE 0x50
246#define AGP_NVIDIA_3_APLIMIT 0x54
247
248/*
249 * AMD64 GART registers
250 */
251#define AGP_AMD64_APCTRL 0x90
252#define AGP_AMD64_APBASE 0x94
253#define AGP_AMD64_ATTBASE 0x98
254#define AGP_AMD64_CACHECTRL 0x9c
255#define AGP_AMD64_APCTRL_GARTEN 0x00000001
256#define AGP_AMD64_APCTRL_SIZE_MASK 0x0000000e
257#define AGP_AMD64_APCTRL_DISGARTCPU 0x00000010
258#define AGP_AMD64_APCTRL_DISGARTIO 0x00000020
259#define AGP_AMD64_APCTRL_DISWLKPRB 0x00000040
260#define AGP_AMD64_APBASE_MASK 0x00007fff
261#define AGP_AMD64_ATTBASE_MASK 0xfffffff0
262#define AGP_AMD64_CACHECTRL_INVGART 0x00000001
263#define AGP_AMD64_CACHECTRL_PTEERR 0x00000002
264
248#endif /* !_PCI_AGPREG_H_ */
265#endif /* !_PCI_AGPREG_H_ */