summaryrefslogtreecommitdiff
path: root/shared-core/r128_state.c
AgeCommit message (Collapse)AuthorFilesLines
2009-11-17Drop shared-core, bsd-core, linux-core and scripts subdirsKristian Høgsberg1-1681/+0
2008-01-03drm: cleanup DRM_DEBUG() parametersMárton Németh1-22/+21
As DRM_DEBUG macro already prints out the __FUNCTION__ string (see drivers/char/drm/drmP.h), it is not worth doing this again. At some other places the ending "\n" was added. airlied:- I cleaned up a few that this patch missed also
2007-07-20Replace DRM_IOCTL_ARGS with (dev, data, file_priv) and remove DRM_DEVICE.Eric Anholt1-120/+88
The data is now in kernel space, copied in/out as appropriate according to the This results in DRM_COPY_{TO,FROM}_USER going away, and error paths to deal with those failures. This also means that XFree86 4.2.0 support for i810 DRM is lost.
2007-07-20Replace filp in ioctl arguments with drm_file *file_priv.Eric Anholt1-21/+22
As a fallout, replace filp storage with file_priv storage for "unique identifier of a client" all over the DRM. There is a 1:1 mapping, so this should be a noop. This could be a minor performance improvement, as everything on Linux dereferenced filp to get file_priv anyway, while only the mmap ioctls went the other direction.
2007-07-20Remove DRM_ERR OS macro.Eric Anholt1-50/+50
This was used to make all ioctl handlers return -errno on linux and errno on *BSD. Instead, just return -errno in shared code, and flip sign on return from shared code to *BSD code.
2007-07-16drm: remove drmP.h internal typedefsDave Airlie1-28/+28
2007-07-16drm: detypedef drm.h and fixup all problemsDave Airlie1-3/+3
2006-12-19remove inline from large functionDave Airlie1-1/+1
2005-11-28Assert an MIT copyright on sis_drm.h, since one was lacking and I createdEric Anholt1-1/+2
that particular file. Its contents have changed a good bit since the original sis code, and the original sis code didn't care much about attribution since it routinely disclaims Precision Insight/VA Linux from responsibility. Also, adjust formatting around license headers (have a comment open immediately before the "Copyright" line, not as a runon of any previous comments) for automatic processing into FreeBSD, where /*- is used to signal the beginning of license headers for automatic compilation of license lists.
2005-11-11mixing breaks in r128 driver.. fixed in kernelDave Airlie1-0/+4
2005-09-03convert ioctl flags to use flags instead of separate intsDave Airlie1-17/+17
2005-08-05Rename the driver hooks in the DRM to something a little moreEric Anholt1-2/+2
understandable: preinit -> load postinit -> (removed) presetup -> firstopen postsetup -> (removed) open_helper -> open prerelease -> preclose free_filp_priv -> postclose pretakedown -> lastclose postcleanup -> unload release -> reclaim_buffers_locked version -> (removed) postinit and version were replaced with generic code in the Linux DRM (drivers now set their version numbers and description in the driver structure, like on BSD). postsetup wasn't used at all. Fixes the savage hooks for initializing and tearing down mappings at the right times. Testing involved at least starting X, running glxgears, killing glxgears, exiting X, and repeating. Tested on: FreeBSD (g200, g400, r200, r128) Linux (r200, savage4)
2005-08-04Split the control of master vs root priv. Everything is still marked asJon Smirl1-17/+17
needing root.
2005-07-16revert last change due to me bring up too earlyDave Airlie1-1/+0
2005-07-16Egbert noticed this issue, but changing the IOW to IOWR mess upDave Airlie1-0/+1
compatiblity with userspace..
2005-02-03Declare r128_do_cleanup_pageflip static since it's only used here and itsEric Anholt1-1/+1
prototype went away.
2005-02-01cleanup patch from Adrian Bunk <bunk@stusta.de>Dave Airlie1-38/+32
2004-11-06Export missing r128 ioctl symbolJon Smirl1-1/+1
2004-11-06Commit WIP of BSD conversion to core model. Compiles for r128, radeon, butEric Anholt1-0/+28
doesn't run yet. Moves the ioctl definitions for these two drivers back to the shared code -- they aren't OS-specific.
2004-09-30Lindent of core build. Drivers checked for no binary diffs. A few filesJon Smirl1-688/+664
weren't Lindent's because their comments didn't convert very well. A bunch of other minor clean up with no code implact included.
2004-09-27First check in for DRM that splits core from personality modulesJon Smirl1-58/+44
2004-08-30drm-memory patch, cleans up alloc/free and makes calloc look more libc likeDave Airlie1-42/+42
2004-08-24Merged drmfntbl-0-0-2drmfntbl-0-0-2-20040824-mergeDave Airlie1-1/+7
2004-08-17Merged drmfntbl-0-0-1drmfntbl-0-0-1-20040817-mergeDave Airlie1-4/+26
2004-07-25sync up with current 2.6 kernel bk tree - mostly __user annotationsDave Airlie1-8/+8
2004-05-11Add missing DRM_ERR()s.Eric Anholt1-4/+4
2004-04-10white space changes to align with kernelDave Airlie1-1/+1
2004-04-08fixes from Linux kernelDave Airlie1-0/+11
2003-10-16Introduce COMMIT_RING() as in radeon DRM, stop using error prone writebackMichel Daenzer1-8/+24
for ring read pointer (Paul Mackerras) Get rid of some superfluous stuff, minor fixes
2003-07-26Add Rage 128 pageflipping support, defaults to off. DRM version bump toEric Anholt1-12/+75
2.5.0. It still has some issues, including a flicker in the fps meter in tuxracer and I've seen garbage left behind after moving/closing windows. However, it's usable. Add the Option "EnablePageFlip" "YES" to use it.
2003-05-26Add support to r128 for MESA_ycbcr_texture (Ian Romanick, Leif Delgass)Leif Delgass1-0/+2
2003-03-29buf->filp is a pointer, so make printf format args be %p not %dEric Anholt1-4/+4
2003-03-28merged drm-filp-0-1-branchdrm-filp-1-20020328-mergeKeith Whitwell1-75/+80
2003-03-25XFree86 4.3.0 mergeX_4_3_0-20030324-mergeAlan Hourihane1-61/+57
2003-03-04DRM_FREE/2 patch from Philip BrownKeith Whitwell1-57/+61
2002-10-30Kernel support for vblank syncing on Rage 128 and Matrox.Eric Anholt1-0/+33
2002-08-29standardize use of __FUNCTION__ (Linus)Keith Whitwell1-17/+17
2002-07-05merged bsd-3-0-0-branchbsd-3-0-0-20020705-mergeAlan Hourihane1-0/+1566