aboutsummaryrefslogtreecommitdiff
path: root/sys/netgraph/bluetooth
Commit message (Collapse)AuthorAgeFilesLines
* MFC r255090 and r255128:Hans Petter Selasky2013-09-071-0/+61
| | | | | | | | | Add more USB IDs. PR: kern/181728 Notes: svn path=/stable/8/; revision=255346
* MFC r244704, r244714 and r244715:Raphael Kubo da Costa2013-04-041-1/+7
| | | | | | | | | | Add vendor IDs for Broadcom USB dongles (BCM20702). PR: kern/174707 Approved by: glebius Notes: svn path=/stable/8/; revision=249107
* MFC: r233774Marius Strobl2012-06-061-6/+6
| | | | | | | | Fix compiler warnings, mostly signed issues, when USB modules are compiled with WARNS=9. Notes: svn path=/stable/8/; revision=236667
* MFC r223486, r223489, r223490, r223511, r223512, r223513,Hans Petter Selasky2011-06-272-3/+3
| | | | | | | | | | | | | | | | r223515, r223518, r223519, r223521, r223534, r223535, r223536, r223537, r223538, r223543, r223288, r223604 and r223566: - Export all USB device ID's in so-called sections. - Fix duplicate occurence of a USB ID in if_urtw and if_zyd. - Add new tool to autogenerate nomatch entries for devd. - Add new usb.conf file to auto-load USB drivers. - Fix some issues related to the nomatch notifications. PR: misc/157903 Notes: svn path=/stable/8/; revision=223605
* MFC r222051,222055: usb: change to one-pass probing of device driversAndriy Gapon2011-06-221-4/+5
| | | | Notes: svn path=/stable/8/; revision=223411
* MFC 217265:John Baldwin2011-04-272-2/+0
| | | | | | | | | | Remove unneeded includes of <sys/linker_set.h>. Other headers that use it internally contain nested includes. Requested by: hselasky Notes: svn path=/stable/8/; revision=221125
* MFC r197083Maksim Yevmenkin2011-04-191-2/+2
| | | | | | | Get those pesky RFCOMM RPM data bits right. This is likely a noop. Notes: svn path=/stable/8/; revision=220864
* MFC r218757:Bjoern A. Zeeb2011-04-163-3/+21
| | | | | | | | | | | | | | | | | | | | | | | | | | Mfp4 CH=177274,177280,177284-177285,177297,177324-177325 VNET socket push back: try to minimize the number of places where we have to switch vnets and narrow down the time we stay switched. Add assertions to the socket code to catch possibly unset vnets as seen in r204147. While this reduces the number of vnet recursion in some places like NFS, POSIX local sockets and some netgraph, .. recursions are impossible to fix. The current expectations are documented at the beginning of uipc_socket.c along with the other information there. Sponsored by: The FreeBSD Foundation Sponsored by: CK Software GmbH Reviewed by: jhb Tested by: zec Tested by: Mikolaj Golub (to.my.trociny gmail.com) Notes: svn path=/stable/8/; revision=220733
* MFC r218909:Rebecca Cran2011-02-241-1/+1
| | | | | | | | | | Fix typos - remove duplicate "the". PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> Notes: svn path=/stable/8/; revision=218992
* MFC r210783. Fix typoMaksim Yevmenkin2010-08-061-1/+1
| | | | | | | PR: kern/140590 Notes: svn path=/stable/8/; revision=210960
* Introduce and use a sysinit-based initialization scheme for virtualRobert Watson2009-07-231-3/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | network stacks, VNET_SYSINIT: - Add VNET_SYSINIT and VNET_SYSUNINIT macros to declare events that will occur each time a network stack is instantiated and destroyed. In the !VIMAGE case, these are simply mapped into regular SYSINIT/SYSUNINIT. For the VIMAGE case, we instead use SYSINIT's to track their order and properties on registration, using them for each vnet when created/ destroyed, or immediately on module load for already-started vnets. - Remove vnet_modinfo mechanism that existed to serve this purpose previously, as well as its dependency scheme: we now just use the SYSINIT ordering scheme. - Implement VNET_DOMAIN_SET() to allow protocol domains to declare that they want init functions to be called for each virtual network stack rather than just once at boot, compiling down to DOMAIN_SET() in the non-VIMAGE case. - Walk all virtualized kernel subsystems and make use of these instead of modinfo or DOMAIN_SET() for init/uninit events. In some cases, convert modular components from using modevent to using sysinit (where appropriate). In some cases, do minor rejuggling of SYSINIT ordering to make room for or better manage events. Portions submitted by: jhb (VNET_SYSINIT), bz (cleanup) Discussed with: jhb, bz, julian, zec Reviewed by: bz Approved by: re (VIMAGE blanket) Notes: svn path=/head/; revision=195837
* Fix a typeo in the frame len function to unbreak the build, make it shorterAndrew Thompson2009-06-231-2/+2
| | | | | | | while I am here. Notes: svn path=/head/; revision=194682
* - Make struct usb_xfer opaque so that drivers can not access the internalsAndrew Thompson2009-06-232-106/+172
| | | | | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h Notes: svn path=/head/; revision=194677
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.Andrew Thompson2009-06-152-52/+52
| | | | Notes: svn path=/head/; revision=194228
* Rework socket upcalls to close some races with setup/teardown of upcalls.John Baldwin2009-06-011-14/+9
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | - Each socket upcall is now invoked with the appropriate socket buffer locked. It is not permissible to call soisconnected() with this lock held; however, so socket upcalls now return an integer value. The two possible values are SU_OK and SU_ISCONNECTED. If an upcall returns SU_ISCONNECTED, then the soisconnected() will be invoked on the socket after the socket buffer lock is dropped. - A new API is provided for setting and clearing socket upcalls. The API consists of soupcall_set() and soupcall_clear(). - To simplify locking, each socket buffer now has a separate upcall. - When a socket upcall returns SU_ISCONNECTED, the upcall is cleared from the receive socket buffer automatically. Note that a SO_SND upcall should never return SU_ISCONNECTED. - All this means that accept filters should now return SU_ISCONNECTED instead of calling soisconnected() directly. They also no longer need to explicitly clear the upcall on the new socket. - The HTTP accept filter still uses soupcall_set() to manage its internal state machine, but other accept filters no longer have any explicit knowlege of socket upcall internals aside from their return value. - The various RPC client upcalls currently drop the socket buffer lock while invoking soreceive() as a temporary band-aid. The plan for the future is to add a new flag to allow soreceive() to be called with the socket buffer locked. - The AIO callback for socket I/O is now also invoked with the socket buffer locked. Previously sowakeup() would drop the socket buffer lock only to call aio_swake() which immediately re-acquired the socket buffer lock for the duration of the function call. Discussed with: rwatson, rmacklem Notes: svn path=/head/; revision=193272
* s/usb2_/usb_/ on all typedefs for the USB stack.Andrew Thompson2009-05-292-16/+16
| | | | Notes: svn path=/head/; revision=193045
* s/usb2_/usb_/ on all C structs for the USB stack.Andrew Thompson2009-05-283-42/+42
| | | | Notes: svn path=/head/; revision=192984
* Hook ubt and ubtbcmfw back up to the build.Andrew Thompson2009-05-271-2/+1
| | | | Notes: svn path=/head/; revision=192909
* move ng_ubt_var.h back to its original placeAndrew Thompson2009-05-271-0/+131
| | | | Notes: svn path=/head/; revision=192907
* move ng_ubt.c back to its original placeAndrew Thompson2009-05-271-0/+1722
| | | | Notes: svn path=/head/; revision=192906
* move ubtbcmfw.c back to its original placeAndrew Thompson2009-05-271-0/+427
| | | | Notes: svn path=/head/; revision=192905
* Delete the bluetooth drivers for the old usb stack.Andrew Thompson2009-05-274-3091/+0
| | | | Notes: svn path=/head/; revision=192903
* Switch ubtbcmfw(4) to use si_drv1 instead of storing the unit number.Ed Schouten2009-04-171-39/+21
| | | | | | | | | The unit number is still used to store the type of the device node. Approved by: emax Notes: svn path=/head/; revision=191226
* Update comment. soalloc() is no longer performing M_WAITOK memory allocations.Maksim Yevmenkin2009-02-101-14/+6
| | | | | | | | Submitted by: ru MFC after: 3 days Notes: svn path=/head/; revision=188452
* Allow unprivileged users to run l2ping(8).Maksim Yevmenkin2009-02-041-5/+0
| | | | | | | MFC after: 1 month Notes: svn path=/head/; revision=188132
* Properly return error code to the caller. This should fix the followingMaksim Yevmenkin2009-01-191-20/+26
| | | | | | | | | | | | | panic in ng_l2cap(4). panic: ng_l2cap_l2ca_con_req: ubt0l2cap - could not find connection! While i'm here get rid of few goto's. MFC after: 1 week Notes: svn path=/head/; revision=187454
* Change message severity level from WARN to INFO. This should reduceMaksim Yevmenkin2008-12-241-1/+1
| | | | | | | | | amount of messages sent to syslog MFC after: 1 week Notes: svn path=/head/; revision=186466
* Fix a number of style issues in the MALLOC / FREE commit. I've tried toDag-Erling Smørgrav2008-10-231-1/+1
| | | | | | | | be careful not to fix anything that was already broken; the NFSv4 code is particularly bad in this respect. Notes: svn path=/head/; revision=184214
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).Dag-Erling Smørgrav2008-10-2311-46/+41
| | | | | | | MFC after: 3 months Notes: svn path=/head/; revision=184205
* Abort transfers on all pipes before closing them. This fixes the crashMaksim Yevmenkin2008-10-031-0/+5
| | | | | | | | | | when Bluetooth USB device is pulled out without stopping the stack first. Submitted by: Vladimir Grebenschikov vova at fbsd dot ru MFC after: 1 week Notes: svn path=/head/; revision=183576
* Replace all calls to minor() with dev2unit().Ed Schouten2008-09-271-2/+2
| | | | | | | | | | | | | | | | | | After I removed all the unit2minor()/minor2unit() calls from the kernel yesterday, I realised calling minor() everywhere is quite confusing. Character devices now only have the ability to store a unit number, not a minor number. Remove the confusion by using dev2unit() everywhere. This commit could also be considered as a bug fix. A lot of drivers call minor(), while they should actually be calling dev2unit(). In -CURRENT this isn't a problem, but it turns out we never had any problem reports related to that issue in the past. I suspect not many people connect more than 256 pieces of the same hardware. Reviewed by: kib Notes: svn path=/head/; revision=183397
* Implement ratelimiting for debug messages. For now, allow at mostMaksim Yevmenkin2008-08-015-20/+50
| | | | | | | | | | one message per second. In the future might add a sysctl knob for each socket family to fine tune this. MFC after: 1 week Notes: svn path=/head/; revision=181093
* Increase maximum input queue size limit for raw Bluetooth HCI sockets.Maksim Yevmenkin2008-08-011-2/+1
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=181089
* Fix locking bug, i.e. lock "wildcard" matched pcb before return.Maksim Yevmenkin2008-08-011-0/+3
| | | | Notes: svn path=/head/; revision=181088
* Introduce support for Bluetooth SCO sockets. This is based on olderMaksim Yevmenkin2008-07-303-1/+2132
| | | | | | | | | code that was revisted. MFC after: 3 months Notes: svn path=/head/; revision=181033
* Simplify ubt_isoc_in_complete2(). Also should fix off by 1 bug.Maksim Yevmenkin2008-07-291-28/+18
| | | | | | | MFC after: 3 months Notes: svn path=/head/; revision=180945
* Fill in the string portion of the bluetooth stack version sysctl.Tom Rhodes2008-07-141-1/+1
| | | | | | | Approved by: emax Notes: svn path=/head/; revision=180508
* Dust off old code for support of USB isochronous transfers.Maksim Yevmenkin2008-07-113-215/+341
| | | | | | | | | | | | USB isochronous transfer support is required for Bluetooth SCO. While i'm here change u_int to uint and update TODO. This should produce no visible changes unless the device is broken (or really old). MFC after: 3 months Notes: svn path=/head/; revision=180452
* Get in some basic infrastructure for Bluetooth SCO support.Maksim Yevmenkin2008-07-103-0/+59
| | | | | | | MFC after: 3 months Notes: svn path=/head/; revision=180399
* Several changes breaking netgraph module ABI collected together:Alexander Motin2008-04-151-23/+15
| | | | | | | | | | | | | | | | | | | | | | | | | - reorder structures fields (XX_refs) a bit to group fields modified same time together. According to my tests it gives up to 10% SMP performance benefit on real workload due to reduced inter-CPU cache trashing. - change q_flags from long to int as long is not really needed there and it's usage with atomics is argued by some people. - move NGF_WORKQ flag into the separate field q_flags2 as it protected by queue mutex instead of node writer protection used by the rest of flags. - move nd_work queue entry to ng_queue structure to which it is more related and make it STAILQ instead of TAILQ as now it is a classic FIFO. - remove q_node pointer from ng_queue structure as it is not really needed. - reimplement item queue using STAILQ instead of own equal implementation. As soon as BT subsystem has own item queues using ng_item.el_next update it also. - change depth field in ng_item from uintptr_t to u_int. It was made uintptr_t to keep ABI compatibility. Reviewed by: julian, emax Tested with: Netperf cluster Notes: svn path=/head/; revision=178228
* Fix locking issue in ng_btsocket_l2cap_ctloutput()Maksim Yevmenkin2007-10-311-2/+4
| | | | | | | | Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > MFC after: 3 days Notes: svn path=/head/; revision=173231
* Allow RFCOMM servers to bind to a ''wildcard'' RFCOMM channelMaksim Yevmenkin2007-10-291-31/+53
| | | | | | | | | | | | | | zero (0). Actual RFCOMM channel will be assigned after listen(2) call is done on a RFCOMM socket bound to a ''wildcard'' RFCOMM channel zero (0). Address locking issues in ng_btsocket_rfcomm_bind() Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > MFC after: 1 week Notes: svn path=/head/; revision=173151
* Return EADDRNOTAVAIL instead of EDESTADDRREQ error whenMaksim Yevmenkin2007-08-232-2/+2
| | | | | | | | | | | listen(2) is called on improperly bound socket. Suggested by: Iain Hibbert Approved by: re (kensmith) MFC after: 3 days Notes: svn path=/head/; revision=171937
* Make ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.Maksim Yevmenkin2007-08-134-188/+174
| | | | | | | | | | | Reconnect ng_h(4) back to the build. Reviewed by: kensmith Approved by: re (kensmith) MFC after: 1 month Notes: svn path=/head/; revision=171818
* Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.Maksim Yevmenkin2007-07-101-1/+1
| | | | | | | Approved by: re (rwatson) Notes: svn path=/head/; revision=171345
* These modules depend on usb, make that explicitWarner Losh2007-06-232-0/+4
| | | | | | | Approved by: re@ Notes: svn path=/head/; revision=170999
* Replace sosend() with direct call to .pru_send method on theMaksim Yevmenkin2007-06-211-2/+2
| | | | | | | | | | | L2CAP socket. This is to avoid LOR with sx(9) lock in sblock() called from sosend_generic(). Approved by: re (kensmith) MFC after: 1 week Notes: svn path=/head/; revision=170972
* Fix build problem caused by a set of typos.Xin LI2007-06-191-6/+6
| | | | | | | | Reported by: tinderbox Approved by: re (mux) Notes: svn path=/head/; revision=170952
* Finish removing usb_port.h compat macros.Warner Losh2007-06-182-26/+71
| | | | Notes: svn path=/head/; revision=170933
* Remove two more instances of the USBDEV() macro.Ruslan Ermilov2007-06-131-2/+2
| | | | Notes: svn path=/head/; revision=170662