mga_drv.c revision 112015
195584Sanholt/* mga_drv.c -- Matrox G200/G400 driver -*- linux-c -*-
295584Sanholt * Created: Mon Dec 13 01:56:22 1999 by jhartmann@precisioninsight.com
395584Sanholt *
495584Sanholt * Copyright 1999 Precision Insight, Inc., Cedar Park, Texas.
595584Sanholt * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
695584Sanholt * All Rights Reserved.
795584Sanholt *
895584Sanholt * Permission is hereby granted, free of charge, to any person obtaining a
995584Sanholt * copy of this software and associated documentation files (the "Software"),
1095584Sanholt * to deal in the Software without restriction, including without limitation
1195584Sanholt * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1295584Sanholt * and/or sell copies of the Software, and to permit persons to whom the
1395584Sanholt * Software is furnished to do so, subject to the following conditions:
1495584Sanholt *
1595584Sanholt * The above copyright notice and this permission notice (including the next
1695584Sanholt * paragraph) shall be included in all copies or substantial portions of the
1795584Sanholt * Software.
1895584Sanholt *
1995584Sanholt * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
2095584Sanholt * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2195584Sanholt * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
2295584Sanholt * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
2395584Sanholt * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2495584Sanholt * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2595584Sanholt * OTHER DEALINGS IN THE SOFTWARE.
2695584Sanholt *
2795584Sanholt * Authors:
2895584Sanholt *    Rickard E. (Rik) Faith <faith@valinux.com>
2995584Sanholt *    Gareth Hughes <gareth@valinux.com>
3095584Sanholt *
3195584Sanholt * $FreeBSD: head/sys/dev/drm/mga_drv.c 112015 2003-03-09 02:08:30Z anholt $
3295584Sanholt */
3395584Sanholt
3495584Sanholt#include "dev/drm/mga.h"
3595584Sanholt#include "dev/drm/drmP.h"
36112015Sanholt#include "dev/drm/drm.h"
3795746Sanholt#include "dev/drm/mga_drm.h"
3895584Sanholt#include "dev/drm/mga_drv.h"
3995584Sanholt
40112015Sanholt/* List acquired from http://www.yourvote.com/pci/pcihdr.h and xc/xc/programs/Xserver/hw/xfree86/common/xf86PciInfo.h
41112015Sanholt * Please report to anholt@teleport.com inaccuracies or if a chip you have works that is marked unsupported here.
4295584Sanholt */
4395584Sanholtdrm_chipinfo_t DRM(devicelist)[] = {
4495584Sanholt	{0x102b, 0x0520, 0, "Matrox G200 (PCI)"},
4595584Sanholt	{0x102b, 0x0521, 1, "Matrox G200 (AGP)"},
4695584Sanholt	{0x102b, 0x0525, 1, "Matrox G400/G450 (AGP)"},
4795584Sanholt	{0x102b, 0x2527, 1, "Matrox G550 (AGP)"},
4895584Sanholt	{0, 0, 0, NULL}
4995584Sanholt};
5095584Sanholt
5195584Sanholt#include "dev/drm/drm_agpsupport.h"
5295584Sanholt#include "dev/drm/drm_auth.h"
5395584Sanholt#include "dev/drm/drm_bufs.h"
5495584Sanholt#include "dev/drm/drm_context.h"
5595584Sanholt#include "dev/drm/drm_dma.h"
5695584Sanholt#include "dev/drm/drm_drawable.h"
5795584Sanholt#include "dev/drm/drm_drv.h"
5895584Sanholt#include "dev/drm/drm_fops.h"
5995584Sanholt#include "dev/drm/drm_init.h"
6095584Sanholt#include "dev/drm/drm_ioctl.h"
6195584Sanholt#include "dev/drm/drm_lock.h"
6295584Sanholt#include "dev/drm/drm_memory.h"
6395584Sanholt#include "dev/drm/drm_vm.h"
6495584Sanholt#include "dev/drm/drm_sysctl.h"
6595584Sanholt
66112015Sanholt#ifdef __FreeBSD__
6795584SanholtDRIVER_MODULE(mga, pci, mga_driver, mga_devclass, 0, 0);
68112015Sanholt#elif defined(__NetBSD__)
69112015SanholtCFDRIVER_DECL(mga, DV_TTY, NULL);
70112015Sanholt#endif
71