summaryrefslogtreecommitdiff
path: root/sys/arch/sparc/dev
AgeCommit message (Collapse)Author
2010-05-23add dkio.h to the last of the disk ioctl users i can find.David Gwynne
requested by deraadt@ who was rightly disparaging of my grep skillz.
2010-05-15Repair identification of P4 bwtwo on 4/330 and 4/370 models, which got brokenMiod Vallat
in 1.36.
2010-05-15Make fb_pfour_id() take a volatile pointer as argument.Miod Vallat
2010-05-13Only enable acceleration code if specific device properties exist; this shouldMiod Vallat
fix OpenBSD/sparc operation in QEMU, which only provides the frame buffer memory and none of the accelerated stipple and blit spaces.
2010-04-23Recycle unused disklabel fields in order to create a disklabel uniqueJoel Sing
identifier, allowing the disk to be identified without relying on the device name. ok deraadt@ krw@ beck@ marco@ todd@
2010-04-21more cleanup to cope with the change that tries to make proc.h not actTheo de Raadt
like it is everything.h ok tedu
2010-04-12Some of the line disciplines want to check for suser. Better to pass themTed Unangst
a process instead of using curproc. ok deraadt
2010-03-03Bring back cua code for sparc zs; lost in zs.c 1.36 on sparc and later forgottenMiod Vallat
about, and never implemented in sparc64 but changes are the same. ok deraadt@
2009-11-09Every selwakeup() should have a matching KNOTE() (even if kqueue isn'tNicholas Marriott
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
2009-10-31in the absense of link state handling, drivers should still be silent; ok miodTheo de Raadt
2009-10-31Use suser when possible. Suggested by miod@.Federico G. Schwindt
miod@ deraadt@ ok.
2009-10-31Add missing KNOTE() calls after selwakeup(), until we decide if the KNOTE()Theo de Raadt
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.
2009-10-26Do not do strncmp comparisons on dv_xname because longer device names whichTheo de Raadt
look similar could arrive in the future. Instead, compare directly against dv_cfdata->cf_driver->cd_name Issue originally spotted by miod
2009-09-12Add DIOCSDINFO support to the three fd drivers. No change to existingKenneth R Westerback
behaviour.
2009-09-05fix typosTheo de Raadt
2009-09-05Change the wsdisplay_emulops return types from void to int; emulops will nowMiod Vallat
return zero on success and nonzero on failure. This commit only performs mechanical changes for the existing emulops to always return zero.
2009-09-05Make DIOCSDINFO code consistant everywhere.Kenneth R Westerback
ok miod@ deraadt@
2009-08-30Add support for ISP2200 SBus FC cards.Mark Kettenis
2009-08-29Glue for the SBus version of the Sun Vector Gigabit Ethernet card.Mark Kettenis
2009-08-24- fix format strings for values that are daddr64_tJasper Lievisse Adriaanse
ok otto@, agreed by deraadt@
2009-08-13rewrite the promisc mode / multicast handling code for the sparc hme(4)Peter Hessler
driver and is based off of the MI hme(4) driver. tested with ping6 -w and tcpdump from brad OK naddy@, sthen@
2009-08-13Replace the error strings that were being passed around with much simplerTheo de Raadt
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
2009-07-24timeout_add -> timeout_add_msecBret Lambert
ok kettenis@
2009-07-16- Add missing tick handler calling mii_tick().Stuart Henderson
- Stop hmestop() from fiddling with the flags directly and calls mii_down() instead. From Brad, tested by nick@.
2009-07-13Add the neccessary glue to attach gem(4) to sbus(4) and enable gem(4) inMark Kettenis
GENERIC and SUN4M kernels. ok miod@
2009-06-24for the isp(4) driver, invert the meaning of the options which pullTheo de Raadt
firmwares into the smaller (and larger) media ok krw
2009-06-24Major update to isp driver, mostly from mjacob via FreeBSD.Kenneth R Westerback
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@
2009-06-24Simplify the ioctl handling code. From Brad.Stuart Henderson
Tested by nick@
2009-06-20Have hmestop() properly clear the RUNNING/OACTIVE flags and the interfaceStuart Henderson
watchdog timer. Copied over from MI hme(4). Tested by nick@. From Brad.
2009-06-03Fix check for window-top and window-left values.Mark Kettenis
ok miod@
2009-04-15Remove en(4) (no manpage present, no none removed), and the midway.c glue codeOwain Ainsworth
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.
2009-04-10Use soft interrupts to dispatch pcmcia device interrupts; this ensures theMiod Vallat
driver handlers get invoked at the right level. Parts from NetBSD.
2009-04-10generic soft interrupts support for sparc. Soft interrupt handlers are nowMiod Vallat
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@
2009-03-29make various strings ("can't map mem space" and similar) more consistentStuart Henderson
between instances, saving space in the kernel. feedback from many (some incorporated, some left for future work). ok deraadt, kettenis, "why not" miod.
2009-03-29When trying to get the console font metrics and window position, we canMiod Vallat
always retrieve the font metrics, even on older (< 2.9) prom, so do it.
2009-02-26Add a two new ioctls to the apm(4) interface.Owain Ainsworth
APM_IOC_{SUSPEND,STANDBY}_REQ: This is to fix an issue with apm suspend where a call to zzz suspended the machine immediately, not giving anyone listening for apm events (other than apmd) a chance to deal with the upcoming change. This hit X hard since the introduction of drm, since it needs to have time to idle the 3d engine and otherwise get the device into a recoverable state. Such things are needed until we support modesetting in the kernel. Now, instead of forcing a suspend, using ioctl sends out an event similar to if you had put the lid down, giving all userland applications a chance to reply. tested by sthen@ and beck@, especial thanks to sthen for sitting there while I tried to debug this remotely, I owe him beer. Prompted by and ok deraadt@
2009-02-16Extend the scsi_adapter minphys() callback to take a struct scsi_link *Miod Vallat
as additional argument. This will allow intermediate layers between scsi devices such as sd and scsi host adapters to take appropriate action if necessary.
2009-01-12Oops, sunkbd_decode() still needs to be public for *cngetc() to work;Miod Vallat
spotted the hard way by kettenis.
2009-01-12Be more strict when checking window-left and window-top values.Miod Vallat
2009-01-11Define a limit to the input which can be fed to sunkbd_input() at once,Miod Vallat
will be necessary for rawkbd mode.
2009-01-11Factor a bit more sunkbd common parts; paves the way for upcomingMiod Vallat
WSDISPLAY_COMPAT_RAWKBD support.
2009-01-11Some frame buffer fcode do not fill window-top and window-left putMiod Vallat
nevertheless provide them; cope with zero values.
2009-01-04Make this compile for SUN4 only kernels.Miod Vallat
2009-01-04Be silent when deciding that the last chunk of a DMA transfer will be doneMiod Vallat
in PIO mode.
2009-01-04In x[dy]dummystrat, do not clear B_BUSY from the buffer.Miod Vallat
2008-12-26Use the `fontbytes' display property as the font stride, instead ofMiod Vallat
computing it ourselves.
2008-12-26Move the logic responsible from deciding whether a frame buffer needs to beMiod Vallat
cleared on attach, from the individual drivers to the common frame buffer code; the latter will decide based on the prom font metrics and the prom console window position, whenever possible. This removes the need for the console window position to be hardcoded in the p9100 driver, and will no longer require a screen clear on a vigra VS-12 in high resolution mode.
2008-12-26Use nitems() and FBS_xxx symbolic constants in the video timing tables.Miod Vallat
2008-12-26Remove unused BT_BLANK() and BT_UNBLANK() macros.Miod Vallat
2008-12-26Use constants from bt458reg.h when frobbing ramdac registers.Miod Vallat