summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* - Add getdelim(), getline(), stpncpy(), strnlen(), wcsnlen(),David Schultz2009-02-2822-31/+747
| | | | | | | | | | | | | | | wcscasecmp(), and wcsncasecmp(). - Make some previously non-standard extensions visible if POSIX_VISIBLE >= 200809. - Use restrict qualifiers in stpcpy(). - Declare off_t and size_t in stdio.h. - Bump __FreeBSD_version in case the new symbols (particularly getline()) cause issues with ports. Reviewed by: standards@ Notes: svn path=/head/; revision=189136
* Define a macro for POSIX.1-2008 here until a future groff importDavid Schultz2009-02-281-0/+4
| | | | | | | includes one. Notes: svn path=/head/; revision=189135
* Add visibility constants for POSIX.1-2008.David Schultz2009-02-281-4/+12
| | | | Notes: svn path=/head/; revision=189134
* Add restrict qualifiers to the parameters to strlcpy() and strlcat().David Schultz2009-02-284-6/+6
| | | | | | | | The annotation mainly just serves as a hint that they're not intended for use with overlapping strings. Notes: svn path=/head/; revision=189133
* Mark memmem() __pure.David Schultz2009-02-281-1/+1
| | | | Notes: svn path=/head/; revision=189132
* Make sure %zd treats negative arguments properly on 32-bit platforms.David Schultz2009-02-283-5/+8
| | | | | | | | | | Fix harmless but related bugs in %_$zd and %_$tu. PR: 131880 MFC after: 1 week Notes: svn path=/head/; revision=189131
* Initialize the vblank structures at load time. Previously we did thisRobert Noland2009-02-2816-20/+44
| | | | | | | | | | | | | | | at irq install/uninstall time, but when we vt switch, we uninstall the irq handler. When the irq handler is reinstalled, the modeset ioctl happens first. The modeset ioctl is supposed to tell us that we can disable vblank interrupts if there are no active consumers. This will fail after a vt switch until another modeset ioctl is called via dpms or xrandr. Leading to cases where either interrupts are on and can't be disabled, or worse, no interrupts at all. MFC after: 2 weeks Notes: svn path=/head/; revision=189130
* Add a tuneable to allow disabling msi on drm at runtime.Robert Noland2009-02-271-1/+5
| | | | | | | | | Suggested by: jhb@ MFC after: 2 weeks Notes: svn path=/head/; revision=189128
* Copy/paste bug fix for previos commit.Alexander Motin2009-02-271-1/+1
| | | | Notes: svn path=/head/; revision=189127
* Move to new usb stack that puts the front-end bus attachments with theWarner Losh2009-02-271-1/+1
| | | | | | | | | usb stack rather than with the rest of the processor support code. Not sure that's a good idea, as we were moving away from it, but this fixes the build in the mean time so we can have that discussion. Notes: svn path=/head/; revision=189126
* Change the last references to PRIV_ROOT. /dev/usb used to be world writable soAndrew Thompson2009-02-272-3/+3
| | | | | | | | | | further root checks were needed, this isnt the case anymore but just change it to PRIV_DRIVER until it can be investigated later. Spotted by: rwatson Notes: svn path=/head/; revision=189125
* Remove ic_update_mcast calls that are not implemented.Andrew Thompson2009-02-272-16/+0
| | | | | | | | Spotted by: sam Pointy hat: me Notes: svn path=/head/; revision=189124
* Partial sync to //depot/projects/usbAndrew Thompson2009-02-276-69/+358
| | | | | | | | | | | - Reissue the ctrl request on failure - Ensure Tx and ctrl requests are not interleaved - Add promisc callbacks Obtained from: Hans Petter Selasky Notes: svn path=/head/; revision=189123
* Fix the add stream feature of strm-reset to really work:Randall Stewart2009-02-275-49/+133
| | | | | | | | | | | | | | - Fix the copy, we can't do a blind copy but must transfer the data from the old to the new. - Fix the ACK processing so we properly stop retransmitting the thing. - Fix it so if we get a retran we will properly reply with the saved response without doing anything. MFC after: 1 month Notes: svn path=/head/; revision=189121
* - Hold a reference on the cdev a filesystem is mounted from in the mount.John Baldwin2009-02-275-12/+14
| | | | | | | | | | - Remove the cdev pointers from the denode and instead use the mountpoint's reference to call dev2udev() in getattr(). Reviewed by: kib, julian Notes: svn path=/head/; revision=189120
* Merge rev. 188615, 188812 changes from old-USB to USB2 driver.Alexander Motin2009-02-271-20/+17
| | | | Notes: svn path=/head/; revision=189119
* really enable usb1Sam Leffler2009-02-271-8/+9
| | | | Notes: svn path=/head/; revision=189118
* - Update copyright to 2009.David Christensen2009-02-273-42/+65
| | | | | | | | | | | - Only enable split header operation when ZERO_COPY_SOCKETS is enabled in the kernel. Submitted by: davidch MFC after: 1 week Notes: svn path=/head/; revision=189117
* o enable PREEMPTIONSam Leffler2009-02-272-51/+62
| | | | | | | | | | | o turn off a bunch of stuff that's unlikely to be used o add flash support o use mii instead of miibus to save space o enable tdma support o configure legacy usb as usb2 works only on 2348 w/ 64M configs Notes: svn path=/head/; revision=189116
* o add -HEAD to avoid build conflictsSam Leffler2009-02-271-3/+3
| | | | | | | o switch to a more common flash config Notes: svn path=/head/; revision=189115
* add -HEAD to avoid build conflictsSam Leffler2009-02-271-1/+1
| | | | Notes: svn path=/head/; revision=189114
* Make a note about USB /dev changes.Andrew Thompson2009-02-271-0/+4
| | | | Notes: svn path=/head/; revision=189113
* newfs_msdos: allow to work with media that doesn't have any CHS paramsAndriy Gapon2009-02-271-5/+17
| | | | | | | | | | | | | Either use parameters provided by user or make them up. The code for faking CHS params is borrowed from disklabel code. The logic for using user-provided and auto-guessed parameters is not perfect, so to speak. PR: bin/121182 Approved by: jhb (mentor) Notes: svn path=/head/; revision=189112
* udf_readatoffset: return correct size and data pointer for data in fentryAndriy Gapon2009-02-271-0/+6
| | | | | | | | | | | This should help correct reading of directories with data located in fentry. Submitted by: bde Approved by: jhb (mentor) Notes: svn path=/head/; revision=189111
* Change USB over to make_dev() for all device nodes, previously it hooked intoAndrew Thompson2009-02-2725-1941/+643
| | | | | | | | | | | | | | | | | | the devfs clone handler to open the (invisible) devices on the fly. The /dev entries are layed out as follows, /dev/usbctl = master device /dev/usb/0.1.0.5 = usb device, (<bus>.<dev>.<iface>.<endpoint>) /dev/ugen0.1 -> usb/0.1.0.0 = ugen link to ctrl endpoint This also removes the custom permissions model from USB. Bump __FreeBSD_version to 800066. Submitted by: rink (earlier version) Notes: svn path=/head/; revision=189110
* Remove empty directory structure.Ed Schouten2009-02-270-0/+0
| | | | | | | Submitted by: Pawel Worach <pawel worach gmail com> Notes: svn path=/head/; revision=189109
* Fix HID_COMPAT7 handling around the USB_GET_REPORT_DESC ioctl.Andrew Thompson2009-02-271-2/+4
| | | | | | | | Submitted by: daichi Pointy hat: me Notes: svn path=/head/; revision=189108
* For all files including net/vnet.h directly include opt_route.h andBjoern A. Zeeb2009-02-2749-8/+83
| | | | | | | | | | | | | | | | | net/route.h. Remove the hidden include of opt_route.h and net/route.h from net/vnet.h. We need to make sure that both opt_route.h and net/route.h are included before net/vnet.h because of the way MRT figures out the number of FIBs from the kernel option. If we do not, we end up with the default number of 1 when including net/vnet.h and array sizes are wrong. This does not change the list of files which depend on opt_route.h but we can identify them now more easily. Notes: svn path=/head/; revision=189106
* Move the include of vinet.h further up before the ipfilter includes.Bjoern A. Zeeb2009-02-271-3/+3
| | | | Notes: svn path=/head/; revision=189105
* Remove redundant code in printf() and vprintf().Ed Schouten2009-02-271-28/+1
| | | | | | | | | | | printf() and vprintf() are exactly the same, except the way arguments are passed. Just like we see in other pieces of code (i.e. libc's printf()), implement printf() using vprintf(). Submitted by: Christoph Mallon <christoph mallon gmx de> Notes: svn path=/head/; revision=189104
* Shuffle the vimage.h includes or add where missing.Bjoern A. Zeeb2009-02-273-2/+5
| | | | Notes: svn path=/head/; revision=189103
* Revert previous commit to subr_prf.c and make it more tidy.Ed Schouten2009-02-271-3/+5
| | | | | | | | | | As mentioned by bz and bde, the change I made wasn't the proper way to fix. Inspired by bde's patch, perform some small cleanups to uprintf(). Reviewed by: bz Notes: svn path=/head/; revision=189102
* Prefer register usage style to be more consistent with the rest of theRafal Jaworowski2009-02-271-8/+8
| | | | | | | trap_subr.S code. Notes: svn path=/head/; revision=189101
* Make Book-E debug register state part of the PCB context.Rafal Jaworowski2009-02-277-5/+18
| | | | | | | | | | | | | | | | | | | Previously, DBCR0 flags were set "globally", but this leads to problems because Book-E fine grained debug settings work only in conjuction with the debug master enable bit in MSR: in scenarios when the DBCR0 was set with intention to debug one process, but another one with MSR[DE] set got scheduled, the latter would immediately cause debug exceptions to occur upon execution of its own code instructions (and not the one intended for debugging). To avoid such problems and properly handle debugging context, DBCR0 state should be managed individually per process. Submitted by: Grzegorz Bernacki gjb ! semihalf dot com Reviewed by: marcel Notes: svn path=/head/; revision=189100
* Fix up some ioctl permissions issues long overlooked.Robert Noland2009-02-273-8/+7
| | | | | | | | Submitted by: jkim@ MFC after: 2 weeks Notes: svn path=/head/; revision=189099
* fix buildSam Leffler2009-02-271-0/+1
| | | | Notes: svn path=/head/; revision=189098
* fix buildSam Leffler2009-02-271-1/+1
| | | | Notes: svn path=/head/; revision=189097
* Replace clone_setcallback() with a new function clone_setdefcallback()Rui Paulo2009-02-274-18/+34
| | | | | | | | | | | that selects a callback from an interface prefix name. This allows us to report a meaningful error when the user types 'ifconfig wlan0 create', for example, and also kills some redundant code. Reviewed by: sam (earlier version) Notes: svn path=/head/; revision=189096
* Rollback rev. 189093.Alexander Motin2009-02-261-1/+0
| | | | | | | | | | mtx_lock() is not needed there as callout initialized with callout_init_mtx(). Sorry. Submitted by: Ian Dowse Notes: svn path=/head/; revision=189095
* Unhide IDENTIFY command timeouts when verbose messages enabled.Alexander Motin2009-02-261-1/+3
| | | | | | | I think it should be suitable for debugging. Notes: svn path=/head/; revision=189094
* Restore mtx_lock() call on ata_timeout(), dropped (I think accidentally)Alexander Motin2009-02-261-0/+1
| | | | | | | during commit 3 years ago. Notes: svn path=/head/; revision=189093
* Rename all symbols in libmp(3) to mp_*, just like Solaris.Ed Schouten2009-02-2615-229/+255
| | | | | | | | | | | | | | | The function pow() in libmp(3) clashes with pow(3) in libm. We could rename this single function, but we can just take the same approach as the Solaris folks did, which is to prefix all function names with mp_. libmp(3) isn't really popular nowadays. I suspect not a single application in ports depends on it. There's still a chance, so I've increased the SHLIB_MAJOR and __FreeBSD_version. Reviewed by: deischen, rdivacky Notes: svn path=/head/; revision=189092
* Remove direct ata_completed() call options from ata_finish(), except for theAlexander Motin2009-02-264-17/+10
| | | | | | | | | | | | | kernel dumping case. ata_completed() may initiate ata_reinit() on error, that may lead to drives attach or detach. Attach and detach are sending requests to drives and sleep waiting for results. But ata_finish() can be called directly from interrupt handler where sleeping is prohibited, so we must break this chain somewhere. This place seems to fit best. Notes: svn path=/head/; revision=189091
* Fix LLVM compiler errors related to K&R declarations with ANSI prototypes.Ed Schouten2009-02-266-57/+25
| | | | | | | Submitted by: Pawel Worach <pawel.worach@gmail.com> Notes: svn path=/head/; revision=189090
* Allow the old usb stack to compile by adding the appropriate -I foo, this mustAndrew Thompson2009-02-261-1/+5
| | | | | | | | | | | go before the standard -I$S to have the search happen before /sys/. Make this conditional on 'makeoptions WITH_LEGACY=1' in the kernel config. Prodded by: sam Notes: svn path=/head/; revision=189089
* Use ANSI function declarations in librpcsvc.Ed Schouten2009-02-265-36/+12
| | | | | | | | | | | | When compiling librpcsvc with LLVM, we get a compiler error, because hexval() uses an ANSI prototype, but a K&R declaration. I could have just changed hexval(), but I'd rather keep this consistent. It's not that much code. Submitted by: Pawel Worach <pawel worach gmail com> Notes: svn path=/head/; revision=189087
* Add MSI blacklisting support.Alexander Motin2009-02-261-47/+76
| | | | | | | | | Disable MSI for nVidia MCP51 controller. Enabling MSI there leads to unexpected errors and timeouts, that should not happen even if interrupts are not working completely. Notes: svn path=/head/; revision=189086
* use mii instead of miibus to not pull in useless phy codeSam Leffler2009-02-261-1/+1
| | | | Notes: svn path=/head/; revision=189085
* add updatep[12] that grok the partitioning we use and use gpartSam Leffler2009-02-262-0/+116
| | | | | | | instead of boot0cfg to switch the active partition Notes: svn path=/head/; revision=189084
* udf_readatoffset: read through directory vnode, do not read > MAXBSIZEAndriy Gapon2009-02-263-25/+23
| | | | | | | | | | | | | | | | | | | | | | | | Currently bread()-ing through device vnode with (1) VMIO enabled, (2) bo_bsize != DEV_BSIZE (3) more than 1 block results in data being incorrectly cached. So instead a more common approach of using a vnode belonging to fs is now employed. Also, prevent attempt to bread more than MAXBSIZE bytes because of adjustments made to account for offset that doesn't start on block boundary. Add expanded comments to explain the calculations. Also drop unused inline function while here. PR: kern/120967 PR: kern/129084 Reviewed by: scottl, kib Approved by: jhb (mentor) Notes: svn path=/head/; revision=189082