MFC: ATI IGP AGP driver.

This commit is contained in:
anholt 2005-11-14 21:14:14 +00:00
parent efd8d6d5f0
commit fe7e62c722
3 changed files with 14 additions and 1 deletions

View File

@ -457,6 +457,7 @@ libkern/umoddi3.c standard
pci/agp_ali.c optional agp
pci/agp_amd.c optional agp
pci/agp_amd64.c optional agp
pci/agp_ati.c optional agp
pci/agp_i810.c optional agp
pci/agp_intel.c optional agp
pci/agp_nvidia.c optional agp

View File

@ -6,7 +6,7 @@ KMOD= agp
SRCS= agp.c agp_if.c
.if ${MACHINE_ARCH} == "i386"
SRCS+= agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \
agp_nvidia.c
agp_nvidia.c agp_ati.c
.endif
.if ${MACHINE} == "i386"
SRCS+= agp_amd64.c

View File

@ -262,4 +262,16 @@
#define AGP_AMD64_CACHECTRL_INVGART 0x00000001
#define AGP_AMD64_CACHECTRL_PTEERR 0x00000002
/*
* ATI IGP registers
*/
#define ATI_GART_MMADDR 0x14
#define ATI_RS100_APSIZE 0xac
#define ATI_RS100_IG_AGPMODE 0xb0
#define ATI_RS300_APSIZE 0xf8
#define ATI_RS300_IG_AGPMODE 0xfc
#define ATI_GART_FEATURE_ID 0x00
#define ATI_GART_BASE 0x04
#define ATI_GART_CACHE_CNTRL 0x0c
#endif /* !_PCI_AGPREG_H_ */