summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc (follow)
Commit message (Collapse)AuthorAgeFilesLines
...
* Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()deraadt2009-10-313-3/+6
| | | | | | | calls can go directly into selwakeup() safely long discussion with nicm, murmers of consent from tedu and miod, noone else seems to care of kqueue is busted as long as it makes their sockets move data fast... pretty sad.
* Do not do strncmp comparisons on dv_xname because longer device names whichderaadt2009-10-264-12/+12
| | | | | | look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
* Correct a target name so that we don't rebuild vers.o (and thenguenther2009-10-191-2/+2
| | | | | | | bsd) unless some other object has changed. Rebuild and reinstall in /usr/src/usr.sbin/config/ after updating! "I like it" deraadt@
* Add DIOCSDINFO support to the three fd drivers. No change to existingkrw2009-09-121-6/+7
| | | | behaviour.
* fix typosderaadt2009-09-052-4/+4
|
* Change the wsdisplay_emulops return types from void to int; emulops will nowmiod2009-09-056-82/+145
| | | | | | return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
* Make DIOCSDINFO code consistant everywhere.krw2009-09-053-48/+32
| | | | ok miod@ deraadt@
* Add support for ISP2200 SBus FC cards.kettenis2009-08-301-3/+120
|
* Glue for the SBus version of the Sun Vector Gigabit Ethernet card.kettenis2009-08-293-2/+124
|
* The intention is to map the dvma map at a fixed address, so specifykettenis2009-08-291-2/+2
| | | | | | UVM_FLAG_FIXED. Makes sparc boot with option KVA_GUARDPAGES. ok miod@, tested by deraadt@
* - fix format strings for values that are daddr64_tjasper2009-08-241-4/+4
| | | | ok otto@, agreed by deraadt@
* rewrite the promisc mode / multicast handling code for the sparc hme(4)phessler2009-08-131-71/+34
| | | | | | | | | | driver and is based off of the MI hme(4) driver. tested with ping6 -w and tcpdump from brad OK naddy@, sthen@
* Replace the error strings that were being passed around with much simplerderaadt2009-08-134-49/+37
| | | | | | | | | errnos. Note that the error strings are being ignored, since we long ago decided to not spam the console, and there is no other nice way to use the errors (without changing the ioctls to pass it back) The errno is now useful, since we can pass b_error from failing IO up, and the drive can decide how to use that ok miod
* wire vscsi up to a cdevdlg2009-08-131-1/+3
| | | | for claudio@ ok deraadt@
* A new(er) mtx_enter_try().weingart2009-08-131-1/+19
| | | | Ok oga@, "the time is now" deraadt@.
* Do not bother initializing bufpages in the md code if the computation ismiod2009-08-111-8/+1
| | | | | exactly the same the mi could will use if bufinit() is invoked with bufpages == 0.
* With the SysV memory allocation changes, allocsys() doesn't do anythingmiod2009-08-111-36/+1
| | | | anymore. Get rid of it completely.
* Introduce option DDB_STRUCT. Kernels compiled with this option (except onmiod2009-08-091-3/+14
| | | | | | | | | a few arches where toolchain limitations apply) will embed some symbolic information about the various structs used within the kernel, and have new ddb commands allowing struct display and some useful information gathering. Kernel rodata increase varies accross platforms from ~150KB to ~300KB. This option is not enabled by default.
* No need to clean genassym{.,o} during `make clean', genassym.sh does thismiod2009-08-091-2/+2
| | | | for us.
* Rototill system V message queues.blambert2009-08-091-10/+1
| | | | | | | | | | No longer allocate a static amount of memory for messages in MD boot path; message queues, message metadata, and message data now all use dynamic memory, which means that runtime sysctls should now be trivial to implement. Since I'm going to be around all week to fix any breakage, this should probably just go in now.
* Dynamic buffer cache support - a re-commit of what was backed outbeck2009-08-021-7/+1
| | | | | | | | after c2k9 allows buffer cache to be extended and grow/shrink dynamically tested by many, ok oga@, "why not just commit it" deraadt@
* Make sure the BUS_SPACE_BARRIER_xxx constants are all non-zero and can bemiod2009-07-301-3/+3
| | | | | or'ed together, even on platforms where bus_space_barrier() ignores the barrier argument yet.
* gem(4) + gentbi(4) do fit; requested by bradderaadt2009-07-281-1/+6
|
* Make sure all platforms understand the flags argument of bus_space_map() andmiod2009-07-261-1/+5
| | | | | | bus_space_alloc() as a bitmask of flags, and not a boolean controlling cacheability; and make sure the three MI BUS_SPACE_MAP_xxx values documented in the manual page are defined on all platforms as well.
* timeout_add -> timeout_add_msecblambert2009-07-241-5/+5
| | | | ok kettenis@
* - Add missing tick handler calling mii_tick().sthen2009-07-162-3/+26
| | | | | | | - Stop hmestop() from fiddling with the flags directly and calls mii_down() instead. From Brad, tested by nick@.
* Add the neccessary glue to attach gem(4) to sbus(4) and enable gem(4) inkettenis2009-07-134-3/+169
| | | | | | GENERIC and SUN4M kernels. ok miod@
* Add a somewhat minimal bus_dma(9) implementation. Only fully implemented forkettenis2009-07-133-5/+824
| | | | | | | the sun4m iommu. Bits and pieces from NetBSD, with some additional tweaks and a bus_dmamap_load_mbuf() implementation from myself. ok miod@
* Add protection against multiple inclusion.kettenis2009-07-121-1/+6
| | | | ok miod@
* Crank bootblocks version for identification purposes.miod2009-07-011-2/+3
|
* Link the second stage bootblocks (and boot.net) 256KB higher to accomodatemiod2009-06-301-2/+2
| | | | | the GENERIC kernel growth; verified to not conflict with old prom on sun4. ok deraadt@
* for the isp(4) driver, invert the meaning of the options which pullderaadt2009-06-244-12/+12
| | | | | firmwares into the smaller (and larger) media ok krw
* Major update to isp driver, mostly from mjacob via FreeBSD.krw2009-06-241-13/+14
| | | | | | | | | Everything that worked before should still work so in it goes. Newer boards (2300, 2400) may now work but are still a work in progress. Thanks to many testers but especially kettenis@ for finding a show stopper bug and stomping it. ok deraadt@
* Simplify the ioctl handling code. From Brad.sthen2009-06-242-50/+13
| | | | Tested by nick@
* Have hmestop() properly clear the RUNNING/OACTIVE flags and the interfacesthen2009-06-201-3/+8
| | | | | | | | watchdog timer. Copied over from MI hme(4). Tested by nick@. From Brad.
* Back out all the buffer cache changes I committed during c2k9. This reverts threebeck2009-06-151-1/+7
| | | | | | | | | | commits: 1) The sysctl allowing bufcachepercent to be changed at boot time. 2) The change moving the buffer cache hash chains to a red-black tree 3) The dynamic buffer cache (Which depended on the earlier too). ok on the backout from marco and todd
* Recycle four ancient fields in the disklabel structure, replacing them withderaadt2009-06-041-6/+6
| | | | | | | | | | | | bounds information, ie. the zone of the disk that OpenBSD can use. Have each pre-disklabel parser (MBR, DPME, or per-arch MD disklabel parsers) figure out this area and pass it up to userland. Then, delete all the same disk parsing code from disklabel(8) since the kernel passes it up. Lots and lots of - signs in the disklabel(8) code. Tested on as many platforms as possible, the fallout will be repaired as time goes on. To test, use disklabel -d <drive> and validate that the bounds do not overlap any boot blocks. This same information is used by disklabel -A... OK for the concept from krw, miod, and drahn
* add kern.bufcachepercent sysctl to allow adjusting the buffer cachebeck2009-06-031-7/+1
| | | | | size on a running system. ok art@, oga@
* Fix check for window-top and window-left values.kettenis2009-06-031-3/+3
| | | | ok miod@
* Arla client rename from xfs to nnpfs for later upgrades. Tested on various arches. ok todd@ beck@jj2009-06-031-6/+6
|
* Add code to attach sun mice on sparc and sparc64 as wsmouse devices. Sincemiod2009-05-205-6/+26
| | | | | | | | | | | | not all Sun mice run at the canonical 1200 bps, hop between 1200, 4800 and 9600 bps by paying attention to breaks on the line. Attachement and engine code written 7 years ago for OpenBSD/sparc, except for sparc64 com(4) attachment. Speed hop idea borrowed from Opensolaris. This allows sparc and sparc64 users to run X11 without needing a configuration file anymore, as it was in the XFree86 3.x days. Multihead configurations will still need a minimal configuration file, though.
* Set D_VENDOR when spoofing a label on archs that use D_VENDOR whenkrw2009-05-131-1/+2
| | | | | | | | | | reading the native disklabel. This ensures cylinder alignment. Fix disklabel to do cylinder alignment arithmetic correctly in -A mode. Worked by accident before, since the code was protected by D_VENDOR, which wasn't being set. ok deraadt@
* Revert mtx_enter_try. It didn't compile on hppa, it doesn't compile onkettenis2009-04-271-12/+1
| | | | | | landisk, and the sparc implementation is obviously wrong. That's where I stopped looking, so who knows what else was broken. A simple comparison of the existing mtx_enter with the new mtx_enter_try would have told anybody.
* Enter mtx_enter_try. In part for completeness, things may startweingart2009-04-251-1/+12
| | | | using this soon(ish). Ok oga@, sorta yes kettenis@.
* Remove en(4) (no manpage present, no none removed), and the midway.c glue codeoga2009-04-152-177/+1
| | | | | | | | | | | | | | | | | | | | for it. It is very unlikely this still compiles, the hardware is dead. It isn't in any arch's config file. the sparc sbus code is even commented out in files.sparc. Not to mention that the code is fucking appauling, doesn't even know that sparc got bus.h ages ago, still uses vtophys(), defines all types of functions to arch-specific hacks. I will miss the bitchy comments, though... As a note to other drivers: this is the fate that awaits you if you screw up my ctags on commonly used functions. "you have my ok" claudio@, "zap zap zap" deraadt@ If i've missed any bits, please remove them.
* Convert the waitok field of uvm_pglistalloc to "flags", more will be added soon.oga2009-04-141-2/+2
| | | | | | | | | For the possibility of sleeping, the first two flags are UVM_PLA_WAITOK and UVM_PLA_NOWAIT. It is an error not to show intention, so assert that one of the two is provided. Switch over every caller in the tree to using the appropriate flag. ok art@, ariane@
* Use soft interrupts to dispatch pcmcia device interrupts; this ensures themiod2009-04-101-6/+46
| | | | driver handlers get invoked at the right level. Parts from NetBSD.
* generic soft interrupts support for sparc. Soft interrupt handlers are nowmiod2009-04-1019-352/+410
| | | | | | | | kept in a separate intrhand array, with their own enable bits so that soft interrupts sharing the same level only get invoked if really triggered. Inspired by NetBSD with significant changes. ok kettenis@
* fix typos introducedderaadt2009-04-101-5/+5
|
* Eliminate useless loop over partitions and ignore zero lengthkrw2009-04-071-18/+19
| | | | | | | | partitions in bsd_to_sun(), even if their offsets are nonsense. Theo says if sparc64 compiles so will sparc. Fixes some useless disklabel warning messages. ok miod@ deraadt@