summaryrefslogtreecommitdiff
AgeCommit message (Expand)Author
2001-03-18__REALLY_HAVE_MTRR, vmalloc_32 fixes from Jeff Wiedemeier.Gareth Hughes
2001-03-15file agpgart.diff was initially added on branch gamma-2-0-0-branch.Alan Hourihane
2001-03-14Merged sarea-1-0-0Kevin E Martin
2001-03-13Rest of MGA dualhead patch.Gareth Hughes
2001-03-12Try that again...Gareth Hughes
2001-03-08Fix ring space calculations, tests. Based on patch by Bruce Stockwell.Gareth Hughes
2001-03-07Change error message to debug message when client dies while holding theGareth Hughes
2001-03-07surround agp calls in drm_memory with __REALLY_HAVE_AGP instead ofAlan Hourihane
2001-03-06Merge tdfx-3-1-0 branch.Gareth Hughes
2001-03-05allow dristat to find out whether AGP is write-combined or not.Alan Hourihane
2001-03-05fix that last patch to initialize the MTRR when AGP available.Alan Hourihane
2001-03-04Don't try and setup the MTRR for AGP when AGP not available. CheckAlan Hourihane
2001-02-28file drm_scatter.h was initially added on branch ati-pcigart-0-0-1-branch./* * Copyright 2007 Jérôme Glisse * All Rights Reserved. * * 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 (including the next * paragraph) 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 * PRECISION INSIGHT AND/OR ITS SUPPLIERS 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. */ /* * Authors: * Jerome Glisse <glisse@freedesktop.org> */ #include "radeon_ms.h" int radeon_ms_rom_get_properties(struct drm_device *dev) { struct drm_radeon_private *dev_priv = dev->dev_private; switch (dev_priv->rom.type) { case ROM_COMBIOS: return radeon_ms_combios_get_properties(dev); } return 0; } int radeon_ms_rom_init(struct drm_device *dev) { struct drm_radeon_private *dev_priv = dev->dev_private; struct radeon_ms_rom *rom = &dev_priv->rom; void *rom_mapped; char atomstr[5] = {0, 0, 0, 0, 0}; uint16_t *offset; dev_priv->rom.type = ROM_UNKNOWN; /* copy rom if any */ rom_mapped = pci_map_rom(dev->pdev, &rom->rom_size); if (rom_mapped && rom->rom_size) { rom->rom_image = drm_alloc(rom->rom_size, DRM_MEM_DRIVER); if (rom->rom_image == NULL) { return -1; } memcpy(rom->rom_image, rom_mapped, rom->rom_size); DRM_INFOFix depth clears properly this time. Update all instances ofGareth Hughes
2001-01-262001-01-24file drm_memory.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
2001-01-24file drm_bufs.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
2001-01-24file drm_proc.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
2001-01-24file drm_fops.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
2001-01-24file drm_init.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
2001-01-24file drm_ioctl.h was initially added on branch mga-1-0-0-branch.Gareth Hughes
der offset\n"); return -1; } dev_priv->rom.type = ROM_COMBIOS; *header = (struct combios_header *)&rom->rom_image[*offset]; DRM_INFO("[radeon_ms] COMBIOS type : %d\n", (*header)->ucTypeDefinition); DRM_INFO("[radeon_ms] COMBIOS OEM ID: %02x %02x\n", (*header)->ucOemID1, (*header)->ucOemID2); } return 0; }