Commit Graph

19493 Commits

Author SHA1 Message Date
skrll
3b6e301485 Fix the handling of ENETRESET in iwi_ioctl.
This fixes PR 32143
2005-11-23 20:35:54 +00:00
skrll
d40d6be769 Correct a bpf tap. 2005-11-23 20:08:29 +00:00
riz
752c0a4023 Special-case the Linksys EG1032 cards using PCI subsystem ID; rev. 2 uses
the sk(4) driver, while rev. 3 needs re(4).

Mostly from brad@openbsd.
2005-11-23 18:56:22 +00:00
tron
019491bca2 Make this compile if UHID_DEBUG is not defined. 2005-11-23 10:03:56 +00:00
augustss
48164bddda If a mouse has both a wheel and a Z direction we report both.
XXX Due to tradition the wheel is reported as the Z direction (and the Z
direction as W).
Now Apple's Mighty Mouse is fully supported, except the X11 mouse driver
doesn't know what to do with the new coordinate.
2005-11-23 09:41:28 +00:00
augustss
5b71c2bf99 Some devices provide more than three (X, Y, and Z) "directions". So add
a W "coordinate" that can be used for these.
This changes the type of wsmouse_input().  To avoid changing a lot of drivers
a compatibilty #define is provided.  Maybe changing all drivers would have
been better?
2005-11-23 09:38:02 +00:00
augustss
f0b7793c4b Look for a wheel before looking for a Z dir. This makes Apple's
Mightymouse work.
2005-11-23 09:04:20 +00:00
augustss
cf1de1bda0 Normally a ugen device only attaches if no other driver wants the device.
Add the ability to force ugen to attach with very high priority if "flags 1"
is specified.  This can be used with the vendor and product locators to
force ugen to be used for certain devices.
Similarly, uhid only attaches if no other HID driver (ums or ukbd) wants it.
Again, "flags 1" will force uhid to attach anyway.
2005-11-23 08:54:47 +00:00
dyoung
63d8fb2cb6 Miscellaneous Realtek RTL8180L driver improvements:
1 Added new sysctl controls for debugging.

2 Improve detection & support for hardware WEP.

3 Revamp handling of transmit descriptor rings.

4 Reliably IFF_OACTIVE when transmit descriptors are available, to
  stop the transmit section of the driver from freezing up.

5 Fix beacon transmission in adhoc and hostap modes.  XXX There is
  a wart in hostap mode, where beacons are transmitted at 1/2 the
  correct rate.  Load beacon descriptors when the RTW_INTR_BINT
  interrupt arrives; schedule RTW_INTR_BINT 1ms ahead of the target
  beacon time.

6 Recover more gracefully from tx/rx errors: avoid
  transmitter/receiver/chip resets.  Try to re-synchronize software
  state with hardware state---e.g., load next descriptor pointer
  from hardware.

7 Activate the transmit watchdog timer for beacons as well as other
  packets.

8 Introduce rtw_idle() that waits for transmit DMA to finish; call
  it before resetting the transmitter.
2005-11-23 04:12:33 +00:00
dyoung
5e4572a5a8 Misc. bug fixes:
1 Reset both IFF_OACTIVE and the transmit watchdog timer in
  appropriate places to avoid both wedging the transmit section
  and spurious transmit timeouts.

2 Reset IFF_ALLMULTI at the top of atw_filter_setup so that the
  NIC will filter the multicast packets we are not interested in
  after we come out of promiscuous mode.

3 In atw_txdrain, count drained transmit descriptors to avoid
  descriptor exhaustion.
2005-11-23 01:11:23 +00:00
dyoung
4e254e89e9 Non-functional change: a missing '}' in an #ifdef __FreeBSD__
section confuses ctags(1), so I add the '}'.
2005-11-23 01:04:37 +00:00
rpaulo
8708c3d6c2 regen 2005-11-22 22:57:45 +00:00
rpaulo
eed63d4b44 Fix entry for TI FlashMedia Controller. 2005-11-22 22:55:30 +00:00
martin
17b12c5ad7 This driver does only access the bus_space_tag via bus_space_* functions,
so there is no need to map it linear. From Garrett D'Amore in
PR kern/32137.
2005-11-21 20:25:15 +00:00
augustss
4bc39eaf86 Make the unused ehci_dump() function non-static. 2005-11-21 10:15:41 +00:00
augustss
e49945ef23 Print an error message if we cannot located the legacy capability. 2005-11-20 18:44:56 +00:00
augustss
d801565e9b Make debug printout a little nicer. 2005-11-20 18:42:43 +00:00
augustss
8e55eef7c0 Add some definitions for the extended capability registers. 2005-11-20 18:36:20 +00:00
augustss
3fe79ce029 Go through the prescribed process to get ownership of the controller from
BIOS before we start using it.
This seems to fix the problems some people have been experiencing with
keyboards not working.
2005-11-20 14:46:23 +00:00
augustss
992297a008 Keep a flag for each port that keeps track of if the port has been reset
instead of having one flag for the controller.

Also, don't try to modify read-only power bits if the controller doesn't
support power cobntrol.
2005-11-20 14:27:25 +00:00
riz
8b1bf051e2 From FreeBSD (appropriate pieces of revs 1.90 and 1.92):
Only clear the IFF_OACTIVE flag when we have a chance of being able
to queue a packet to the hardware, instead of when the hardware queue
is empty, and fix up handling and prodding of the tx.

These fixes clear up an occasional "sk0: watchdog timeout" from the
on-board ethernet on my Asus A8V motherboard.

