summaryrefslogtreecommitdiffstats
path: root/sys/dev
AgeCommit message (Collapse)AuthorFilesLines
2013-10-24regenjasper2-4/+9
2013-10-24add another smc hub as out found on the Nitrogen6Xjasper1-1/+2
ok aalm@
2013-10-23Enable TX checksum offload.brad1-5/+7
ok naddy@
2013-10-23Enable TX checksum offload.brad1-6/+3
ok naddy@ sthen@
2013-10-23Add support for displaying the cache write policy of RAID volumes to bioctl(8)kettenis2-2/+14
and make mfi(4) pass up the necessary information. Adding support for other RAID controllers is left as an excercise to the reader. ok deraadt@
2013-10-23Checkpoint of work-in-progress DMA support for oaic(4). Not working yet,miod2-2/+47
probably due to incorrect programming of the system board ``Diagnostic Control Register'', for which I do not have documentation yet; commited so as not to lose this work, since the machine I was testing on has apparently commited suicide and will no longer POST.
2013-10-23define some bits relating to the msg ringdlg1-2/+23
2013-10-22Add code for SMC_CAPS_SINGLE_ONLY capability.syl1-8/+83
This capability force the sdmmc stack to only issue single blocks transfers. tested by rapha@ and I on ommmc(4). tested by rapha@ on pxammc(4). ok rapha@
2013-10-22regendlg2-2/+39
2013-10-22brocade devicesdlg1-1/+10
2013-10-21Fix values of AR9003 Rx queue software indexes. Both indexes were zero,stsp1-2/+2
which is obviously not intended given how they are used in the ar9003 code. No currently working athn(4) devices are affected by this change.
2013-10-21Write AR9485 initvals in the same order as Linux ath9k does.stsp1-142/+142
Verified by comparing register write traces. No currently working athn(4) devices are affected by this change.
2013-10-21Add load_font and list_font accessops to all rasops-based wsdisplay drivers.miod5-10/+166
Trivial except for tga(4) and gpx(4/vax) which need a bit more care setting up a new font.
2013-10-21- trivial and/or obvious bug fixyuo1-120/+137
- cosmetic changes
2013-10-20No longer store fonts added with the WSDISPLAYIO_LDFONT ioctl into themiod7-25/+102
wsdisplay softc. Instead, since the knowledge about available fonts lies in the parent driver itself, introduce a list_font wsdisplay_accessop which queries a font index, suitable to use within the WSDISPLAYIO_LSFONT ioctl. With this in place: - there is no global wsdisplay limit on the number of fonts loaded. Such a limit will be enforced by the display drivers themselves. - built-in kernel fonts will now appear in the list of fonts. Grow a list_font accesop for rasops, which relies upon wsfont_enum(), which is turned into something useful (and abortable if you do not need to iterate further). Not used by any rasops driver yet.
2013-10-20Use C99 named initializers for struct wsdisplay_accessops fields.miod18-174/+97
No functional change.
2013-10-20Add a load_font accessop to rasops, to allow for fonts to be loaded andmiod4-19/+101
selected. All rasops fonts are managed by wsfont, which allows a font to be loaded on a rasops device and used on another. Currently not plumbed in any driver yet. This is work in progress.
2013-10-20Use rdev->audio_task for hdmi audio related hotplug events. Matches thekettenis3-6/+6
equivalent Linux code a bit better and was probably what jsg@ intended in the first place. ok jsg@
2013-10-20Allow WSDISPLAYIO_GTYPE ioctl on the tty*cfg device (passing it back to tty*0).miod1-3/+7
2013-10-20WSDISPLAYIO_GTYPE ioctl support for KMS drivers. ok jsg@miod3-4/+14
2013-10-20(daddr_t) -> (u_int64_t) when multiplying ncylinders * secpercyl tokrw1-2/+2
get disk size, since DL_SETDSIZE() takes disk sector values, not 512-byte block values.
2013-10-20Replace manual list handling with a TAILQ.miod1-35/+30
2013-10-20tedu noct(4). dmesglog shows no users of this device and the driver hasmlarkin4-2417/+1
a bug that nobody (even the original author) knows how to fix. "kill with fire" deraadt@
2013-10-19Support the hibernate key (Fn-F12)deraadt1-2/+8
2013-10-19Enable TX checksum offload; from brad@ with input from mikeb@.naddy1-14/+6
Tested extensively by henning@ and myself.
2013-10-19Remove Unicode to ISO-8859-7 translation tables, they would only be used ifmiod1-54/+5
one were to use an ISO-8859-7-encoded font on a raster display, yet none of the fonts the kernel chooses from uses this encoding.
2013-10-19Remove never enabled WSCONS_SUPPORT_PCVTFONTS code.miod1-147/+2
2013-10-19we dont fake VPD INQUIRY pages, so fail on requests for them.dlg1-1/+7
2013-10-19Make uhub_explore() return an int rather than a usbd_satus. This hasmpi2-9/+10
no direct impact since its return value is never checked but it allows me to get rid of one (usless) status value. Note that usbd_status should be used for USB transfers.
2013-10-18UTF-8 support for wsdisplay emulation modes. Both vt100 and sun emulationmiod15-373/+1358
will now recognize xterm-compatible escape sequences ESC % G and ESC % @ to enter and leave UTF-8 mode, respectively. Not enabled on SMALL_KERNEL. Most of this written during c2k7, completed during b2k13. Note that the value of several international keysyms change, to switch from ISO Latin-[257] values to the real Unicode values. Be sure to update your includes and rebuild and install wsconsctl.
2013-10-18Make sure that, when a particular mapchar() can't find a proper glyph for themiod3-8/+8
requested character in the font it is using, it suggests a question mark character, instead of a space, so that the existence of the non-representable character becomes visible. Note that this is consistent with pcdisplay which suggests a diamond for missing glyphs.
2013-10-18the radeon suspend routine looks hairy, and feels like it should runderaadt1-2/+4
under DVACT_QUIESCE. And yes, it works, so let's go with that. ok mlarkin jsg
2013-10-18Add a conditional to disable most of the `abort state' code in the emulationmiod2-2/+17
code. Enable this if SMALL_KERNEL, since this code is currently only really needed for udl(4) which is not on any tight (SMALL_KERNEL) installation media.
2013-10-18Introduce a dedicated private header file to control the optional featuresmiod6-63/+74
of wscons (which usually get disabled for installation kernels, to save space), instead of duplicating parts of it to too many places. No functional change.
2013-10-18At device attach, mark the device "shutdown", until the mountroot hookderaadt2-2/+5
gets to run. In the suspend case, do nothing if we are shutdown. This allows hibernate to run the suspend code before mountroot. tested by mlarkin ok jsg
2013-10-17Remove support for a.out and ecoff. We only do elf now.deraadt1-31/+1
ok miod
2013-10-15Driver for the AIC-6250 SCSI controller found on AViiON models 100, 200, 300,miod3-0/+2246
400 and 4300. Limited to PIO mode only for now, until the DMA controller is tamed. Heavily based upon the MI aic(4) driver.
2013-10-14Use DL_SECTOBLK() instead of handrolling same calculation to getkrw1-3/+4
wdsize() return value.
2013-10-14XXsize() returns daddr_t, so calculate the return value in a daddr_tkrw1-2/+2
variable and not (usually) an int. ok miod@
2013-10-14If a transfer terminates with an I/O error status, do not modify thempi1-10/+10
pipe to stop enquening the next transfer before the done() function has been called. This should fix the hangs seen when unplugging a USB keyboard attached to uhci(4). Problem reported by dcoppa@ and Peter Kane
2013-10-14set openings to 64 like the linux driver sort of does. if a vendor saysdlg1-2/+3
something it isnt as magical as something i made up, right?
2013-10-14defer the first update of the sensor as late in the boot process we candlg1-2/+3
but running it from the mountroot hooks. this means the clock will be attached and therefore better to compare the hypervisors clock against. before we used to get ridiculous timedeltas, which if ntpd used to set the time with on startup (ie, ntpd -s) would make us think we were in 2057 or 2104. ok jmatthew@
2013-10-11Add initial RTL8106E and RTL8168G/8111G support.jsg2-3/+32
An earlier version didn't seem to work on a machine bmercer@ had access to a few months ago but this seems to work with the onboard Ethernet in an ASUS Z87 board RD Thrush has.
2013-10-11match Intel 8 Series SMBus (Lynx Point and Lynx Point-LP)jsg1-1/+3
tested by RD Thrush on Lynx Point
2013-10-09Enable synch negotiation; code was there but not enabled since this driver wasmiod1-13/+21
ported from NetBSD. Tested on hppa (720) and aviion (4600).
2013-10-09Include the 'state of health' field in the bbu ok sensor value.jmatthew1-3/+7
The dell perc 6/i sets this to zero (meaning bad) when it decides the battery doesn't have enough capacity for it to allow write back mode, but doesn't set any of the other flags to tell us why. ok dlg@, tested by sthen@
2013-10-08all the chips rings are protected by a single mutex, which is used in bothdlg1-36/+57
the scsi_cmd and intr paths. scsi_done can restart io though, which means the mutex will be tried recursively which panics. defer scsi_done calls after mtx_leave by putting completed ccbs on a list on the stack that we can walk. i hate locks.
2013-10-08set xs->resid to 0 on successful command completion. makes things work.dlg1-4/+2
2013-10-08ring producers and consumers are 32bit counters, while the ringdlg1-2/+2
sizes are much much smaller. you need to mask the req ring producer with its size to get its actual entry. also stops scribbling over memory you dont really own. lets esxi guests boot without panicking now. maybe itll fix jsgs workstation panic too. fusion and esxi can do some io now, but not get I/O errors writing to write an mbr with fdisk -i.
2013-10-08vmwpvs(4), a driver for VMware Paravirtual SCSI things in vmware guests.dlg2-1/+986
i got it working on the eurostar while bored, and its at a point where it will work given a bit more attention rather than just being a way to occupy my time. there's some cool use after frees and a lack of hotplug support to work on ok krw@ jsg@