Deleted Added
full compact
drm_agpsupport.c (256281) drm_agpsupport.c (275408)
1/*-
2 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

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

24 *
25 * Author:
26 * Rickard E. (Rik) Faith <faith@valinux.com>
27 * Gareth Hughes <gareth@valinux.com>
28 *
29 */
30
31#include <sys/cdefs.h>
1/*-
2 * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
3 * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
4 * All Rights Reserved.
5 *
6 * Permission is hereby granted, free of charge, to any person obtaining a
7 * copy of this software and associated documentation files (the "Software"),
8 * to deal in the Software without restriction, including without limitation

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

24 *
25 * Author:
26 * Rickard E. (Rik) Faith <faith@valinux.com>
27 * Gareth Hughes <gareth@valinux.com>
28 *
29 */
30
31#include <sys/cdefs.h>
32__FBSDID("$FreeBSD: stable/10/sys/dev/drm2/drm_agpsupport.c 235783 2012-05-22 11:07:44Z kib $");
32__FBSDID("$FreeBSD: stable/10/sys/dev/drm2/drm_agpsupport.c 275408 2014-12-02 14:09:54Z tijl $");
33
34/** @file drm_agpsupport.c
35 * Support code for tying the kernel AGP support to DRM drivers and
36 * the DRM's AGP ioctls.
37 */
38
39#include <dev/drm2/drmP.h>
40

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

391void *drm_agp_allocate_memory(size_t pages, u32 type)
392{
393 device_t agpdev;
394
395 agpdev = DRM_AGP_FIND_DEVICE();
396 if (!agpdev)
397 return NULL;
398
33
34/** @file drm_agpsupport.c
35 * Support code for tying the kernel AGP support to DRM drivers and
36 * the DRM's AGP ioctls.
37 */
38
39#include <dev/drm2/drmP.h>
40

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

391void *drm_agp_allocate_memory(size_t pages, u32 type)
392{
393 device_t agpdev;
394
395 agpdev = DRM_AGP_FIND_DEVICE();
396 if (!agpdev)
397 return NULL;
398
399 return agp_alloc_memory(agpdev, type, pages << AGP_PAGE_SHIFT);
399 return agp_alloc_memory(agpdev, type, pages << PAGE_SHIFT);
400}
401
402int drm_agp_free_memory(void *handle)
403{
404 device_t agpdev;
405
406 agpdev = DRM_AGP_FIND_DEVICE();
407 if (!agpdev || !handle)

--- 27 unchanged lines hidden ---
400}
401
402int drm_agp_free_memory(void *handle)
403{
404 device_t agpdev;
405
406 agpdev = DRM_AGP_FIND_DEVICE();
407 if (!agpdev || !handle)

--- 27 unchanged lines hidden ---