OK christos@
2005-11-19 21:45:50 +00:00
skrll
541652ce7b Adapt to new net80211(9).
Thanks to dan@ and Kouichirou Hiratsuka for testing.
2005-11-19 08:06:03 +00:00
bouyer
44453e12b8 Regen: save offset at disconnect after a data phase without save data pointer. 2005-11-18 23:11:38 +00:00
bouyer
98fae666e4 Some drives disconnect after the last data phase without a save data pointer
message. In such case we would not update resid with the proper value
(eventually resid would not be updated at all if there was only one data
phase). To fix this, have the script save the offset in the data tables at
disconnect time if there was a transfer, and use this to compute the resid
if the current offset is 0.
Problem reported and patch tested by edwin, Roy Bixler and YAMAMOTO Takashi.
Fix kern/31990 by YAMAMOTO Takashi.
2005-11-18 23:10:32 +00:00
rpaulo
4d1d9eb828 regen 2005-11-18 21:58:20 +00:00
rpaulo
7282bf0378 It's really PCI7x21/7x11 Cardbus Controller. 2005-11-18 21:55:13 +00:00
rpaulo
a1c9602de5 regen 2005-11-18 21:46:11 +00:00
rpaulo
924d40ef97 Add a bunch of devices:
o Intel 82801FBM ICH6M LPC Interface Bridge
    o Intel 82801FB/FR PCI Express Port #2
    o TI PCIxx21/x515 Cardbus Controller
    o TI PCI7x21/7x11 IEEE 1394 Host Controller
    o TI PCIxx11/21 Integrated FlashMedia Controller
2005-11-18 21:40:14 +00:00
skrll
302689559d Adapt drivers to the new net80211(9).
Most of this is from dyoung@. Thanks!
2005-11-18 16:53:56 +00:00
skrll
dc2bd8a8cf Resolve conflicts. 2005-11-18 16:48:31 +00:00
skrll
38d4ca67e5 Resolve conflicts. Changelog to follow. 2005-11-18 16:42:22 +00:00
hira
23426c5438 Regen. 2005-11-18 11:31:41 +00:00
hira
b05e6b060b Correct entry of vendor ID 0x0d8c. It's C-Media, not ABC.
Confirmed by augustss@.
2005-11-18 11:29:47 +00:00
hira
c9370bf9e5 Regen. 2005-11-17 18:12:59 +00:00
hira
8bc7a4c07b Correct product ID of Buffalo WLI-U2-KG54-AI. 2005-11-17 18:12:08 +00:00
bouyer
3506fa3a54 After a reset don't wait for drives to come ready if there's no drives.
Fix a 30s hang after resume. Problem reported and fix tested by Brian de Alwis.
2005-11-16 23:39:08 +00:00
jonathan
de85711ee1 Correct a performance bug from Bill Paul's original FreeBSD bge(4) driver:
Each call to the FreeBSD bge_start() routine the transmit producer
pointer index from the chip mailbox register BGE_MBX_TX_HOST_PROD0_LO.
The local copy of that value is then updated by bge_encap() as
bge_encap() encapsulates packets in the Tx ring. If bge_encap()
succeds in encpuslating one or more packets, bge_start() tells the
chip to start sending the newly-encinitiates writes the new value back
to the chip mailbox register.

However, comparison of the Linux drivers (Broadcom-supplied and
open-source tg3.c) and to the OpenSolaris driver confirms that
register BGE_MBX_TX_HOST_PROD0_LO is write-only to software.
Thus, we can just keep a copy in the softc, and eliminate the
(expensive) PCI register write on each call to bge_start().

``Make it so''.
2005-11-15 06:05:44 +00:00
augustss
88f620ab3d Make it possible to decide endianess dynamically. From port-evbmips/31912
by "Garrett D'Amore" <garrett_damore@tadpole.com>.
2005-11-14 13:40:23 +00:00
skrll
1f381351c3 Don't use DPRINTF for previous. Doh! 2005-11-14 12:07:33 +00:00
skrll
5349e12d67 Dump the error log if we get an IWI_INTR_FATAL_ERROR interrupt. 2005-11-14 11:58:52 +00:00
rpaulo
585daa639d Fix a long standing typo noticed by Alex Pivovarov on PR/32061.
When people use variables like 'flag' and 'flags' in the same function
(one local and one passed as a parameter) this is prone to happen..
2005-11-13 10:47:39 +00:00
macallan
0ea32fbae1 Add hardware cursor support, needs testing. 2005-11-12 23:25:46 +00:00
rpaulo
861d507d5b regen 2005-11-12 11:54:29 +00:00
rpaulo
645b6b622a Add ACPI Three-wire Device Bus. 2005-11-12 11:53:30 +00:00
simonb
a21c456e2e Call nanotime() directly, instead of doing the
microtime()/TIMEVAL_TO_TIMESPEC() dance.
2005-11-11 07:07:42 +00:00
kochi
ec63345182 regen. 2005-11-11 02:11:07 +00:00
kochi
2d0bb278d1 add HPET timer PNP ID.
reported in PR32040 by  Nicolas Joly
2005-11-11 02:10:09 +00:00
martin
a332f6615a Use mstohz() for timeout calculations.
Avoid local stack addresses as tsleep identifiers.
2005-11-10 21:25:35 +00:00
rpaulo
07c827131f regen 2005-11-10 13:31:03 +00:00
rpaulo
7928f127e6 Add NSC IrDA Fast Infrared Port. 2005-11-10 13:30:46 +00:00