radeon_drv.c revision 112015
195584Sanholt/* radeon_drv.c -- ATI Radeon driver -*- linux-c -*-
295584Sanholt * Created: Wed Feb 14 17:10:04 2001 by gareth@valinux.com
395584Sanholt *
495584Sanholt * Copyright 2000 VA Linux Systems, Inc., Sunnyvale, California.
595584Sanholt * All Rights Reserved.
695584Sanholt *
795584Sanholt * Permission is hereby granted, free of charge, to any person obtaining a
895584Sanholt * copy of this software and associated documentation files (the "Software"),
995584Sanholt * to deal in the Software without restriction, including without limitation
1095584Sanholt * the rights to use, copy, modify, merge, publish, distribute, sublicense,
1195584Sanholt * and/or sell copies of the Software, and to permit persons to whom the
1295584Sanholt * Software is furnished to do so, subject to the following conditions:
1395584Sanholt *
1495584Sanholt * The above copyright notice and this permission notice (including the next
1595584Sanholt * paragraph) shall be included in all copies or substantial portions of the
1695584Sanholt * Software.
1795584Sanholt *
1895584Sanholt * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
1995584Sanholt * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
2095584Sanholt * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.  IN NO EVENT SHALL
2195584Sanholt * VA LINUX SYSTEMS AND/OR ITS SUPPLIERS BE LIABLE FOR ANY CLAIM, DAMAGES OR
2295584Sanholt * OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
2395584Sanholt * ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
2495584Sanholt * OTHER DEALINGS IN THE SOFTWARE.
2595584Sanholt *
2695584Sanholt * Authors:
2795584Sanholt *    Gareth Hughes <gareth@valinux.com>
2895584Sanholt *
2995584Sanholt * $FreeBSD: head/sys/dev/drm/radeon_drv.c 112015 2003-03-09 02:08:30Z anholt $
3095584Sanholt */
3195584Sanholt
3295584Sanholt#include "dev/drm/radeon.h"
3395584Sanholt#include "dev/drm/drmP.h"
34112015Sanholt#include "dev/drm/drm.h"
3595746Sanholt#include "dev/drm/radeon_drm.h"
3695584Sanholt#include "dev/drm/radeon_drv.h"
3795584Sanholt#if __REALLY_HAVE_SG
38112015Sanholt#include "dev/drm/ati_pcigart.h"
3995584Sanholt#endif
4095584Sanholt
4195584Sanholtdrm_chipinfo_t DRM(devicelist)[] = {
42112015Sanholt	{0x1002, 0x4242, 1, "ATI Radeon BB AIW 8500DV (AGP)"},
43112015Sanholt	{0x1002, 0x4336, 1, "ATI Radeon Mobility"},
44112015Sanholt	{0x1002, 0x4337, 1, "ATI Radeon IGP 340"},
45112015Sanholt	{0x1002, 0x4964, 1, "ATI Radeon Id 9000"},
46112015Sanholt	{0x1002, 0x4965, 1, "ATI Radeon Ie 9000"},
47112015Sanholt	{0x1002, 0x4966, 1, "ATI Radeon If 9000"},
48112015Sanholt	{0x1002, 0x4967, 1, "ATI Radeon Ig 9000"},
49112015Sanholt	{0x1002, 0x496e, 1, "ATI Radeon Ig 9000"},
5095584Sanholt	{0x1002, 0x4C57, 1, "ATI Radeon LW Mobility 7 (AGP)"},
51112015Sanholt	{0x1002, 0x4C58, 1, "ATI Radeon LX Mobility 7 (AGP)"},
5295584Sanholt	{0x1002, 0x4C59, 1, "ATI Radeon LY Mobility 6 (AGP)"},
5395584Sanholt	{0x1002, 0x4C5A, 1, "ATI Radeon LZ Mobility 6 (AGP)"},
54112015Sanholt	{0x1002, 0x4C64, 1, "ATI Radeon Ld Mobility 9000 (AGP)"},
55112015Sanholt	{0x1002, 0x4C65, 1, "ATI Radeon Le Mobility 9000 (AGP)"},
56112015Sanholt	{0x1002, 0x4C66, 1, "ATI Radeon Lf Mobility 9000 (AGP)"},
57112015Sanholt	{0x1002, 0x4C67, 1, "ATI Radeon Lg Mobility 9000 (AGP)"},
58112015Sanholt	{0x1002, 0x5144, 1, "ATI Radeon QD R100 (AGP)"},
59112015Sanholt	{0x1002, 0x5145, 1, "ATI Radeon QE R100 (AGP)"},
60112015Sanholt	{0x1002, 0x5146, 1, "ATI Radeon QF R100 (AGP)"},
61112015Sanholt	{0x1002, 0x5147, 1, "ATI Radeon QG R100 (AGP)"},
62112015Sanholt	{0x1002, 0x5148, 1, "ATI Radeon QH FireGL 8x00 (AGP)"},
63112015Sanholt	{0x1002, 0x5149, 1, "ATI Radeon QI R200"},
64112015Sanholt	{0x1002, 0x514A, 1, "ATI Radeon QJ R200"},
65112015Sanholt	{0x1002, 0x514B, 1, "ATI Radeon QK R200"},
66112015Sanholt	{0x1002, 0x514C, 1, "ATI Radeon QL 8500 (AGP)"},
6795584Sanholt	{0x1002, 0x5157, 1, "ATI Radeon QW 7500 (AGP)"},
68112015Sanholt	{0x1002, 0x5158, 1, "ATI Radeon QX 7500 (AGP)"},
6995584Sanholt	{0x1002, 0x5159, 1, "ATI Radeon QY VE (AGP)"},
7095584Sanholt	{0x1002, 0x515A, 1, "ATI Radeon QZ VE (AGP)"},
71112015Sanholt	{0x1002, 0x5168, 1, "ATI Radeon Qh R200"},
72112015Sanholt	{0x1002, 0x5169, 1, "ATI Radeon Qi R200"},
73112015Sanholt	{0x1002, 0x516A, 1, "ATI Radeon Qj R200"},
74112015Sanholt	{0x1002, 0x516B, 1, "ATI Radeon Qk R200"},
7595584Sanholt	{0, 0, 0, NULL}
7695584Sanholt};
7795584Sanholt
7895584Sanholt#include "dev/drm/drm_agpsupport.h"
7995584Sanholt#include "dev/drm/drm_auth.h"
8095584Sanholt#include "dev/drm/drm_bufs.h"
8195584Sanholt#include "dev/drm/drm_context.h"
8295584Sanholt#include "dev/drm/drm_dma.h"
8395584Sanholt#include "dev/drm/drm_drawable.h"
8495584Sanholt#include "dev/drm/drm_drv.h"
8595584Sanholt#include "dev/drm/drm_fops.h"
8695584Sanholt#include "dev/drm/drm_init.h"
8795584Sanholt#include "dev/drm/drm_ioctl.h"
8895584Sanholt#include "dev/drm/drm_lock.h"
8995584Sanholt#include "dev/drm/drm_memory.h"
9095584Sanholt#include "dev/drm/drm_vm.h"
9195584Sanholt#include "dev/drm/drm_sysctl.h"
92112015Sanholt#if __HAVE_SG
9395584Sanholt#include "dev/drm/drm_scatter.h"
9495584Sanholt#endif
9595584Sanholt
9695584Sanholt#ifdef __FreeBSD__
97112015SanholtDRIVER_MODULE(DRIVER_NAME, pci, DRM(driver), DRM(devclass), 0, 0);
98112015Sanholt#elif defined(__NetBSD__)
99112015SanholtCFDRIVER_DECL(radeon, DV_TTY, NULL);
10095584Sanholt#endif /* __FreeBSD__ */
101