summaryrefslogtreecommitdiff
path: root/sys/arch/alpha/dev
AgeCommit message (Collapse)Author
2007-10-02Apply (with slight variants) this elimination of bzero() with M_ZERO:Kenneth R Westerback
- if ((mapstore = malloc(mapsize, M_DEVBUF, - (flags & BUS_DMA_NOWAIT) ? M_NOWAIT : M_WAITOK)) == NULL) + if ((mapstore = malloc(mapsize, M_DEVBUF, (flags & BUS_DMA_NOWAIT) ? + (M_NOWAIT | M_ZERO) : (M_WAITOK | M_ZERO))) == NULL) return (ENOMEM); - bzero(mapstore, mapsize);
2006-06-15Rework the interrupt code, shaving some cycles off in the process.Brad Smith
Rather than an "iointr" routine that decomposes a vector into an IRQ, we maintain a vector table directly, hooking up each "iointr" routine at the correct vector. This also allows us to hook device interrupts up to specific vectors. From thorpej NetBSD Tested by myself and a number of end-users.
2006-05-21Check for stale flags in the DMA map.Brad Smith
From thorpej NetBSD
2006-05-21- _bus_dmamap_load_buffer_direct_common -> _bus_dmamap_load_buffer_directBrad Smith
- fix _bus_dmamap_load_(uio/mbuf)_direct panic messages. - s/vm_page_alloc_memory/uvm_pglistalloc/ in panic message. From NetBSD
2006-05-21Fix a couple of comments.Brad Smith
From NetBSD
2006-05-21Pay attention to BUS_DMA_READ; don't need to allocate a spillBrad Smith
page if it is set. From NetBSD
2006-05-21Implement dmamap_load_uio for SGMAPs.Brad Smith
From NetBSD
2006-05-12Keep track of which DMA window was actually used to map theBrad Smith
request (not always the passed in DMA tag if we try direct-map and then fall back to sgmap-mapped). Use the actual window when performing dmamap_sync and dmamap_unload operations. From NetBSD ok martin@
2006-04-13Use PAGE_SIZE rather than NBPG.Brad Smith
From NetBSD ok martin@ miod@
2006-04-04clean up after Theo's "support mbuf handling in alpha sgmap dma maps" commit.Brad Smith
ok martin@
2006-03-27rev 1.30Brad Smith
Don't increase the segment index if we skipped a zero-length mbuf. rev 1.22 Since the SGMAP buffer load subroutine doesn't need to modify the segment index, don't pass it by reference. From NetBSD ok miod@
2006-03-20factorize SGMAP-mapped DMA map creation and destroy codeMartin Reindl
ok miod@, additional testing jsg@ from NetBSD
2006-03-18In _bus_dmamem_alloc_range(), do not ignore the caller's ``high'' parameter.Miod Vallat
Makes isadma much happier. From NetBSD
2006-03-13Protect sgmap extents with splvm(); from NetBSD.Miod Vallat
2006-01-29Add a alpha_shared_intr_reset_strays() function that resets the strayMartin Reindl
interrupt counter for a given shared interrupt descriptor. When an interrupt is successfully handled, reset the strays counter, thus preventing a "slow leak" from eventually shutting off the interrupt vector. from NetBSD via KUDO Takashi
2005-10-28no more Mach-macrosMartin Reindl
2004-12-25Use list and queue macros where applicable to make the code easier to read;Miod Vallat
no functional change.
2004-11-09Do not map empty mbufs (m_len == 0) in bus_dmamap_load_mbuf() as these mappingsClaudio Jeker
may disturb the dma as seen in ipw(4). Emtpy mbufs are at the beginning of the mbuf chain and are as example a "side-effect" of a previous m_adj() call. OK miod@ mickey@ jason@ markus@
2004-06-28Use new event counter API for interrupt counting on alpha. By me, with someAaron Campbell
edits by Theo. deraadt@ ok
2004-01-13support mbuf handling in alpha sgmap dma maps; from netbsdTheo de Raadt
2003-10-18typos from Jared Yanovich;Jason McIntyre
2002-10-07this removes the functionality of adding allocatedMichael Shalayeff
pages into the queue already containing allocated pages. breaks i386:setup_buffers() because of this.
2002-10-06No more need to initialize the result list before uvm_pglistalloc.Artur Grabowski
2002-06-25No \n at the end of a panic() message... I thought all occurences had beenMiod Vallat
squashed already.
2002-03-20Since the sgmap is used in interrupts protect the extent with splvm.Artur Grabowski
nate@ ok. Should fix a bunch of random memory corruption problems on many machines. How we could live so long without it is beyond me. Now my traktor is happy.
2002-03-14First round of __P removal in sysTodd C. Miller
2001-12-08Sprinkle pmap_update calls where relevant and some otherArtur Grabowski
misc pmap usage fixes.
2001-11-28more typedef zapping vm_page_t -> struct vm_page *Artur Grabowski
2001-11-06Replace inclusion of <vm/foo.h> with the correct <uvm/bar.h> when necessary.Miod Vallat
(Look ma, I might have broken the tree)
2001-11-05Switch everything to the new bus_dmamap_sync API.Artur Grabowski
Most work by Wilbern Cobb <vedge@csoft.org> with some fixes from me, mickey@ and drahn@.
2001-09-19merge vm/vm_kern.h into uvm/uvm_extern.h; art@ okMichael Shalayeff
2001-07-25Change the pmap_enter interface to merge access_type and the wired booleanArtur Grabowski
and arbitrary flags into one argument. One new flag is PMAP_CANFAIL that tells pmap_enter that it can fail if there are not enough resources to satisfy the request. If this flag is not passed, pmap_enter should panic as it should have done before this change (XXX - many pmaps are still not doing that). Only i386 and alpha implement CANFAIL for now. Includes uvm updates from NetBSD.
2001-07-05Get rid of the wrapper macros around extent_alloc*1Artur Grabowski
Pass the right amount of arguments and rename them back to their right names.
2001-06-25cold is in systm nowMichael Shalayeff
2001-06-08Change the paddr_t pmap_extract(struct pmap *, vaddr_t) interface toArtur Grabowski
boolean_t pmap_extract(struct pmap *, vaddr_t, paddr_t *). Matches NetBSD. Tested by various people on various platforms.
2001-03-21Move files from common to dev to be more like other archsArtur Grabowski
(and so that tab completion on "compile" works as on other archs. :))
2000-11-08tag the rest of alpha treeEric Jackson
2000-11-08Merge in big portions of the improvements NetBSD did to their alpha port.Artur Grabowski
Highlights: UVM, PMAP_NEW, bus_dma (only on some buses for now), new hardware support, possiblity for ELF, etc, etc. Too much to mention. This is still work in progress. video consoles might be broken, otherwise we have basically the same functionality as before plus more.
1999-02-08In alpha_shared_intr_stray(), if intr_maxstrays is 0 just return (NetBSD)Todd C. Miller
1999-02-08Because of BROKEN_PROM braindamage we need to allow an interuptTodd C. Miller
initialized (but not registered) as IST_LEVEL be assigned IST_EDGE.
1998-12-31semantic change: prefer unshared intr, settle for level shared. this will ↵Theo de Raadt
still fail in some cases
1998-12-27new priority mechanism for pcmcia interrupt allocation, ie. "best effort"Theo de Raadt
for machines low on interrupts. work by fgsch, and myself
1998-06-29isa_intr_check(), alpha style.Jason Downs
1997-11-10$OpenBSD$Niklas Hallqvist
1997-11-06We need an MI vga driver. The alpha one was most MI. Not entirely yet though.Niklas Hallqvist
Some files were move behind CVS back.
1997-08-25better mmap support, what funTheo de Raadt
1997-08-22wscons -> vga_xxx -> vga mmap() support. first cutTheo de Raadt
1997-07-31text video attributes, tested only on vga, send me E-mail if it breaks ↵kstailey
something, thx.
1997-07-31bus_space_copy_2() is now overlap safekstailey
1997-07-10fix vga_copycols(9)kstailey