/* $XConsortium: nv_driver.c /main/3 1996/10/28 05:13:37 kaleb $ */ /* * Copyright 1996-1997 David J. McKay * * Permission is hereby granted, free of charge, to any person obtaining a * copy of this software and associated documentation files (the "Software"), * to deal in the Software without restriction, including without limitation * the rights to use, copy, modify, merge, publish, distribute, sublicense, * and/or sell copies of the Software, and to permit persons to whom the * Software is furnished to do so, subject to the following conditions: * * The above copyright notice and this permission notice shall be included in * all copies or substantial portions of the Software. * * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, * FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL * DAVID J. MCKAY BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF * OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE * SOFTWARE. */ /* * GPL licensing note -- nVidia is allowing a liberal interpretation of * the documentation restriction above, to merely say that this nVidia's * copyright and disclaimer should be included with all code derived * from this source. -- Jeff Garzik <[email protected]>, 01/Nov/99 */ /* Hacked together from mga driver and 3.3.4 NVIDIA driver by Jarno Paananen <[email protected]> */ /* $XFree86: xc/programs/Xserver/hw/xfree86/drivers/nv/nv_setup.c,v 1.18 2002/08/0 5 20:47:06 mvojkovi Exp $ */ #include <linux/delay.h> #include <linux/pci.h> #include <linux/pci_ids.h> #include "nv_type.h" #include "rivafb.h" #include "nvreg.h" #define PFX … static inline unsigned char MISCin(struct riva_par *par) { … } static Bool riva_is_connected(struct riva_par *par, Bool second) { … } static void riva_override_CRTC(struct riva_par *par) { … } static void riva_is_second(struct riva_par *par) { … } unsigned long riva_get_memlen(struct riva_par *par) { … } unsigned long riva_get_maxdclk(struct riva_par *par) { … } void riva_common_setup(struct riva_par *par) { … }