1# $FreeBSD$ 2 3.PATH: ${.CURDIR}/../../dev/agp 4 5KMOD= agp 6SRCS= agp.c agp_if.c 7.if ${MACHINE_CPUARCH} == "i386" 8SRCS+= agp_i810.c agp_intel.c agp_via.c agp_sis.c agp_ali.c agp_amd.c \ 9 agp_nvidia.c agp_ati.c 10.endif 11.if ${MACHINE} == "i386" 12SRCS+= agp_amd64.c 13.endif 14.if ${MACHINE_CPUARCH} == "amd64" 15SRCS+= agp_amd64.c agp_i810.c agp_via.c 16.endif 17.if ${MACHINE_CPUARCH} == "powerpc" 18SRCS+= agp_apple.c 19.endif 20SRCS+= device_if.h bus_if.h agp_if.h pci_if.h 21SRCS+= opt_agp.h 22MFILES= kern/device_if.m kern/bus_if.m dev/agp/agp_if.m dev/pci/pci_if.m 23 24EXPORT_SYMS= agp_find_device \ 25 agp_state \ 26 agp_acquire \ 27 agp_release \ 28 agp_enable \ 29 agp_alloc_memory \ 30 agp_free_memory \ 31 agp_bind_memory \ 32 agp_unbind_memory \ 33 agp_memory_info 34 35 36.if ${MACHINE_CPUARCH} == "i386" || ${MACHINE_CPUARCH} == "amd64" 37EXPORT_SYMS+= intel_gtt_clear_range \ 38 intel_gtt_insert_pages \ 39 intel_gtt_get \ 40 intel_gtt_chipset_flush \ 41 intel_gtt_unmap_memory \ 42 intel_gtt_map_memory \ 43 intel_gtt_insert_sg_entries \ 44 intel_gtt_get_bridge_device 45.endif 46 47.include <bsd.kmod.mk> 48