From 71f9b7357cb3d4ea7bb5b396840de3985bc13ad4 Mon Sep 17 00:00:00 2001 From: Eric Anholt Date: Tue, 8 Nov 2005 05:29:26 +0000 Subject: Fix FreeBSD DRM for latest MGA changes to agp support, which cleans things up a good bit, I think. Also, remove the agp_uninit() function which has lain around as a noop for years now. The FreeBSD DRM is now all compiling, with the exception of via. One known sleeping-with-lock-held issue remains. --- shared-core/mga_dma.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'shared-core/mga_dma.c') diff --git a/shared-core/mga_dma.c b/shared-core/mga_dma.c index fa3dd394..cc93d5ae 100644 --- a/shared-core/mga_dma.c +++ b/shared-core/mga_dma.c @@ -546,6 +546,7 @@ static int mga_do_agp_dma_bootstrap(drm_device_t * dev, return err; } +#ifdef __linux__ { drm_map_list_t *_entry; unsigned long agp_token = 0; @@ -559,6 +560,7 @@ static int mga_do_agp_dma_bootstrap(drm_device_t * dev, dev->agp_buffer_token = agp_token; } +#endif offset += secondary_size; err = drm_addmap( dev, offset, agp_size - offset, -- cgit v1.2.3