summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2014-12-08Deprecate usb_*_report(). USB HID devices are always attached belowMartin Pieuchot
an uhidev(4) on OpenBSD and there is not point in rerolling your own reportID handling. Simply use uhidev_*_report(). This is a first step towards better error handling required to deal with broken upd(4) firmwares. Tested by David Higgs.
2014-12-08Do not report underruns as bus data errors, as suggested by sectionMartin Pieuchot
13.2.3, and let the stack set the status to USBD_SHORT_XFER if appropriate. From David Higgs.
2014-12-08regenPhilip Guenther
2014-12-08Add chflagsat(), modeled on fchmodat() with name to match FreeBSD.Philip Guenther
2014-12-08Remove a few foo_start() calls within ioctl handlers. Odd spot to haveBrad Smith
them and the vast majority of the rest of the drivers do not do this. ok mikeb@
2014-12-08When resetting an endpoint do not purge the ring. Instead set theMartin Pieuchot
dequeue pointer past the last enqueued TRB and let xhci_xfer_done() properly accounts free TRBs.
2014-12-08Add an intermediate layer driver, cbus(4), to manage its ownKenji Aoyama
interrupts of PC-9801 extension board slot bus (so-called 'C-bus') on LUNA-88K2. Existing pcex(4) is now attached at cbus(4), i.e. cbus0 at mainbus0 pcex0 at cbus0 With this driver, some other PC-9801 boards might be supported on luna88k in the (near?) future:-) ok miod@
2014-12-08Use tabs instead of spaces here.Brad Smith
2014-12-08Have foo_init() call foo_reset() to reset the chip to a known stateBrad Smith
as is the case for a lot of the other drivers. Remove some redundant calls to foo_stop() and foo_reset() before foo_init(). Tested with DP83815, 3c905C, 8139 and ST201. Mostly from FreeBSD.
2014-12-08Do not use a "struct route" when a "struct rtentry" is enough.Martin Pieuchot
ok millert@, bluhm@
2014-12-08There's no good reason to keep into "struct ifnet" a pointer that's onlyMartin Pieuchot
used by enc(4) devices to attach their routes. ok sthen@, mikeb@
2014-12-08Do not take into account addresses configured in a different rdomainMartin Pieuchot
to decide whether or not to remove local routes. Prevent from having a NULL ifp pointer in the routing table when an address present in another rdomain is removed from an interface. ok bluhm@
2014-12-08Move the data part of the mp trampoline to .rodata (initially). The kernelMike Larkin
moves a copy of this to the RW tramp data page during bootup. ok deraadt@
2014-12-08Split the ACPI resume trampoline into code and data, move the data page toMike Larkin
.rodata (kernel copies to the RW page), protect the code page with RX permissions, protect the code page with RW permissions. ok deraadt@
2014-12-07don't truncate the dirhash if ufs truncate fails.Ted Unangst
adapted from a freebsd commit by david hill
2014-12-07Add missing load_font and list_font accessops, as well as crude screen burnerMiod Vallat
support.
2014-12-07Remove wrong comment.Miod Vallat
2014-12-07Avoid extra space in dmesgMiod Vallat
2014-12-07Probe the keyboard for its dip switches also if it is the console keyboard,Miod Vallat
so that we can select the proper layout automagically and have it apply even at UKC time.
2014-12-07Bring the 12x22 font in even if SMALL_KERNEL on sgi.Miod Vallat
2014-12-07syncTheo de Raadt
2014-12-07support WCH2 CH351 pucTheo de Raadt
from Dmitry Alenichev
2014-12-07typo; fix from Kaspars BankovskisTheo de Raadt
2014-12-06A few last 'easy' #include dedups.Kenneth R Westerback
ok tedu@
2014-12-06If "machdep.lidsuspend" is not set, do not go back to sleep if the lidMartin Pieuchot
is still closed when resuming. This allows docked laptop to be resumed without opening them. ok mlarkin@
2014-12-06Avoid error if a 64K transfer is done from a page-unaligned buffer.Stefan Fritsch
Encountered with savecore and fix tested by bluhm@
2014-12-06Increase low rxr watermark to a value suitable for jumbo frames.Stefan Fritsch
Patch provided by brad@
2014-12-06match family 16hJonathan Gray
2014-12-06Repost video on all known Intel PowerVR devices not just GMA500, forJonathan Gray
people unfortunate enough to own such machines. Fixes broken suspend/resume on an Acer Aspire One D27-1375 with GMA36x0 reported by Sean Cody. ok deraadt@ mlarkin@
2014-12-06regenJonathan Gray
2014-12-06add some more intel powervr devices and amd 16h misc cfgJonathan Gray
2014-12-05Enable xhci(4).Mark Kettenis
2014-12-05Explicitly include <net/if_var.h> instead of pulling it in <net/if.h>.Martin Pieuchot
ok mikeb@, krw@, bluhm@, tedu@
2014-12-05Allow only root to use KERN_PROC_VMMAP until it is really proven safe.Masao Uebayashi
OK deraadt@
2014-12-05Introduce a new sysctl to retrieve VM map entriesMasao Uebayashi
This adds a new sysctl KERN_PROC_VMMAP, which returns an array of VM map entries of a specified process. This prevents debuggers from iterating vm_map_entry RB tree via kvm(3). The name KERN_PROC_VMMAP and struct kinfo_vmentry are chosen from the same function in FreeBSD. struct kinfo_vmentry is revised to reduce size, because OpenBSD does not keep track of filepaths. The semantic is also changed to return max buffer size as a hint, and start iteration at the specified base address. Much valuable input from deraadt@, guenther@, tedu@ OK tedu@ deraadt@
2014-12-04Move the PIC revision 1 interrupt workaround from xbridge_pci_intr_handler()Miod Vallat
to a dedicated wrapper function, and register either xbridge_pci_intr_handler() or the wrapper as the interrupt handler, depending upon which chip we run on. Saves the cost of the workaround on non-affected chips, which are a large majority.
2014-12-04as promised 18 years ago, consolidate isa floppy disks in files.isaTed Unangst
ok deraadt
2014-12-04Repair VLAN tagging in the bridge output pathMike Belopuhov
Since bridge_output/bridge_ifenqueue replace ether_output that does VLAN tagging and call into if_start directly we need to make sure that tag has been set by the bridge. XXX This abuses "if_output == vlan_output" check, but hopefully XXX vlan(4) will use a distinct if_type someday and this code XXX will be improved. Discussed with henning and Rafael Zalamena, ok henning
2014-12-04Enable umcs(4) where moscom(4) is present.Martin Pieuchot
2014-12-04Driver for MosChip Semiconductor 78x0 USB multiport serial adapters.Martin Pieuchot
Ported from FreeBSD via NetBSD, tested on a ST Lab U-400 provided by weerd@. ok jsg@
2014-12-04regenMartin Pieuchot
2014-12-04Various MosChip Semiconductor multiport serial adapter.Martin Pieuchot
2014-12-04The sparc64 Open Firmware package-to-path call (used since softraid bootStefan Sperling
support was introduced) may return a device path without a unit number?!? Open Firmware's open-dev routine will crash if given such a path, rendering the system unbootable. Repair such paths by adding unit number "0". Breakage found by sebiasta@ on a Sun Enterprise E450, fix tested by him. helpful hints from deraadt@
2014-12-04Disable MSI with the Samsung S4LN053X01 SSD controller as found in someBrad Smith
Apple MacBook Air systems such as the 6,1 and 6,2. Workaround noticed in the Linux kernel. Tested by Scott Bonds with a 6,1 system "the disk operations that previously took 5 minutes are now instantaneous."
2014-12-04Disallow file allocations on directories that have been removedDavid Coppa
(tn_links == 0). Failure to enforce such a check can lead to the violation of the assumption that removed directories should not contain directory entries and thus trigger a kernel diagnostic assertion (panic). Fix provided by Pedro Martelletto, thanks! OK millert@
2014-12-04Simplify the MSI bits a bit.Brad Smith
2014-12-04init the mutex used in sleeping pool_gets with the right ipl if theDavid Gwynne
pool hasnt had pool_setipl called. ok kettenis@ ages ago
2014-12-04split the word ops into int and longs so things that care a lotDavid Gwynne
about types are happy. ok jsg@
2014-12-04replace md5 with sha512. ok deraadtTed Unangst
2014-12-04use siphash for trunk loadbalancing. ok deraadtTed Unangst