summaryrefslogtreecommitdiff
path: root/sys
AgeCommit message (Collapse)Author
2013-11-15Clean-up the HID environment.Paul Irofti
This set of drivers were very very dirty. i/ Clean-up the match/attach multi-casting hackjob - stop casting aux to every attach arg in existance - be consistent about casting it only to uhidev_attach_arg - fetch the usb_attach_arg from above where needed ii/ Sort out the activate routines - leave the deactivation to the parent (uhidev(4)) - ditch the sc_dying flag in favour of usbd_is_dying() iii/ Get closer to keeping all the usb hid information in the uhidev structure (one uhidev per reportID) - store the usbd_device in the uhidev - use it consistently instead of always peaking at the parent's soft state Okay mpi@
2013-11-15Make vax stand build cross-build friendly.Masao Uebayashi
OK miod@
2013-11-15Add missing parenthesis to make tick calculation work as intended. ShouldKenneth R Westerback
fix excessive timeouts and 'Michael mic' errors. Problem pointed out by vigdis via bugs@ ok dlg@
2013-11-14Clean up tabs and a backslash which seemed to have sneeked in in r1.29.Patrick Wildt
"clean that little thingy up" deraadt@
2013-11-14Use (N * sizeof(struct klist)) instead of (N * sizeof(struct klist *))Charles Longeau
when malloc'ing struct klist *. Similar diff found upstream: http://svnweb.freebsd.org/base?view=revision&revision=197575 Found by LLVM/Clang Static Analyzer. ok tedu@ krw@ guenther@
2013-11-14Improvements for address assignment and related issues in IPv6CP.Stefan Sperling
Move address assignment to process context. This uses a workq at present, conversion to taskq is on my todo list (discussed with dlg). Instead of rummaging around in sockaddr_in6 structs, use the proper netinet6 APIs to configure addresses. Deal with IFID collisions instead of ignoring them. The whole point of IPv6CP is to avoid IFID collisions. Use arc4random() during IFID generation. Assign destination address to /128 point-to-point links. tested by me and sthen with pppoe(4) ok sthen
2013-11-14replace workqs with tasks for handling resume. state handling isDavid Gwynne
still in workqs. from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14replace workqs with tasks for handling resumeDavid Gwynne
from kimberley manning
2013-11-14improve maths and conditionals around ticks to cope with wraparound better.David Gwynne
2013-11-13Do not map frame buffer resources the kernel doesn't use; only keep theMiod Vallat
lowest bitmap plane, and a page per plane to be able to probe the frame buffer depth. Saves an insignificant amount of kernel memory (about 4KB), still worth doing. ok aoyama@
2013-11-13add missing headers here too, forgotten after testing the diff.Jasper Lievisse Adriaanse
2013-11-13DIOCGETSRCNODES was leaking a little bit more kernel informationTheo de Raadt
ok benno
2013-11-13Make fusebuf.fh_err signed, it might store negative errno values; ok sylStefan Sperling
2013-11-13Add missing includes.Sylvestre Gallon
Unbreak armv7 compilation. ok rapha@ "commit the fix" from deraadt@
2013-11-13Polling is done per controller not per interface.Paul Irofti
The controllers are linked through device->bus so the iface is redundant. So fixing usbd_dopoll() to take the device as argument and making usbd_interface2device_handle() private (for now) inside usbdi_util. Tested and okay mpi@
2013-11-13In in6_update_ifa(), don't set the TENTATIVE flag on an IPv6 address thatStefan Sperling
is marked as NODAD. Since we're not gonna do duplicate address detection for this address, the TENTATIVE flag won't get cleared, rendering the address unusable. The existing logic only checked whether DAD was enabled for the interface, but DAD can be configured on a per-address basis. ok sthen@ as part of a larger diff
2013-11-13fix typo in last commitTheo de Raadt
2013-11-13boot(): Don't forget calling if_downall() and uvm_shutdown() on arm ports.Masao Uebayashi
"Unification good" deraadt@
2013-11-13ENOMEM is probably more appropriate than 0 in this error case.Mike Larkin
2013-11-13Use of uninitialized variable. There are obvious locking problems alsoMike Larkin
present in this function, but I've been advised to walk away, and it have been this way forever (and this code is not even enabled in GENERIC by default anyway) original bug found by Maxime Villard, thanks.
2013-11-13Use DL_GETPOFFSET() to get partition offset, except where weKenneth R Westerback
explicitly check p_offseth before assigning p_offset to local variables. Add missing check for p_offseth.
2013-11-13Honor RB_TIMEBAD on vax too as other ports.Masao Uebayashi
OK miod@
2013-11-12Oops. Use %llu for DL_GETDSIZE() value.Kenneth R Westerback
2013-11-12two ioctl's were disclosing kernel pointers and such.Theo de Raadt
ok henning benno
2013-11-12avoid math on void * pointersTheo de Raadt
(a few years ago, people went far too void * happy, it was like a drug or something)
2013-11-12Implement sd card detection. Fixes the `sdmmc0: can't enable card' on bbbFederico G. Schwindt
when there is no card. Tested on pandaboard by patrick@, ok patrick@ and syl@
2013-11-12Use daddr_t to hold calculated disk sector address. %d -> %lld toKenneth R Westerback
match. Whitespace tweaks. All bringing this chunk into identity with same chunk in sparc64 fd.c.
2013-11-12Tweak comment to explicitly mention that disk blocks are DEV_BSIZEKenneth R Westerback
(a.k.a. 512-bytes) as far as ffs is concerned.
2013-11-12Use %llu+DL_GETPSIZE() to show partition size. Replace %li+(long) withKenneth R Westerback
%u for u_int32_t d_secsize.
2013-11-12We always make symlinks to 'machine' and 'm88k' to compile.Kenji Aoyama
ok miod@
2013-11-12Fix the bootloader random hang-up while counting down on LUNA-88K2.Kenji Aoyama
The same logic is also applied to luna88k/dev/timekeeper.c. suggested and ok miod@
2013-11-12Use DL_GETDSIZE() to get disk size.Kenneth R Westerback
2013-11-12Use DL_[GET|SET]POFFSET() and DL_[GET|SET]PSIZE() to get and setKenneth R Westerback
partition offsets and sizes.
2013-11-12try bpf.c r1.84 again, this time without semantic changes to if statements.David Gwynne
cheers to sthen@ and krw@ for properly dealing with the fallout of my first commit.
2013-11-11Revert bpf.c 1.84 / bpfdesc.h 1.19 for now, "panic: timeout_add: to_ticks (-1)Stuart Henderson
< 0" seen by RD Thrush, http://article.gmane.org/gmane.os.openbsd.bugs/20113 where he has a long-running process using bpf which is active at the time of panic. krw@ agrees with reverting for now.
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-11There is no fusebuf(9) man page anymore. Remove references to it from comments.Stefan Sperling
ok syl@
2013-11-11Replace sc_dying in favour of usbd_is_dying() and usbd_deactivate().Paul Irofti
Okay mpi@
2013-11-11Kill commented out code dealing with a non existent sc_dying variable.Martin Pieuchot
2013-11-11Clean-up the activate routines from the uoak*(4) drivers.Paul Irofti
Leave the deactivate bits to the parent. Simplify by making a single dying check in uhidev(4) interrupt routine instead of having each child doing it. Okay mpi@
2013-11-11Replace most of our formating functions to convert IPv4/6 addresses fromMartin Pieuchot
network to presentation format to inet_ntop(). The few remaining functions will be soon converted. ok mikeb@, deraadt@ and moral support from henning@