summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2002-01-25Add support for the "Magma 2+1HS Sp" (from NetBSD)Jason Wright
2002-01-20move a few more arch specific drivers to use new allocm and round_buffersize.Eric Jackson
2002-01-18Move CS_TIMEOUT declJason Wright
2002-01-13comment typosJason Wright
2002-01-11Get all of the bit definitions from ad1848reg, apcdmareg, and cs4231regJason Wright
headers.
2002-01-11Oops, that's -disable- interrupt enable in cs4231_close()...Jason Wright
2002-01-11Remove last nights interrupt handling hack and do it right:Jason Wright
* check the qualify the intr pending bits with the enable bits * enable/disable the cs4231 IEN bit in the pin control register * move the cs4231 (not dma) interrupt handling to the general interrupt processing [This properly allows for sharing with, eg. magma]
2002-01-11for the "Magma LC 2+1 Sp", we have to check the 'clock' property (it'sJason Wright
64Mhz vs. the "normal" 25Mhz). This (with the cs4231 patch) makes this board work.
2002-01-11Only check for playback interrupts if we're actually expecting them.Jason Wright
(This fixes the crash in pr2212, but the magma still doesn't want to talk to the world... looks like oscillator problems). [Many thanks to John Baker <jdbaker@blkbox.com> for donating a MAGMA board for testing]
2002-01-10Check result from malloc(9) when using M_NOWAIT. jason@ okThomas Nordin
2002-01-01Don't whine about not having carrier... ifconfig on the interface will say so.Jason Wright
2001-12-14Major restructuring for swizzling to the request queue and unswizzling frommjacob
the response queue. Instead of the ad hoc ISP_SWIZZLE_REQUEST, we now have a complete set of inline functions in isp_inline.h. Each platform is responsible for providing just one of a set of ISP_IOX_{GET,PUT}{8,16,32} macros. The reason this needs to be done is that we need to have a single set of functions that will work correctly on multiple architectures for both little and big endian machines. It also needs to work correctly in the case that we have the request or response queues in memory that has to be treated specially (e.g., have ddi_dma_sync called on it for Solaris after we update it or before we read from it). One thing that falls out of this is that we no longer build requests in the request queue itself. Instead, we build the request locally (e.g., on the stack) and then as part of the swizzling operation, copy it to the request queue entry we've allocated. I thought long and hard about whether this was too expensive a change to make as it in a lot of cases requires an extra copy. On balance, the flexbility is worth it. With any luck, the entry that we build locally stays in a processor writeback cache (after all, it's only 64 bytes) so that the cost of actually flushing it to the memory area that is the shared queue with the PCI device is not all that expensive. We may examine this again and try to get clever in the future to try and avoid copies. Another change that falls out of this is that MEMORYBARRIER should be taken a lot more seriously. The macro ISP_ADD_REQUEST does a MEMORYBARRIER on the entry being added. But there had been many other places this had been missing. It's now very important that it be done. For OpenSD, it does a ddi_dmamap_sync as appropriate. This gets us out of the explicit ddi_dmamap_sync on the whole response queue that we did for SBus cards at each interrupt. Now, because SBus/sparc doesn't use bus_dma, some shenanigans were done to support this. But Jason was nice enough to test the SBus/sparcv9 changes for me, and they did the right thing as well. Set things up so that platforms that cannot have an SBus don't get a lot of the SBus code checks (dead coded out). Additional changes: Fix a longstanding buglet of sorts. When we get an entry via isp_getrqentry, the iptr value that gets returned is the value we intend to eventually plug into the ISP registers as the entry *one past* the last one we've written- *not* the current entry we're updating. All along we've been calling sync functions on the wrong index value. Argh. The 'fix' here is to rename all 'iptr' variables as 'nxti' to remember that this is the 'next' pointer- not the current pointer. Devote a single bit to mboxbsy- and set aside bits for output mbox registers that we need to pick up- we can have at least one command which does not have any defined output registers (MBOX_EXECUTE_FIRMWARE). Explicitly decode GetAllNext SNS Response back *as* a GetAllNext response. Otherwise, we won't unswizzle it correctly. Nuke some additional __P macros.
2001-12-08Sprinkle pmap_update calls where relevant and some otherArtur Grabowski
misc pmap usage fixes.
2001-11-29oopsArtur Grabowski
2001-11-28zap some typedefs.Artur Grabowski
vm_map_t -> struct vm_map * vm_map_entry_t -> struct vm_map_entry * simple_lock_data_t -> struct simplelock (uvm not done yet, coming in the next commit)
2001-11-27garbage collect sc_nticksJason Wright
2001-11-19more than typoTheo de Raadt
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-01Change d_mmap in struct cdevsw from:Artur Grabowski
int (*d_mmap) __P((dev_t, int, int)); to: paddr_t (*d_mmap) __P((dev_t, off_t, int)); This allows us to mmap devices past 4GB offsets.
2001-10-05grr, I had this right to begin with... NOW X10 firecracker works.Jason Wright
2001-10-05unnecessary softc elementJason Wright
2001-10-05oops, forgot to implement TIOCMSETJason Wright
2001-10-05Be careful when updating register in TIOCM* operations (do operations onJason Wright
temporary copy and write that copy when applying changes to avoid an inconsistent window). Should allow devices like X10 firecracker, which uses either DTR or RTS as power, to operate properly.
2001-09-27Huge merge with NetBSD. For full details look at their revision history ↵Jason Wright
(1.26 -> 1.83)... Highlights: o tag queue support o fas366 support (doesn't work yet on sparc, but does on sparc64) o tons more (thanks to hugh, fgsch and beck for testing)
2001-09-24fix back the kbd, sorryMichael Shalayeff
2001-09-22perevent panic on timeout_add on non-existing timeout.Michael Shalayeff
happens on key press before kbd was attached and after zs has been initialized.
2001-09-16Add some missing lengths checks when passing data from userland toTodd C. Miller
kernel. From based on NetBSD patches.
2001-09-11Don't include <vm/vm_kern.h> if you don't need foo_map.Miod Vallat
2001-09-08Don't reference kbd_docmd() unless NKBD > 0; reported by Steven Siirila ↵Jason Wright
<sfs@Siirila.org> (pr2052)
2001-09-01Catch up with mainline of code development.mjacob
Add support for 2 Gigabit cards (2300/2312). This necessitated a change in how interrupts are down- the 23XX has not only a different place to check for an interrupt, but unlike all other QLogic cards, you have to read the status as a 32 bit word- not 16 bit words. Rather than have device specific functions as called from the core module (in isp_intr), it makes more sense to have the platform/bus modules do the gruntwork of splitting out the isr, semaphore register and the first outgoing mailbox register (if needed) *prior* to calling isp_intr (if calling isp_intr is necessary at all). Rearchitect how regular SCSI parameters are stored or used.
2001-08-24propagate bootpathJason Wright
2001-08-17cdev_decl cleanup; jason@ okMichael Shalayeff
2001-07-30convert to ALTQ style macros (these drivers appear to meet the criteria forJason Wright
ALTQ, anyone more familiar with it wanna have a look?)
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-04$OpenBSD$Niklas Hallqvist
2001-06-26trivial ether_input_mbuf() conversions.Federico G. Schwindt
2001-06-23More constants cleaning.Federico G. Schwindt
2001-06-11Repair SUN4M-only case compilation...Miod Vallat
2001-06-11Being able to compile sun4 (non-sun4c non-4m) kernels doesn't hurt.Miod Vallat
2001-06-10permit compilation when only SUN4C is defined; based on patch from Thomas ↵Jason Wright
Coffy <coffy@altern.org>.
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-05-16No need to check M_WAIT/M_WAITOK malloc return values. (art@ ok)Hakan Olsson
2001-05-10UVM is no longer optional on sparc.Artur Grabowski
2001-05-01Convert to new timeouts. (art@ ok)Hakan Olsson
2001-04-13silence printfs from media selection.Brad Smith
2001-04-06Move offsetof define into sys/param.hConstantine Sapuntzakis
2001-04-04Ansify source. Handles are now 16 bits.mjacob
2001-03-24Oops. Unbreak.Hakan Olsson
2001-03-24Convert to new timeout API. art@ ok.Hakan Olsson
2001-03-24Convert to new timeout API. mickey@ ok.Hakan Olsson