summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2002-08-16remove debugging codeJason Wright
2002-08-16Scale back rows and columns if the font would not otherwise fit on theTodd C. Miller
display. Otherwise, we would panic in wsdisplay_cnattach(). miod@ OK
2002-08-12Convert sparc console code from rcons and pseudo-devices to rasops and wscons.Miod Vallat
For most framebuffers it is faster. Other changes include: o 24 bit support in tcx(4) for the S24 framebuffer o accelerated cgsix(4) text console o new cgtwelve(4) driver for the GS framebuffer o improved serial driver code o better keyboard support The following framebuffers have not been tested but should work: cgfour, cgeight and cgfourteen These changes will require XF4 changes, to use Xwsfb instead of Xsun*, to be commited later today. Most of the work by me during the LSM and the week after, with code borrowed from jason@, NetBSD (new serial code), and feedback from mickey@. Work on pnozz(4) done by millert@
2002-08-08Completely rework transmit interrupt handling:Jason Wright
- try to handle tx ring reclaim in bestart() - if we pass over the high water mark, enable TX interrupts - disable them again when the low water mark is passed Thanks to mickey@ for enduring 4 versions of this =)
2002-08-07KNF (parenthesized returns)Jason Wright
2002-08-02Do correct bounds checking in get/set/put cmap routines. A few ofTodd C. Miller
these check were already OK but have been modified for consistency. Problem found by Silvio Cesare.
2002-07-17DTIMEXP is not a fatal error, deal with it.Jason Wright
2002-07-12Use interrupts for fetching ADC conversions instead of polling.Jason Wright
2002-07-09try to disable vsync timing if sparc_vsyncblank is setJason Wright
2002-07-09allow getting and setting of the ADC, DAC, and PIO ports on the daadio (this ↵Jason Wright
has been sitting in my tree for awhile)
2002-07-08bzero the correct size (I swear this worked at one time...)Jason Wright
2002-07-08Correctly convert to new timeouts (this hasn't compiled for awhile)Jason Wright
2002-07-08in addition to check cd_ndevs, also check that cd_devs[N] != NULLJason Wright
2002-06-14spelling; from Brian Poole <raj@cerias.purdue.edu>Todd T. Fries
2002-06-08Use tsleep.Artur Grabowski
2002-06-07knfJason Wright
2002-06-03spell transceiver correctlyTheo de Raadt
2002-05-29splbio around biodone.Artur Grabowski
2002-05-17Handle the removal of 'const' from structure definition.mjacob
2002-04-30Fix an ancient problem in how sparc interrupts are handled.Artur Grabowski
There are many interrupt handlers that assume that they don't need to do any spl protection in their code because the interrupt of some level can't be interrupted by an interrupt of the same level. The problem is that some interrupt handlers have hardware levels that are lower then their "software" levels. Fix this by adding an additional field to struct intrhand that specifies which "software" level an interrupt handler has and blocks that level while handling the interrupt. This new field is initialized in intr_establish which gets an additional argument (which can be -1 meaning that the interrupt handler doesn't need to block any additional level). ok deraadt@
2002-04-28Rename all PIL_* constants to IPL_* to match other archs and make themArtur Grabowski
usable in MD code in the future. deraadt@ ok
2002-03-14use getprop, not getpropstring to fetch 'magma_prom' property...Jason Wright
ra->ra_name is needed and is the result of getpropstring
2002-03-14Final __P removal plus some cosmetic fixupsTodd C. Miller
2002-03-14First round of __P removal in sysTodd C. Miller
2002-03-13On sparc, PAGE_SIZE and friends might not be a compile-time constant.Miod Vallat
Instead of using a homegrown set of variables in this case, rely on uvmexp fields once uvm has been initialized. This requires a few #include <uvm/uvm_extern.h> here and there in the kernel as well. Idea from art@, changes by me.
2002-02-08Better tx interrupt handling; don't call bestart() from betint() unlessJason Wright
we're OACTIVE and cleared at least one slot
2002-02-08since we're checking, avoid an unnecessary writeJason Wright
2002-02-08Better IFF_OACTIVE handling; don't bother calling qestart() unlessJason Wright
we were IFF_OACTIVE and we freed at least one slot.
2002-02-08simplify qec_put a bitJason Wright
2002-01-30Move SET/CLR/ISSET macros to param.h. fgsch@ and millert@ okThomas Nordin
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