summaryrefslogtreecommitdiffstats
path: root/sys/netgraph/bluetooth
Commit message (Collapse)AuthorAgeFilesLines
* - Move all USB device ID arrays into so-called sections,hselasky2011-06-242-3/+3
| | | | | | | | | | | | sorted according to the mode which they support: host, device or dual mode - Add generic tool to extract these data: tools/bus_autoconf Discussed with: imp Suggested by: Robert Millan <rmh@debian.org> PR: misc/157903 MFC after: 14 days
* usb: fix a missed use of use_generic in r222051avg2011-05-181-4/+5
| | | | | | | Submitted by: gcooper Pointyhat to: avg MFC after: 1 month X-MFC with: r222051
* Node constructor methods are supposed to be called in syscallglebius2011-04-182-8/+2
| | | | | | | context always. Convert nodes to consistently use M_WAITOK flag for memory allocation. Reviewed by: julian
* Fix typos - remove duplicate "the".brucec2011-02-211-1/+1
| | | | | | PR: bin/154928 Submitted by: Eitan Adler <lists at eitanadler.com> MFC after: 3 days
* Mfp4 CH=177274,177280,177284-177285,177297,177324-177325bz2011-02-163-3/+21
| | | | | | | | | | | | | | | | | | | | | | 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) MFC after: 2 weeks
* sysctl(9) cleanup checkpoint: amd64 GENERIC builds cleanly.mdf2011-01-126-21/+21
| | | | Commit the netgraph piece.
* Remove unneeded includes of <sys/linker_set.h>. Other headers that usejhb2011-01-112-2/+0
| | | | | | it internally contain nested includes. Reviewed by: bde
* Fix typoemax2010-08-021-1/+1
| | | | | PR: kern/140590 MFC after: 3 days
* Get those pesky RFCOMM RPM data bits right. This is likely a noop.emax2009-09-101-2/+2
| | | | MFC after: 1 month
* Introduce and use a sysinit-based initialization scheme for virtualrwatson2009-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)
* Fix a typeo in the frame len function to unbreak the build, make it shorterthompsa2009-06-231-2/+2
| | | | while I am here.
* - Make struct usb_xfer opaque so that drivers can not access the internalsthompsa2009-06-232-106/+172
| | | | - Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
* s/usb2_/usb_|usbd_/ on all function names for the USB stack.thompsa2009-06-152-52/+52
|
* Rework socket upcalls to close some races with setup/teardown of upcalls.jhb2009-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
* s/usb2_/usb_/ on all typedefs for the USB stack.thompsa2009-05-292-16/+16
|
* s/usb2_/usb_/ on all C structs for the USB stack.thompsa2009-05-283-42/+42
|
* Hook ubt and ubtbcmfw back up to the build.thompsa2009-05-271-2/+1
|
* move ng_ubt_var.h back to its original placethompsa2009-05-271-0/+131
|
* move ng_ubt.c back to its original placethompsa2009-05-271-0/+1722
|
* move ubtbcmfw.c back to its original placethompsa2009-05-271-0/+427
|
* Delete the bluetooth drivers for the old usb stack.thompsa2009-05-274-3091/+0
|
* Switch ubtbcmfw(4) to use si_drv1 instead of storing the unit number.ed2009-04-171-39/+21
| | | | | | The unit number is still used to store the type of the device node. Approved by: emax
* Update comment. soalloc() is no longer performing M_WAITOK memory allocations.emax2009-02-101-14/+6
| | | | | Submitted by: ru MFC after: 3 days
* Allow unprivileged users to run l2ping(8).emax2009-02-041-5/+0
| | | | MFC after: 1 month
* Properly return error code to the caller. This should fix the followingemax2009-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
* Change message severity level from WARN to INFO. This should reduceemax2008-12-241-1/+1
| | | | | | amount of messages sent to syslog MFC after: 1 week
* Fix a number of style issues in the MALLOC / FREE commit. I've tried todes2008-10-231-1/+1
| | | | | be careful not to fix anything that was already broken; the NFSv4 code is particularly bad in this respect.
* Retire the MALLOC and FREE macros. They are an abomination unto style(9).des2008-10-2311-46/+41
| | | | MFC after: 3 months
* Abort transfers on all pipes before closing them. This fixes the crashemax2008-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
* Replace all calls to minor() with dev2unit().ed2008-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
* Implement ratelimiting for debug messages. For now, allow at mostemax2008-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
* Increase maximum input queue size limit for raw Bluetooth HCI sockets.emax2008-08-011-2/+1
| | | | MFC after: 3 days
* Fix locking bug, i.e. lock "wildcard" matched pcb before return.emax2008-08-011-0/+3
|
* Introduce support for Bluetooth SCO sockets. This is based on olderemax2008-07-303-1/+2132
| | | | | | code that was revisted. MFC after: 3 months
* Simplify ubt_isoc_in_complete2(). Also should fix off by 1 bug.emax2008-07-291-28/+18
| | | | MFC after: 3 months
* Fill in the string portion of the bluetooth stack version sysctl.trhodes2008-07-141-1/+1
| | | | Approved by: emax
* Dust off old code for support of USB isochronous transfers.emax2008-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
* Get in some basic infrastructure for Bluetooth SCO support.emax2008-07-103-0/+59
| | | | MFC after: 3 months
* Several changes breaking netgraph module ABI collected together:mav2008-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
* Fix locking issue in ng_btsocket_l2cap_ctloutput()emax2007-10-311-2/+4
| | | | | Submitted by: Heiko Wundram (Beenic) < wundram at beenic dot net > MFC after: 3 days
* Allow RFCOMM servers to bind to a ''wildcard'' RFCOMM channelemax2007-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
* Return EADDRNOTAVAIL instead of EDESTADDRREQ error whenemax2007-08-232-2/+2
| | | | | | | | listen(2) is called on improperly bound socket. Suggested by: Iain Hibbert Approved by: re (kensmith) MFC after: 3 days
* Make ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.emax2007-08-134-188/+174
| | | | | | | | Reconnect ng_h(4) back to the build. Reviewed by: kensmith Approved by: re (kensmith) MFC after: 1 month
* Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.emax2007-07-101-1/+1
| | | | Approved by: re (rwatson)
* These modules depend on usb, make that explicitimp2007-06-232-0/+4
| | | | Approved by: re@
* Replace sosend() with direct call to .pru_send method on theemax2007-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
* Fix build problem caused by a set of typos.delphij2007-06-191-6/+6
| | | | | Reported by: tinderbox Approved by: re (mux)
* Finish removing usb_port.h compat macros.imp2007-06-182-26/+71
|
* Remove two more instances of the USBDEV() macro.ru2007-06-131-2/+2
|
* Catch up with USB cleanups and fix the worldemax2007-06-131-21/+15
|
OpenPOWER on IntegriCloud