summaryrefslogtreecommitdiff
path: root/bsd-core/drm_os_freebsd.h
AgeCommit message (Collapse)AuthorFilesLines
2004-11-06Commit first pieces of port to OpenBSD, done by Martin Lexa (martin atEric Anholt1-449/+0
martinlexa dot cz). Now that we've got porting for all three major BSDs (and the fourth being very similar to FreeBSD), move the mostly-duplication drm_os_* files into drmP.h. Remove some cruft from linux heritage and from pieces of the DRM that have since been removed. Note that things are still not quite working for even FreeBSD, but these are first steps at cleanup, and just a WIP checkpoint.
2004-11-06Remove the vestiges of the memory-debug code.Eric Anholt1-9/+0
2004-11-06Commit WIP of BSD conversion to core model. Compiles for r128, radeon, butEric Anholt1-39/+26
doesn't run yet. Moves the ioctl definitions for these two drivers back to the shared code -- they aren't OS-specific.
2004-08-17Merged drmfntbl-0-0-1drmfntbl-0-0-1-20040817-mergeDave Airlie1-12/+0
2004-08-13Enable MTRR usage on AMD64, and use DELAY() instead of rolling our ownEric Anholt1-9/+3
udelay code. Submitted by: Jung-uk Kim <jkim@niksun.com>
2004-07-29add read/write 16Dave Airlie1-0/+2
2004-07-06MFC as of 20040705: dev_t -> struct cdev * change.Eric Anholt1-2/+3
2004-05-11Merge from FreeBSD-current. Mostly 64-bit cleanliness fixes, but a fewEric Anholt1-2/+12
driver interface changes from -current.
2004-05-09Add mach64 DRM module for BSD (untested, but compiles).Eric Anholt1-0/+2
2003-11-12Fix a locking nit, and add asserts in some things that should be callednewmesa-0-0-1-20031209driinterface-0-0-1-branchEric Anholt1-0/+2
with locks held.
2003-11-05Args for the BSD DRM_PUT_USER_UNCHECKED were swapped.Eric Anholt1-1/+1
2003-11-04Memory layout transition:Michel Daenzer1-0/+2
the 2D driver initializes MC_FB_LOCATION and related registers sanely the DRM deduces the layout from these registers clients use the new SETPARAM ioctl to tell the DRM where they think the framebuffer is located in the card's address space the DRM uses all this information to check client state and fix it up if necessary This is a prerequisite for things like direct rendering with IGP chips and video capturing.
2003-10-27Add a DRM_PUT_USER_UNCHECKED, which will be used by an upcoming radeonEric Anholt1-0/+2
change.
2003-10-22- Add DRM_GET_PRIV_WITH_RETURN macro. This can be used in shared code toEric Anholt1-8/+27
get the drm_file_t * based on the filp passed in ioctl handlers. - Use this macro on BSD for simplification and improve its error reporting. Make failure to find the drm_file_t * print as an error, not debug. This failure may be part of the problem with KDE. - Make debug and error print macros include the pid on BSD.
2003-10-20Fix the possibility of sleeping with locks held in sysctls by copying theEric Anholt1-8/+0
data into temporary variables with the lock held then outputting to sysctls with the lock released. Rearranged a little extra code to aid this. Note that drm_memory_debug.h hasn't had this fix applied, but I consider that code to be just about dead anyway.
2003-10-20Clean up BSD MTRR handling. The NetBSD code is untested, but it's my bestEric Anholt1-0/+2
shot.
2003-10-19- SMPng lock the DRM. This is only partial -- there are a few code pathsEric Anholt1-13/+23
used by root (the X Server) which are not locked. However, it should deal with lost-IRQ issues on -current which I think people have been experiencing but I am unable to reproduce (though I understand why they would occur, because of a bug of mine). Note that most of the locking (DRM_LOCK()/UNLOCK()) is all covered by Giant still, so it doesn't matter yet. - Remove locking on FreeBSD-stable and NetBSD. These are covered by the fact that there is no reentrancy of the kernel except by interrupts, which are locked using spldrm()/splx() instead.
2003-10-17- Converted Linux drivers to initialize DRM instances based on PCI IDs, notEric Anholt1-8/+0
just a single instance. Moved the PCI ID lists from <card>_drv.c in BSD to <card>.h. The PCI ID lists include a driver private field, which may be used by drivers for chip family or other information. Based on work by jonsmirl. - Make tdfx_drv.c and tdfx.h match other drivers. - Fixed up linking of sis shared files. Tested with Radeon and SiS on Linux and FreeBSD, including a Linux setup with 2 SiS cards in a machine, but only one head being used (with DRI)
2003-10-03Stylistic preparation for SMPng locking work: DRM_LOCK/DRM_UNLOCK have sideEric Anholt1-2/+2
effects, so make them look like functions (add parenthesis).
2003-10-02Wrap sys/endian.h usage with __FreeBSD_version >= 480000.Eric Anholt1-0/+8
Obtained from: i865-agp-0-1-branch
2003-10-02MTRR issue with SMP and -stable seems to be resolved. Re-enable MTRRs onEric Anholt1-1/+1
4.x
2003-09-09Use spldrm/splx around tsleep() in DRM_WAIT_ONtrunk-20030912Keith Whitwell1-5/+7
2003-09-07Fix for older -stable.Eric Anholt1-1/+2
Obtained from: FreeBSD CVS
2003-08-29This PCI header has been living in dev/pci/ for a while now.Eric Anholt1-1/+1
2003-08-19- Remove $FreeBSD$ tags as they weren't too useful and merges are now beingEric Anholt1-1/+29
done through perforce. - Add copyright headers to drm_os_*bsd.h, still need to research the other copyright-less files better.
2003-08-12Merge from FreeBSD r1.11: We have memset in the kernel, no need to defineEric Anholt1-3/+1
it to bzero (which it was always used for).
2003-07-29IRQ code cleanup suggested by Linus TorvaldsMichel Daenzer1-3/+3
i830 build fix
2003-07-26Fix FreeBSD build after IRQ changes.Eric Anholt1-2/+2
2003-07-25Compile fixes for recent 2.5/2.6 Linux kernels. I hope this doesn't breakMichel Daenzer1-0/+3
the i830 driver or the BSDs. :)
2003-04-27Use real endian conversion functions.Eric Anholt1-1/+3
2003-04-26Fix formatting of hw.dri sysctl.Eric Anholt1-6/+3
2003-04-26Remove the map argument from DRM_*MEMORYBARRIER. Not all of the uses ofEric Anholt1-5/+15
DRM_*MEMORYBARRIER we had were related to an MMIO space. This means arch-specific code on the BSDs, unfortunately. Also add DRM_MEMORYBARRIER() and change the DRM_READMEMORYBARRIER()s that used to be read/write barriers to it.
2003-04-26Missed files in the last commit: Remove memory debugging sysctl unlessEric Anholt1-1/+3
MEMORY_DEBUG is set.
2003-04-26Replace the C atomic_cmpset_int compatibility function for -stable with theEric Anholt1-9/+16
real i386 atomic_cmpset_int from -current. FreeBSD-stable won't ever have DRM support for non-i386.
2003-04-26Disable MTRRs on FreeBSD-stable. Without this, it hangs on boot in the MTRREric Anholt1-1/+1
setting for AGP cards on SMP machines.
2003-04-25Merge from FreeBSD-current.FreeBSD-20030424Eric Anholt1-1/+1
2003-04-24Remove a bunch of dead code and fix spelling of a couple of comments.Eric Anholt1-5/+1
2003-04-24Remove DRM_DMA_HISTOGRAM and associated code.Eric Anholt1-1/+0
2003-04-24Make DRM(read) and DRM(poll) stubs and remove DRM(write) andEric Anholt1-1/+0
DRM(write_string). This is the first part of removing much of the support code for gamma from the BSD DRM, since it appears that no new drivers are using it and nobody has ever shown interest in gamma on BSD.
2003-03-29Add DRMFILE definitions and supply filp for BSD in theEric Anholt1-79/+19
post-drm-filp-0-1-branch world. The filp is a void * cast from the current pid. This is a temporary solution which maintains the status quo until a proper solution is implemented. What is really needed is a unique pointer per open, hopefully with a device private area. This can be done in FreeBSD for all entry points except mmap, but is difficult (sys/dev/streams/streams.c is an example). I have partially completed code for this but have not had time to debug, so this is a temporary fix.
2003-03-11Merge back from FreeBSD-current, adding FreeBSD ID tags to aid futureX_4_3_0-20020324-preimportEric Anholt1-0/+3
merging. Also includes an update to radeon PCI IDs.
2003-03-08Make dma_addr_t an unsigned long not a uint32, don't try to use memrangeEric Anholt1-2/+5
functions on FreeBSD non-x86, and remove a dead define.
2003-03-05Remove a paste-o in DRM_SPINUNINIT and add a volatile to the compatibilityEric Anholt1-2/+2
atomic_cmpset_int.
2003-03-04DRM_FREE/2 patch from Philip BrownKeith Whitwell1-1/+1
2003-02-21Merge from bsd-4-0-0-branch.bsd-4-0-0-20030221-mergeEric Anholt1-33/+39
2003-01-24Fix build on -current: Provide M_WAITOK define.Eric Anholt1-0/+4
2002-10-14Fix reversed test that broke vblank waiting on FreeBSD.trunk-20021022stable-1-0-branchEric Anholt1-1/+1
Pointy hat to: anholt
2002-09-29Make our set_bit and friends match linux better (cleans up some warnings)Eric Anholt1-12/+12
2002-09-29Fix some of my silliness in DRM_WAIT_ON (not returning EINTR).Eric Anholt1-7/+5
2002-09-29Move os-dependent stuff out of radeon_irq.cKeith Whitwell1-2/+15