summaryrefslogtreecommitdiffstats
path: root/sys/arch/sparc/dev (follow)
Commit message (Collapse)AuthorAgeFilesLines
* Revert previous change, and don't set IFM_AVALID | IFM_ACTIVE in ifm_statusmiod2012-07-301-4/+1
| | | | | to appease dhcpd, as dhcpd has now been fixed to not require this. repeated prodding and special ok deraadt@
* When reporting media state, be sure to set IFM_AVALID and IFM_ACTIVE inmiod2012-07-251-1/+4
| | | | | | | | ifm_status, for dhclient's sake. Current dhclient interface_status() considers interfaces able to report media information but not returning IFM_AVALID as down. Note that these interfaces usually have mii(4) or have specific code reporting correct values; sparc le(4) is an exception. Found the hard way by sebastia@; joint work with krw@, ok deraadt@
* Do not define XDC_DIAG if option SMALL_KERNEL; shaves about 14KB, and allowsmiod2012-07-011-1/+3
| | | | sparc floppies to fit again.
* Correctly handle the case of a system setup to use glass console, whichmiod2012-05-251-1/+19
| | | | | | | | | | | | | frame buffer has been removed, but which keyboard is left plugged in. The PROM will select a `keyboard input, serial output' console, which was being recognized as glass console by the kernel. The kernel would then reset the serial chip at zstty attach time, while still using the PROM output routines at this point, and hang. Fix this by paying attention to split input/output setups and always falling back to serial console in this case. ok kettenis@
* The cgtwo control registers only support 16-bit accesses, and respond withmiod2011-10-241-30/+30
| | | | | a bus error to larger widths. Declare all control register bitfield structs with uint16_t instead of u_int, to force gcc4 to use short accesses.
* arithemtic -> arithmeticmiod2011-09-171-2/+2
|
* Switch the sparc audioamd(4) code to the MI driver; tested on SPARCclassicmiod2011-09-034-958/+498
| | | | with and without option AUDIO_C_HANDLER.
* Cleanup presto(4) like other disk drivers.matthew2011-07-061-58/+42
| | | | meh deraadt@, miod@; "haha, you're fixing presto!?" tedu@
* Eliminate redundant buf validation checks in xxstrategy() methods nowmatthew2011-07-063-43/+21
| | | | | | | | | | | | that they're implemented consistently in bounds_check_with_label(). Also, per krw's request, change bounds_check_with_label() to return 0 if the checks succeed, and change the drivers to test == -1 instead of <= 0. (Man page update to follow; intentionally omitting arch/vax/mba/hp.c from this commit because it doesn't even build currently and miod@ promises to kill it soon.) ok krw@
* kqueue attach functions should return an errno or 0, not a plain 1. Fixnicm2011-07-021-2/+2
| | | | | | the obvious cases to return EINVAL and ENXIO. ok tedu deraadt
* Drop kernel support for the useless DIOCWLABEL ioctl and prune a lotmatthew2011-06-055-31/+5
| | | | | | | | | of silly flag twiddling code in various disk drivers. ok deraadt@, miod@ N.B., users will need a -current disklabel(8) to be able to write new disklabels to disk now.
* Get rid of the wlabel argument to bounds_check_with_label(). It'smatthew2011-06-033-8/+6
| | | | | | | | | never done anything in OpenBSD and just clutters disk drivers with silly flag handling. More cleanup to follow. ok deraadt@, millert@; no objections krw@
* The various cleanups of the last few years have fixed pnozz(4) accelerationmiod2011-05-311-10/+4
| | | | | | | code operation in 640x480 mode (very likely p9100.c r1.47), so enable it again by default. Verified to work on a SPARCbook 3XP (with a 640x480 LCD panel), thanks to Thibaud Bordier.
* Turning on SCSIDEBUG (for debugging other drivers, of course) shouldderaadt2011-04-221-2/+2
| | | | | not make these drivers spew millions of lines of output. spotted as missing by miod
* Add some delay between a successful keyboard reset sequence and a keyboardmiod2011-03-181-2/+4
| | | | | | layout inquiry, as some PS/2 converters (at least the Starview SV 125) need it to behave correctly. Found the hard way and researched by Mike Malopolski, thanks!
* Clean up how we print the sbus(4) clock speed. Purely cosmetic.kettenis2010-12-261-2/+2
| | | | ok miod@, deraadt@
* Do not #include <sys/dkstat.h> if you don't need anything from it.miod2010-11-181-2/+1
| | | | ok krw@ deraadt@
* Pass a few more M_ZERO to malloc() or its wrappers, when useful; ok krw@miod2010-11-114-16/+11
|
* typomiod2010-09-281-2/+2
|
* Introduce a DKF_NOLABELREAD flag, which is used by a device to preventjsing2010-09-231-1/+2
| | | | | | automatic reading of disklabel on attach. ok deraadt@ miod@ krw@
* Add DIOCGPDINFO to drivers that were lacking it. Where therekrw2010-09-223-9/+14
| | | | | | | | | | | | is no easily available physical information outside of the stored disklabel just make it a synonym for DIOCGDINFO. Commit on the theory it is unlikely to harm, and fallout can be addressed in the mass re-compile that will follow j2k10. Should allow auto-allocation of disks to work with all devices. ok deraadt@
* All users of physio(9) now pass NULL as the buf pointer argument, somatthew2010-09-224-12/+12
| | | | | | | no point in keeping it around. "i like this" thib@ (a while back); ok krw@ and oga@; reminder to update the man page and tweaks jmc@
* Get rid of evcount's support for arranging counters in a treematthew2010-09-203-6/+6
| | | | | | | hierarchy. Everything attached to a single root node anyway, so at best we had a bush. "i think it is good" deraadt@
* Store a struct device pointer within struct disk and populate this whenjsing2010-09-084-8/+8
| | | | | | | disk_attach() is called by the device driver. We will be building on this shortly. ok deraadt@ krw@
* - spello, short-hand -> shorthandjasper2010-09-061-3/+3
| | | | ok miod@
* Remove bogus LHS casts. makes gcc4 happy.kettenis2010-09-053-9/+9
| | | | ok miod@
* Garbage collect struct dkdriver.matthew2010-08-284-26/+4
| | | | ok miod@; "please go ahead" jsing@
* Make sure fast trap handlers correctly invoke soft interrupts by markingmiod2010-08-172-3/+4
| | | | | | them explicitely pending before triggering the softintr; I am ashamed I did not notice this when changing the soft interrupt code 18 months ago. Noticed by claudio@ and beck@
* Every time you ignore uiomove() return value, $DEITY kills a littlemiod2010-08-061-2/+4
| | | | | | $ADORABLE_FELINE. ok deraadt@ matthew@
* add two new members to structs audio_encoding and audio_prinfo.jakemsr2010-07-152-8/+16
| | | | | | | | | | for both structs, the new members are 'bps' and 'msb', which describe the number of bytes per sample and data alignment in the sample, respectively. drivers must properly set these fields in the 'query_encoding', 'set_parameters' and 'get_default_params' hardware interface methods. discussed with ratchov, deraadt
* sun4e (i.e. SPARCengine 1e) support. This platform is a mix between sun4 andmiod2010-07-1014-88/+104
| | | | | | sun4c, as it has a sun4c OpenPROM but a sun4 8KB pagesize. VME devices are not supported yet. ok deraadt@
* remove support for compat_sunos (and m68k4k). ok deraadt guenthertedu2010-07-021-4/+1
|
* Move common code for waking up writers on a tty into a function.nicm2010-07-023-27/+8
| | | | ok deraadt matthew millert
* Remove all adapter-specific 'struct scsi_device's. They are never used. Firstkrw2010-06-282-21/+3
| | | | | | | | step in elminating 'struct scsi_device' entirely. Spotted and initial diff from matthew@. ok matthew@ dlg@ deraadt@ marco@ miod@
* Allow tty drivers to request larger buffers at attach time using aderaadt2010-06-283-6/+6
| | | | | | | | max-baud-rate hint. Adjust TTYHOG (the nearly full logic) to this new situation. The larger buffers are required by the very high speed KDDI devices in Japan (CF com, or USB ucom) so those are the only two drivers which currently ask for a larger buffer size. ok yasuoka miod
* make sparc compile again after tag team viking/guenther breakage.beck2010-06-273-3/+9
| | | | ok kettenis@
* Don't #include <sys/user.h> into files that don't need the stuffguenther2010-06-265-10/+5
| | | | | | | | it defines. In some cases, this means pulling in uvm.h or pcb.h instead, but most of the inclusions were just noise. Tested on alpha, amd64, armish, hppa, i386, macpcc, sgi, sparc64, and vax, mostly by krw and naddy. ok krw@
* dvma_free() the exact size passed to dvma_malloc().miod2010-06-181-2/+2
|
* Rework the way onboard devices attach on Sun 4/110 systems (which only have amiod2010-06-072-17/+39
| | | | | | | | | | 28 bit address bus) by reusing the regular sun4 configuration stanzas (with the upper four bits set in the device addresses), and clearing them when searching for a PROM mapping. This makes the obio autoconf code simpler, and all knowledge of the 4/110 specifics is now contained in a single file (dev/obio.c). ok todd@ deraadt@
* Nuke old eeprom.h compatibility defines; ok todd@miod2010-06-076-22/+30
|
* add dkio.h to the last of the disk ioctl users i can find.dlg2010-05-233-3/+6
| | | | requested by deraadt@ who was rightly disparaging of my grep skillz.
* Repair identification of P4 bwtwo on 4/330 and 4/370 models, which got brokenmiod2010-05-151-6/+18
| | | | in 1.36.
* Make fb_pfour_id() take a volatile pointer as argument.miod2010-05-151-2/+2
|
* Only enable acceleration code if specific device properties exist; this shouldmiod2010-05-131-6/+17
| | | | | fix OpenBSD/sparc operation in QEMU, which only provides the frame buffer memory and none of the accelerated stipple and blit spaces.
* Recycle unused disklabel fields in order to create a disklabel uniquejsing2010-04-232-6/+2
| | | | | | | identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
* more cleanup to cope with the change that tries to make proc.h not actderaadt2010-04-211-1/+2
| | | | | like it is everything.h ok tedu
* Some of the line disciplines want to check for suser. Better to pass themtedu2010-04-123-9/+9
| | | | a process instead of using curproc. ok deraadt
* Bring back cua code for sparc zs; lost in zs.c 1.36 on sparc and later forgottenmiod2010-03-032-28/+104
| | | | | about, and never implemented in sparc64 but changes are the same. ok deraadt@
* Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tnicm2009-11-093-6/+3
| | | | | | | | | | supported it doesn't do any harm), so put the KNOTE() in selwakeup() itself and remove it from any occurences where both are used, except one for kqueue itself and one in sys_pipe.c (where the selwakeup is under a PIPE_SEL flag). Based on a diff from tedu. ok deraadt
* in the absense of link state handling, drivers should still be silent; ok miodderaadt2009-10-311-8/+5
|