Adrian Chadd
0818ec92ee
Be much more specific (and correct) about the device id matching.
...
These device IDs have an AR3012 bluetooth device that shows up with
bcdDevice=1 when it doesn't have the firmware loaded, and bcdDevice=2
when it's ready to speak full HCI.
Tested:
* AR5B225 PCIe - AR9485 + AR3012
2014-01-09 15:31:44 +00:00
Eitan Adler
c672165162
Add support for the BCM20702A0 chipset, ASUS USB-BT400.
...
PR: kern/181728
Submitted by: rakuco
2013-09-01 19:27:32 +00:00
Hans Petter Selasky
33f4aa115d
Sync USB bluetooth product list with Linux.
...
MFC after: 1 week
2013-08-31 06:47:53 +00:00
Craig Rodrigues
67272c5a55
PR: kern/168520
...
Revert GRN 253255. It is not needed now that GRN 253346 is committed.
2013-07-15 01:41:34 +00:00
Craig Rodrigues
71e6a9ce71
PR: kern/168520
...
Submitted by: "YAMAMOTO, Shigeru" <shigeru@iij.ad.jp>
Reviewed by: adrian
In PC-BSD 9.1, VIMAGE is enabled in the kernel config.
For laptops with Bluetooth capability, such as the HP Elitebook 8460p,
the kernel will panic upon bootup, because curthread->td_vnet
is not initialized.
Properly initialize curthread->td_vnet when initializing the Bluetooth stack.
This allows laptops such as the HP Elitebook 8460p laptop
to properly boot with VIMAGE kernels.
2013-07-12 08:03:10 +00:00
Adrian Chadd
c36c780d87
Add blacklist entries for Atheros bluetooth device IDs that are known to
...
need firmware before they will re-attach as correctly functioning bluetooth
devices.
Reviewed by: maksim
Obtained from: Linux ath3k device driver
2013-04-05 23:41:38 +00:00
Raphael Kubo da Costa
b42a2049f1
Use DEVMETHOD_END, as suggested by hselasky@.
...
Approved by: glebius
2012-12-26 19:14:21 +00:00
Raphael Kubo da Costa
ac76cdc670
Use the correct USB interface macros instead of USB_IF_CSI.
...
As pointed out by hselasky@, USB_IF_CSI is the wrong macro here since we want
to declare the device's interface class, subclass and protocol, not class,
subclass and driver info.
Follow-up to r244704.
PR: kern/174707
Approved by: glebius
MFC after: 1 week
2012-12-26 19:12:31 +00:00
Gleb Smirnoff
70a0e3403a
Add vendor IDs for Broadcom USB dongles (BCM20702).
...
PR: kern/174707
Submitted by: rakuco
2012-12-26 15:10:20 +00:00
Gleb Smirnoff
eb1b1807af
Mechanically substitute flags from historic mbuf allocator with
...
malloc(9) flags within sys.
Exceptions:
- sys/contrib not touched
- sys/mbuf.h edited manually
2012-12-05 08:04:20 +00:00
Hans Petter Selasky
12b16d85ae
The USB Bluetooth driver should only grab its own interfaces. This allows the
...
USB bluetooth driver to co-exist with other USB device classes and drivers.
Reported by: Geoffrey Levand
MFC after: 1 week
2012-09-30 19:31:20 +00:00
Hans Petter Selasky
6d917491f5
Fix compiler warnings, mostly signed issues,
...
when USB modules are compiled with WARNS=9.
MFC after: 1 weeks
2012-04-02 10:50:42 +00:00
Hans Petter Selasky
f1a16106b6
- Move all USB device ID arrays into so-called sections,
...
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
2011-06-24 02:30:02 +00:00
Andriy Gapon
a5db8fd19e
usb: fix a missed use of use_generic in r222051
...
Submitted by: gcooper
Pointyhat to: avg
MFC after: 1 month
X-MFC with: r222051
2011-05-18 11:38:36 +00:00
John Baldwin
58ccf5b41c
Remove unneeded includes of <sys/linker_set.h>. Other headers that use
...
it internally contain nested includes.
Reviewed by: bde
2011-01-11 13:59:06 +00:00
Andrew Thompson
8f9e0ef947
Fix a typeo in the frame len function to unbreak the build, make it shorter
...
while I am here.
2009-06-23 06:00:31 +00:00
Andrew Thompson
ed6d949afd
- Make struct usb_xfer opaque so that drivers can not access the internals
...
- Reduce the number of headers needed for a usb driver, the common case is just usb.h and usbdi.h
2009-06-23 02:19:59 +00:00
Andrew Thompson
a593f6b8de
s/usb2_/usb_|usbd_/ on all function names for the USB stack.
2009-06-15 01:02:43 +00:00
Andrew Thompson
e0a69b51ac
s/usb2_/usb_/ on all typedefs for the USB stack.
2009-05-29 18:46:57 +00:00
Andrew Thompson
760bc48e7e
s/usb2_/usb_/ on all C structs for the USB stack.
2009-05-28 17:36:36 +00:00
Andrew Thompson
06079f1405
Hook ubt and ubtbcmfw back up to the build.
2009-05-27 16:43:40 +00:00
Andrew Thompson
84c5da4c4e
move ng_ubt_var.h back to its original place
2009-05-27 16:34:08 +00:00
Andrew Thompson
3671d9d810
move ng_ubt.c back to its original place
2009-05-27 16:33:08 +00:00
Andrew Thompson
d434bfe44a
move ubtbcmfw.c back to its original place
2009-05-27 16:32:05 +00:00
Andrew Thompson
31097ae267
Delete the bluetooth drivers for the old usb stack.
2009-05-27 16:29:56 +00:00
Ed Schouten
182e0e9ddc
Switch ubtbcmfw(4) to use si_drv1 instead of storing the unit number.
...
The unit number is still used to store the type of the device node.
Approved by: emax
2009-04-17 22:13:41 +00:00
Dag-Erling Smørgrav
1ede983cc9
Retire the MALLOC and FREE macros. They are an abomination unto style(9).
...
MFC after: 3 months
2008-10-23 15:53:51 +00:00
Maksim Yevmenkin
7469c6e5e4
Abort transfers on all pipes before closing them. This fixes the crash
...
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
2008-10-03 22:40:42 +00:00
Ed Schouten
6bfa9a2d66
Replace all calls to minor() with dev2unit().
...
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
2008-09-27 08:51:18 +00:00
Maksim Yevmenkin
a4d05859e7
Simplify ubt_isoc_in_complete2(). Also should fix off by 1 bug.
...
MFC after: 3 months
2008-07-29 00:17:53 +00:00
Maksim Yevmenkin
f0f78f3513
Dust off old code for support of USB isochronous transfers.
...
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
2008-07-11 17:13:43 +00:00
Maksim Yevmenkin
51713b2a7b
Make ng_h4(4) MPSAFE. Use similar to ng_tty(4) locking strategy.
...
Reconnect ng_h(4) back to the build.
Reviewed by: kensmith
Approved by: re (kensmith)
MFC after: 1 month
2007-08-13 17:19:28 +00:00
Maksim Yevmenkin
08b755600f
Mark ng_h4(4) as not MPSAFE and disconnect it from the build for now.
...
Approved by: re (rwatson)
2007-07-10 16:38:43 +00:00
Warner Losh
02fb1cf4b9
These modules depend on usb, make that explicit
...
Approved by: re@
2007-06-23 04:34:38 +00:00
Xin LI
8dac5046be
Fix build problem caused by a set of typos.
...
Reported by: tinderbox
Approved by: re (mux)
2007-06-19 14:56:35 +00:00
Warner Losh
38b00ba0cd
Finish removing usb_port.h compat macros.
2007-06-18 22:23:20 +00:00
Ruslan Ermilov
77764a595a
Remove two more instances of the USBDEV() macro.
2007-06-13 12:36:01 +00:00
Maksim Yevmenkin
8004e6ecc8
Catch up with USB cleanups and fix the world
2007-06-13 00:32:00 +00:00
Warner Losh
4f9929e80f
Eliminate usb_thread_t.
2007-06-12 17:30:54 +00:00
Warner Losh
645016c0e4
Expand USB_ATTACH_{ERROR,SUCCESS}_RETURN inline and eliminate from
...
usb_port.h. They aren't needed, and are a legacy of this code's past.
2007-06-12 15:37:19 +00:00
Warner Losh
387ecc9396
Expand USB_ATTACH_SETUP inline.
...
Kill devinfo stuff.
2007-06-09 06:53:27 +00:00
Paolo Pisati
ef544f6312
o break newbus api: add a new argument of type driver_filter_t to
...
bus_setup_intr()
o add an int return code to all fast handlers
o retire INTR_FAST/IH_FAST
For more info: http://docs.freebsd.org/cgi/getmsg.cgi?fetch=465712+0+current/freebsd-current
Reviewed by: many
Approved by: re@
2007-02-23 12:19:07 +00:00
Robert Watson
acd3428b7d
Sweep kernel replacing suser(9) calls with priv(9) calls, assigning
...
specific privilege names to a broad range of privileges. These may
require some future tweaking.
Sponsored by: nCircle Network Security, Inc.
Obtained from: TrustedBSD Project
Discussed on: arch@
Reviewed (at least in part) by: mlaier, jmg, pjd, bde, ceri,
Alex Lyashkov <umka at sevcity dot net>,
Skip Ford <skip dot ford at verizon dot net>,
Antoine Brodin <antoine dot brodin at laposte dot net>
2006-11-06 13:42:10 +00:00
Maksim Yevmenkin
0ff5b678c3
s/USBDEVNAME/device_get_nameunit/g
...
s/USBBASEDEVICE/device_t/g
2006-09-07 23:38:09 +00:00
Matt Jacob
d8c1647f2f
more usb fallout changes
2006-09-07 06:18:34 +00:00
Maksim Yevmenkin
df280cb596
Replace inb() and outb() with bus_space_read_1() and bus_space_write_1()
...
Submitted by: marius
MFC after: 1 week
2006-07-05 17:18:47 +00:00
Ruslan Ermilov
3238c6bd33
Fix -Wundef from compiling the amd64 LINT.
2005-12-04 10:06:06 +00:00
Maksim Yevmenkin
9460540740
Do not manually allocate/free device's softc structure.
...
Pointed by: jhb
Reviewed by: imp, jhb
2005-10-26 23:13:51 +00:00
John Baldwin
284b6708c4
- Use swi_remove() to teardown swi handlers rather than
...
intr_event_remove_handler().
- Remove tty: prefix from a couple of swi handler names.
2005-10-26 15:52:16 +00:00
Ruslan Ermilov
e110f39bf3
Catch up with new interrupt handling code.
2005-10-26 06:17:27 +00:00