summaryrefslogtreecommitdiff
path: root/bsd
AgeCommit message (Collapse)AuthorFilesLines
2003-10-02Axe more old gamma DMA infrastructure.Eric Anholt1-22/+0
2003-10-02Mostly whitespace cleanups and style(9) fixes focused on "if(" -> "if ("Eric Anholt5-153/+129
Change some nearby memset()s to bzero()s or to calloc allocations to take advantage of M_ZERO). Reverse some error tests to reduce high levels of indentation. Move the sg_cleanup() call out of the maplist loop in DRM(takedown)-- I can't see any need for it to be inside.
2003-10-02Wrap sys/endian.h usage with __FreeBSD_version >= 480000.Eric Anholt1-0/+8
Obtained from: i865-agp-0-1-branch
2003-10-02Allow the DRM to attach to a "drmsub" device. This will be provided by theEric Anholt1-4/+16
i810 AGP module, working around the limitation of one driver per device. Obtained from: i865-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-12bsd drm fixesAlan Hourihane1-4/+4
2003-09-12resolve merge conflictsAlan Hourihane1-5/+2
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-29These files were missed in the SiS DRM commit.Eric Anholt2-0/+82
2003-08-29Port the SiS DRM to FreeBSD. This includes the ability for the DRM toEric Anholt4-2/+16
allocate framebuffer memory without sisfb, and a new ioctl to be used by the X Server which tells the DRM what region of framebuffer memory to allocate from. Also fixes a possibility to panic the kernel I believe. Tested on linux with sisfb and FreeBSD (without sisfb) with new DRI only.
2003-08-29Add DRM(calloc), which is convenient, used by the new sis code, and takesEric Anholt2-0/+6
advantage of M_ZERO on BSDs.
2003-08-29Update radeon PCI IDs.Eric Anholt1-4/+4
2003-08-29This PCI header has been living in dev/pci/ for a while now.Eric Anholt1-1/+1
2003-08-19Fix the debug build.Eric Anholt1-1/+1
2003-08-19- Remove $FreeBSD$ tags as they weren't too useful and merges are now beingEric Anholt27-32/+67
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 Daenzer4-8/+8
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 Daenzer4-2/+8
the i830 driver or the BSDs. :)
2003-05-20Support for building DRM module on OpenBSD (Wilbern Cobb, Matthieu Herrb).David Dawes1-1/+1
(resync with XFree86 trunk)
2003-05-16Support AGP bridges where the AGP aperture can't be accessed directly byMichel Daenzer2-4/+4
the CPU (David Mosberger, Benjamin Herrenschmidt, myself, Paul Mackerras, Jeff Wiedemeier)
2003-04-28Fix a typo: On takedown the mtrr operation is MEMRANGE_SET_REMOVE, notEric Anholt1-1/+1
_UPDATE.
2003-04-27Use real endian conversion functions.Eric Anholt2-2/+6
2003-04-26Fix formatting of hw.dri sysctl.Eric Anholt3-24/+16
2003-04-26Remove the map argument from DRM_*MEMORYBARRIER. Not all of the uses ofEric Anholt3-10/+32
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-26MFL: Don't install irq handler unless the driver has been initialized.Eric Anholt1-0/+3
2003-04-26Add PCI DMA memory functions and make addbufs_pci and associated code useEric Anholt6-80/+190
it. To do this we need to save the bus address along with the virtual address in the seglist. Also fix some error handling and a few bits of whitespace.
2003-04-26Missed files in the last commit: Remove memory debugging sysctl unlessEric Anholt2-1/+5
MEMORY_DEBUG is set.
2003-04-26Move the memory functions with debugging info to drm_memory_debug.h, andEric Anholt3-343/+434
remove a couple of dead functions.
2003-04-26Remove #if 0'ed code.Eric Anholt1-19/+0
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 Anholt17-20/+22
2003-04-25Clean up the DRM_COPY_TO_USER()ing of DRM(infobufs), making it moreEric Anholt1-15/+9
legible.
2003-04-24Clean up the style of the linux-compat code and use ioctl() directly ratherEric Anholt1-70/+25
than reimplementing it.
2003-04-24Remove more gamma DMA infrastructure. Most of this code was copied straightEric Anholt7-197/+3
from linux, so it could be added back if some driver needed it in the future.
2003-04-24Remove more gamma DMA code. This isn't all of it, but it's a major portion.Eric Anholt7-997/+13
2003-04-24Move some common code from addbufs_<type> to addbufs. Make buf_alloc beEric Anholt3-119/+60
protected by the count_lock and make it non-atomic.
2003-04-24Remove the ioctl_count variable from the device. A reference is held to theEric Anholt2-16/+0
fp throughout the ioctl syscall, so the device can't be closed out from under us.
2003-04-24Remove a bunch of dead code and fix spelling of a couple of comments.Eric Anholt7-148/+6
2003-04-24Move one definition to drm_drv.h and remove the rest of drm_init.h whichEric Anholt8-154/+56
was all unused.
2003-04-24Remove DRM_DMA_HISTOGRAM and associated code.Eric Anholt9-292/+0
2003-04-24Make DRM(read) and DRM(poll) stubs and remove DRM(write) andEric Anholt6-165/+3
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-04-01Whitespace and remove a dead commented line.Eric Anholt1-3/+2
2003-03-29Remove dead vma code and remove the unused devstate struct definition.Eric Anholt4-133/+14
2003-03-29Add DRMFILE definitions and supply filp for BSD in theEric Anholt7-233/+220
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-25XFree86 4.3.0 mergeX_4_3_0-20030324-mergeAlan Hourihane5-129/+85
2003-03-11Merge back from FreeBSD-current, adding FreeBSD ID tags to aid futureX_4_3_0-20020324-preimportEric Anholt24-31/+70
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 Anholt2-3/+5
functions on FreeBSD non-x86, and remove a dead define.