John Baldwin
34a839f108
Don't throw away upper 32-bits of the HT MSI address window. In practice
...
this is harmless since the address window for MSI on x86 is in the lower
4 GB.
Submitted by: mav
MFC after: 1 week
2009-02-26 14:32:14 +00:00
Ed Schouten
1356a0807f
Remove unneeded variable assignment.
...
The ts variable is always initialized a few lines below.
Found by: LLVM scan-build
2009-02-26 12:02:38 +00:00
Robert Noland
23b90efbcf
The GM45 handles vblank differently. Pull the changes from Intel in.
...
MFC after: 2 Weeks
2009-02-25 20:24:13 +00:00
Robert Noland
cc27cbe330
Remove D_NEEDGIANT.
...
MFC after: 2 weeks
2009-02-25 18:56:49 +00:00
Robert Noland
bbc33a7d31
Turn on MSI if the card supports it. There is a blacklist for chips
...
which report that they are capable of MSI, but don't work correctly.
MFC after: 2 weeks
2009-02-25 18:54:35 +00:00
Robert Noland
5493c70e90
Prepare the radeon driver for MSI support.
...
MFC after: 2 weeks
2009-02-25 18:50:35 +00:00
Robert Noland
82369f9166
Add some vblank related debugging and replace the DRM_WAIT_ON macro
...
with a localized version.
MFC after: 2 weeks
2009-02-25 18:48:33 +00:00
Robert Noland
dc5c632deb
This was part of a sync to the code that Intel is shipping in linux.
...
- Remove the old TTM interface
- Move register definitions to i915_reg.h
- Overhaul the irq handler
MFC after: 2 weeks
2009-02-25 18:44:50 +00:00
Robert Noland
67f435f03e
The i915 driver was the only consumer of locked task support.
...
Now that it doesn't use it anymore, get right of the taskqueue
and locked task support.
MFC after: 2 weeks
2009-02-25 18:25:47 +00:00
Robert Noland
c148ca706e
The vblank_swap ioctl was fundamentally race prone. Get rid of it.
...
MFC after: 2 weeks
2009-02-25 18:22:57 +00:00
Robert Noland
a87b4f7293
There is no reason to hold the lock here.
...
When I was LOCK_PROFILING this was pretty high up and there is no
reason for it.
MFC after: 2 weeks
2009-02-25 18:19:16 +00:00
Robert Noland
4f02999996
Remove the PZERO priority from mtx_sleep.
...
MFC after: 2 weeks
2009-02-25 18:16:50 +00:00
Pyun YongHyeon
ec34372c0e
Update to latest 3Com firmware image. The latest fimware is
...
required to make 3CR990 familiy controllers run on NV flash
firmware version 03.001.008.
The latest firmware added HMAC digest information so teach txp(4)
to pass them to sleep image before downloading is started.
While I'm here restore previous IMR/IER register if firmware
downloading have failed.
PR: kern/89876, kern/132047
2009-02-25 01:12:56 +00:00
Roman Divacky
af83f5d77c
Change the functions to ANSI in those cases where it breaks promotion
...
to int rule. See ISO C Standard: SS6.7.5.3:15.
Approved by: kib (mentor)
Reviewed by: warner
Tested by: silence on -current
2009-02-24 18:09:31 +00:00
Ed Schouten
5d38a4d4f7
Also use proper capitalisation of FreeBSD in other source files.
...
Approved by: thompsa
2009-02-24 17:15:29 +00:00
Ed Schouten
4b0af1dacc
Use my address of the FreeBSD project in the copyright statement in USB2.
...
If I remember correctly, our policy was to use FreeBSD with proper
capitalisation in our email addresses. Fix this in Nick Hibma's address
as well.
2009-02-24 17:10:43 +00:00
Sam Leffler
92a0357875
fix typo's
2009-02-24 15:43:42 +00:00
Andrew Thompson
750a268260
MFp4 //depot/projects/usb@158015
...
Add support for the Sael M460 3G modem.
Submitted by: Hans Petter Selasky
2009-02-24 05:35:48 +00:00
Andrew Thompson
6c9cef576c
Fix compiler warning.
2009-02-24 04:16:19 +00:00
Andrew Thompson
f78fa6b67e
MFp4 //depot/projects/usb@157974
...
Add support for setting and getting the USB template value through libusb20 and
usbconfig.
Submitted by: Hans Petter Selasky
2009-02-24 03:43:05 +00:00
Andrew Thompson
e280503373
MFp4 //depot/projects/usb@157958
...
- We don't need to exit the Giant mutex when sleeping. This is done
automatically. Replace Giant by NULL mutex for all control requests in the
enumeration path.
- Optimise away duplicate alternate interface selection requests in USB Host
mode.
Submitted by: Hans Petter Selasky
2009-02-24 03:41:52 +00:00
Andrew Thompson
16589bea5b
MFp4 //depot/projects/usb@157909
...
Changes to make implementing USB NDIS easier.
Submitted by: Hans Petter Selasky
2009-02-24 03:40:48 +00:00
Andrew Thompson
4a35cda731
MFp4 //depot/projects/usb@157853
...
Clean up old way of polling the USB hardware. The existing polling support was
a bit hackish.
Submitted by: Hans Petter Selasky
2009-02-24 03:39:13 +00:00
Andrew Thompson
bce32d7bc4
MFp4 //depot/projects/usb@157847
...
Improvements to "usb2_transfer_setup()" and "usb2_transfer_unsetup()". Set
"ppxfer[n]" when the transfer setup is complete to prevent races. Remove
redundant NULL-checks from "usb2_transfer_unsetup()".
Submitted by: Hans Petter Selasky
2009-02-24 03:38:24 +00:00
Andrew Thompson
3e5e312a28
MFp4 //depot/projects/usb; 157814, 157863, 157868
...
- The software computed HID size is not always correct, because the algoritm
does not handle unsorted HID descriptors.
- Change the way we obtain the report ID.
- Use the X/Y/Z+button locations instead for report ID source for ums.
- Add more range checks.
- Remove Microsoft Mouse quirks. If the positions are moduloed the report
length multiplied by 8, the values seem correct.
- Some minor style changes.
Submitted by: Hans Petter Selasky
2009-02-24 03:34:05 +00:00
Sam Leffler
811b1001aa
move attach debug msg to the rf backend
2009-02-24 01:16:40 +00:00
Sam Leffler
44834ea4f7
Add PCIE power control api:
...
o add ah_configPCIE and ah_disablePCIE for drivers to configure PCIE
power save operation (modeled after ath9k, may need changes)
o add private state flag to indicate if device is PCIE (replaces private
hack in 5212 code)
o add serdes programming ini bits for 5416 and later parts and setup
for each part (5416 and 9160 logic hand-crafted from existing routines);
5212 remains open-coded but is now hooked in via ah_configPCIE
o add PCIE workaround gunk
o add ar5416AttachPCIE for iodomatic code used by 5416 and later parts
2009-02-24 01:07:06 +00:00
Sam Leffler
40ce424605
Fill in gpio support for 5416 and later parts:
...
o add output mux support
o gpio pin count is chip-dependent
o 9280 and 9285 do input handling different
o hookup gpio interrupts
o no need to save/restore soft led state around reset
2009-02-24 00:33:08 +00:00
Sam Leffler
a0a2aa7916
misc fixups, mostly for code not compiled yet
2009-02-24 00:29:32 +00:00
Sam Leffler
869ff02ebe
5416 and later parts mux the gpio outputs; extend the api to include
...
a signal type that's used to select the appropriate mux
2009-02-24 00:12:16 +00:00
Sam Leffler
f396f37ed1
move eeprom attach above first reset as the reset code checks the
...
eeprom contents for 9280 and later parts
2009-02-24 00:03:14 +00:00
Sam Leffler
d61d829fd6
attach methods don't need to be public, make 'em static
2009-02-23 23:58:37 +00:00
Sam Leffler
3f1c613044
5416 and later parts get the radio rev differently; add ar5416GetRadioRev
...
to do it the right way
2009-02-23 23:54:08 +00:00
Sam Leffler
0f5578c15d
remove private copies of gpio methods that were needed when the hal
...
was an independent entity
2009-02-23 23:48:17 +00:00
Andrew Thompson
96ca458f65
Make sure at least two tx slots are free before sending the mbuf since an
...
additional frame may be sent for 80211 protection.
2009-02-23 23:46:56 +00:00
Sam Leffler
498657cff2
print mac+rf part names; drop the printing 2ghz rf stuff (might come back)
2009-02-23 23:41:12 +00:00
Alexander Motin
9738772d4e
Fix non-AHCI channels detection on combined JMicron controllers,
...
broken by r188694.
2009-02-23 22:13:05 +00:00
Andrew Thompson
3a3f90c6c3
Move the uaudio and ata-usb drivers into their correct locations.
2009-02-23 21:19:18 +00:00
Andrew Thompson
e02917222d
Move two missed usb drivers out to the graveyard location under sys/legacy/dev.
2009-02-23 21:07:20 +00:00
Andrew Thompson
d7e3163d8c
Reintroduce r188878, provide compat typedefs for usb1.
2009-02-23 19:06:47 +00:00
Andrew Thompson
02ac645488
Move the new USB stack into its new home.
2009-02-23 18:31:00 +00:00
Ed Maste
4824be888b
SVN rev 188743 modified aac_rx_get_fwstatus to use the AAC_RX_OMR0
...
register instead of AAC_RX_FWSTATUS, as that is the way it's done in
Adaptec's vendor driver and in the Linux drivers. (The same applies
to aac_rkt_get_fwstatus as well.)
However, a concern has been raised about the compatibility of this
change and old hardware / firmware versions. In the absense of
specific information, revert to the original behaviour if the firmware
does not support the "New comm." interface. Users of old cards or
firmware haven't reported the problems that are potentially solved by
switching to OMR0.
2009-02-23 18:22:06 +00:00
Andrew Thompson
3975e3a1ea
Move usb to a graveyard location under sys/legacy/dev, it is intended that the
...
new USB2 stack will fully replace this for 8.0.
Remove kernel modules, a subsequent commit will update conf/files. Unhook
usbdevs from the build.
2009-02-23 18:16:17 +00:00
Alexander Motin
3b80d8accb
Do not call devices probe/attach if there is nothing new was found.
2009-02-23 08:58:29 +00:00
Alexander Motin
43b4ee0925
Fix spelling.
...
Submitted by: gavin
2009-02-23 08:19:30 +00:00
Alexander Motin
aa4ba29b8d
Tune AHCI verbose messages to make log more readable.
2009-02-22 14:08:20 +00:00
Alexander Motin
6d4019d23a
Remove one more place of master/slave terms usage.
2009-02-22 10:26:02 +00:00
Alan Cox
b72cca38a6
Remove unnecessary page queues locking around vm_page_wakeup(). (This
...
change is applicable to RELENG_7 but not RELENG_6.)
MFC after: 1 week
2009-02-22 02:50:31 +00:00
Andrew Thompson
c7c94913bd
Use root_mount_hold and root_mount_rel to allow the USB bus to be explored
...
before trying to mount root. Unlike USB1 the busses are not explored at attach
but rather after threads are running.
2009-02-22 01:02:25 +00:00
Alexander Motin
e412a8c3b5
Use only higher half of device signature to identify device type. Some
...
devices return incorrect values in lower part confusing detection, while
higher part itself gives enough information for proper detetion.
2009-02-21 23:46:34 +00:00