mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2025-12-25 03:40:10 +01:00
Move some header includes to drm_os_freebsd.h. This is in preparation for
some NetBSD work to be done soon. There shouldn't be too much extra
header inclusion, and it'll clean up a lot of #ifdefs.
This commit is contained in:
parent
117d3d9a7e
commit
9c7a48f2ce
43 changed files with 42 additions and 122 deletions
|
|
@ -27,7 +27,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if PAGE_SIZE == 8192
|
||||
|
|
|
|||
|
|
@ -31,12 +31,6 @@
|
|||
|
||||
#include "drmP.h"
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
int DRM(agp_info)(DRM_OS_IOCTL)
|
||||
{
|
||||
drm_device_t *dev = kdev->si_drv1;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
static int DRM(hash_magic)(drm_magic_t magic)
|
||||
|
|
|
|||
|
|
@ -29,14 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include <machine/param.h>
|
||||
#include <sys/mman.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include "drmP.h"
|
||||
|
||||
#ifndef __HAVE_PCI_DMA
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if __HAVE_CTX_BITMAP
|
||||
|
|
|
|||
|
|
@ -29,10 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#include <sys/rman.h>
|
||||
|
||||
#include "drmP.h"
|
||||
|
||||
#ifndef __HAVE_DMA_WAITQUEUE
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
int DRM(adddraw)( DRM_OS_IOCTL )
|
||||
|
|
|
|||
|
|
@ -116,15 +116,7 @@
|
|||
#define DRIVER_IOCTLS
|
||||
#endif
|
||||
#ifndef DRIVER_FOPS
|
||||
#if DRM_LINUX
|
||||
#include <sys/file.h>
|
||||
#include <sys/proc.h>
|
||||
#include <machine/../linux/linux.h>
|
||||
#include <machine/../linux/linux_proto.h>
|
||||
#include "drm_linux.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* The default number of instances (minor numbers) to initialize.
|
||||
|
|
|
|||
|
|
@ -30,13 +30,8 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/poll.h>
|
||||
|
||||
drm_file_t *DRM(find_file_by_proc)(drm_device_t *dev, DRM_OS_STRUCTPROC *p)
|
||||
{
|
||||
#if __FreeBSD_version >= 500021
|
||||
|
|
|
|||
|
|
@ -29,10 +29,7 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
int DRM(irq_busid)( DRM_OS_IOCTL )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
int DRM(block)( DRM_OS_IOCTL )
|
||||
|
|
|
|||
|
|
@ -29,13 +29,7 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
#define malloctype DRM(M_DRM)
|
||||
/* The macros confliced in the MALLOC_DEFINE */
|
||||
|
|
|
|||
|
|
@ -12,10 +12,21 @@
|
|||
#include <sys/uio.h>
|
||||
#include <sys/filio.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/poll.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <machine/param.h>
|
||||
#include <machine/pmap.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/rman.h>
|
||||
#include <pci/pcivar.h>
|
||||
#if __FreeBSD_version >= 500000
|
||||
#include <sys/selinfo.h>
|
||||
#endif
|
||||
|
|
@ -36,6 +47,7 @@
|
|||
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <pci/agpvar.h>
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
#include <opt_drm.h>
|
||||
|
|
@ -45,6 +57,14 @@
|
|||
#endif
|
||||
#undef DRM_DEBUG
|
||||
|
||||
#if DRM_LINUX
|
||||
#include <sys/file.h>
|
||||
#include <sys/proc.h>
|
||||
#include <machine/../linux/linux.h>
|
||||
#include <machine/../linux/linux_proto.h>
|
||||
#include "drm_linux.h"
|
||||
#endif
|
||||
|
||||
#define DRM_TIME_SLICE (hz/20) /* Time slice for GLXContexts */
|
||||
|
||||
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
|
||||
static int DRM(dma_mmap)(dev_t kdev, vm_offset_t offset, int prot)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "mga.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "r128.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "radeon.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "tdfx.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -27,7 +27,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if PAGE_SIZE == 8192
|
||||
|
|
|
|||
|
|
@ -31,12 +31,6 @@
|
|||
|
||||
#include "drmP.h"
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
int DRM(agp_info)(DRM_OS_IOCTL)
|
||||
{
|
||||
drm_device_t *dev = kdev->si_drv1;
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
static int DRM(hash_magic)(drm_magic_t magic)
|
||||
|
|
|
|||
|
|
@ -29,14 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include <machine/param.h>
|
||||
#include <sys/mman.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include "drmP.h"
|
||||
|
||||
#ifndef __HAVE_PCI_DMA
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if __HAVE_CTX_BITMAP
|
||||
|
|
|
|||
|
|
@ -29,10 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#include <sys/rman.h>
|
||||
|
||||
#include "drmP.h"
|
||||
|
||||
#ifndef __HAVE_DMA_WAITQUEUE
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
int DRM(adddraw)( DRM_OS_IOCTL )
|
||||
|
|
|
|||
|
|
@ -116,15 +116,7 @@
|
|||
#define DRIVER_IOCTLS
|
||||
#endif
|
||||
#ifndef DRIVER_FOPS
|
||||
#if DRM_LINUX
|
||||
#include <sys/file.h>
|
||||
#include <sys/proc.h>
|
||||
#include <machine/../linux/linux.h>
|
||||
#include <machine/../linux/linux_proto.h>
|
||||
#include "drm_linux.h"
|
||||
#endif
|
||||
#endif
|
||||
|
||||
|
||||
/*
|
||||
* The default number of instances (minor numbers) to initialize.
|
||||
|
|
|
|||
|
|
@ -30,13 +30,8 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/poll.h>
|
||||
|
||||
drm_file_t *DRM(find_file_by_proc)(drm_device_t *dev, DRM_OS_STRUCTPROC *p)
|
||||
{
|
||||
#if __FreeBSD_version >= 500021
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if 0 && DRM_DEBUG_CODE
|
||||
|
|
|
|||
|
|
@ -29,10 +29,7 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
int DRM(irq_busid)( DRM_OS_IOCTL )
|
||||
{
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
#if __HAVE_DMA_WAITLIST
|
||||
|
|
|
|||
|
|
@ -29,7 +29,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
|
||||
int DRM(block)( DRM_OS_IOCTL )
|
||||
|
|
|
|||
|
|
@ -29,13 +29,7 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "drmP.h"
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
#define malloctype DRM(M_DRM)
|
||||
/* The macros confliced in the MALLOC_DEFINE */
|
||||
|
|
|
|||
|
|
@ -12,10 +12,21 @@
|
|||
#include <sys/uio.h>
|
||||
#include <sys/filio.h>
|
||||
#include <sys/sysctl.h>
|
||||
#include <sys/select.h>
|
||||
#include <sys/bus.h>
|
||||
#include <sys/signalvar.h>
|
||||
#include <sys/poll.h>
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
#include <vm/vm_extern.h>
|
||||
#include <vm/vm_map.h>
|
||||
#include <vm/vm_param.h>
|
||||
#include <machine/param.h>
|
||||
#include <machine/pmap.h>
|
||||
#include <machine/bus.h>
|
||||
#include <machine/resource.h>
|
||||
#include <sys/mman.h>
|
||||
#include <sys/rman.h>
|
||||
#include <pci/pcivar.h>
|
||||
#if __FreeBSD_version >= 500000
|
||||
#include <sys/selinfo.h>
|
||||
#endif
|
||||
|
|
@ -36,6 +47,7 @@
|
|||
|
||||
#if __REALLY_HAVE_AGP
|
||||
#include <pci/agpvar.h>
|
||||
#include <sys/agpio.h>
|
||||
#endif
|
||||
|
||||
#include <opt_drm.h>
|
||||
|
|
@ -45,6 +57,14 @@
|
|||
#endif
|
||||
#undef DRM_DEBUG
|
||||
|
||||
#if DRM_LINUX
|
||||
#include <sys/file.h>
|
||||
#include <sys/proc.h>
|
||||
#include <machine/../linux/linux.h>
|
||||
#include <machine/../linux/linux_proto.h>
|
||||
#include "drm_linux.h"
|
||||
#endif
|
||||
|
||||
#define DRM_TIME_SLICE (hz/20) /* Time slice for GLXContexts */
|
||||
|
||||
#define DRM_DEV_MODE (S_IRUSR|S_IWUSR|S_IRGRP|S_IWGRP)
|
||||
|
|
|
|||
|
|
@ -1,5 +1,3 @@
|
|||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
|
||||
static int DRM(dma_mmap)(dev_t kdev, vm_offset_t offset, int prot)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@
|
|||
*/
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
#include "gamma.h"
|
||||
#include "drmP.h"
|
||||
#include "drm.h"
|
||||
|
|
|
|||
|
|
@ -33,7 +33,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "mga.h"
|
||||
#include "drmP.h"
|
||||
#include "drm.h"
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "mga.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -32,7 +32,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "mga.h"
|
||||
#include "drmP.h"
|
||||
#include "drm.h"
|
||||
|
|
|
|||
|
|
@ -28,7 +28,6 @@
|
|||
* Gareth Hughes <gareth@valinux.com>
|
||||
*/
|
||||
|
||||
#define __NO_VERSION__
|
||||
#include "r128.h"
|
||||
#include "drmP.h"
|
||||
#include "drm.h"
|
||||
|
|
|
|||
|
|
@ -31,8 +31,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "r128.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -34,9 +34,6 @@
|
|||
#include "radeon_drm.h"
|
||||
#include "radeon_drv.h"
|
||||
|
||||
#include <vm/vm.h>
|
||||
#include <vm/pmap.h>
|
||||
|
||||
#define RADEON_FIFO_DEBUG 0
|
||||
|
||||
#if defined(__alpha__)
|
||||
|
|
|
|||
|
|
@ -30,8 +30,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "radeon.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
|
|
@ -32,8 +32,6 @@
|
|||
|
||||
|
||||
#include <sys/types.h>
|
||||
#include <sys/bus.h>
|
||||
#include <pci/pcivar.h>
|
||||
|
||||
#include "tdfx.h"
|
||||
#include "drmP.h"
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue