Commit Graph

21724 Commits

Author SHA1 Message Date
tsutsui
83a47fa604 Pull a multicast fix from FreeBSD's if_re.c rev 1.81:
Fix rtk_setmulti() so that it works correctly for PCIe chips where
 the multicast hash table are in reverse order compared to older
 devices.

Closes PR kern/35579 from Nino Dehne.
2007-02-10 03:58:32 +00:00
tsutsui
b184e0b11b Fix botch on newlock2 merge. 2007-02-10 03:38:47 +00:00
ichiro
8c2cbf1a11 make tags for AX420N(NEC Infrontia) 2007-02-10 03:16:07 +00:00
ichiro
cbc9432f39 regen. 2007-02-10 03:14:56 +00:00
ichiro
2507232198 add AirH pcmcia modem.
NEC Infrontia AX420N
2007-02-10 03:14:03 +00:00
ad
b07ec3fc38 Merge newlock2 to head. 2007-02-09 21:55:00 +00:00
macallan
5c1aad3ad0 add a quirks entry for the DEC21140 found on UMAX E100 cards 2007-02-09 21:39:38 +00:00
macallan
94ed04fa15 don't hardcode inverted backlight levels needed on some macppc models 2007-02-09 21:12:00 +00:00
macallan
4909469d5d add a sysctl to turn off tapping to button event translation, same as in
ams
2007-02-09 21:07:37 +00:00
macallan
7044741d2d do a bus reset before looking for devices 2007-02-09 21:06:48 +00:00
ad
ab38c1f30e Add a quick hack to allow addressing over 2G sectors. XXX This driver
needs to be rewritten to use the scsipi layer. Additionally:

- Missing copyright years: 2000, 2001, 2002, 2003
- Missing attribution: Andrew Doran and Jason R. Thorpe
2007-02-08 18:47:21 +00:00
elad
d261ef686a Plug leak "that can never happen". 2007-02-08 04:22:27 +00:00
riz
35ed82b748 Add disk-info properties to ld(4), based on Jason Thorpe's similar
code in wd(4).

OK ad, cube
2007-02-08 03:19:42 +00:00
is
f059843a6c MosChip IrDA bridges 2007-02-07 10:30:19 +00:00
elad
f53a75d646 regen 2007-02-06 15:01:30 +00:00
jmcneill
9162d3ee05 Fix build failure for !XBOX, pointed out by Paul Goyette on current-users 2007-02-06 14:39:47 +00:00
elad
b5f35499b1 PR/35552: Yojiro UO: add new devices for rum(4)
Patch applied, thanks!

(needs regen)
2007-02-06 14:30:09 +00:00
jmcneill
d93606a8fe Missing LIST_INIT. Pointed out by uebayasi@ 2007-02-06 12:39:15 +00:00
jmcneill
7240bbf254 Another Xbox hack;
If we're handling system management interrupts ourselves, the system locks
solid when the ACPI timer SCI fires. Disable this interrupt so we can have
an uptime of more than ~10 minutes.
2007-02-06 02:07:36 +00:00
jmcneill
042d1598ba Remove debug printf accidentally added in last commit. 2007-02-05 23:56:13 +00:00
jmcneill
ff20668913 Disgusting Xbox hack;
The "pci0 dev 1 function 2" aka "System Management" on the nForce chipset
isn't detected on the Xbox. If XBOX is defined and arch_i386_is_xbox is
true, force intrline to 12 and map the system management IO space at
0x8000. We can now call iic_smbus_intr when a system management interrupt
takes place.

While we're here, make amdpm_smbus honour the I2C_F_POLL flag.

The Xbox no longer resets when you press the eject button.
2007-02-05 23:38:15 +00:00
jmcneill
02ad924a21 Register an SMBus interrupt handler to trap the reset on eject "feature"
on the Microsoft Xbox. Also print details on other system management type
events while we're here -- they may come in handy in the future.
2007-02-05 23:33:53 +00:00
jmcneill
be9836eac7 Allow i2c child devices to register interrupt handlers to the smbus host
controller. Both interrupt context and process context type handlers are
supported.
2007-02-05 23:31:37 +00:00
gdt
3a8d10addf Add Novatel Merlin, used in VZ V620.
From John Nielsen on freebsd-mobile.
Not tested, but almost certainly better than attaching as ugen.

FreeBSD has a UQ_ASSUME_CM_OVER_DATA quirk for this device; I can't
figure out what that means.
2007-02-05 15:13:28 +00:00
gdt
7d88c942e2 regen 2007-02-05 14:08:51 +00:00
gdt
8929326988 mark second novatel id as NOVATEL2 2007-02-05 14:08:16 +00:00
gdt
43c45b264c add second Novatel id, for CDMA chip as found in Verizon V620.
From John Nielsen on freebsd-mobile.
2007-02-05 14:05:48 +00:00
kent
5dd4ff1479 If both of AZALIA_DEBUG and AZALIA_DEBUG_DOT are defined,
a DOT file for Graphviz representing the widget structure
is printed.
2007-02-05 13:52:26 +00:00
dyoung
4620d7566c Cosmetic: KNF. In debug messages, use "%s: ...", __func__ idiom
to print subroutine names instead of hard-coding names.
2007-02-04 23:39:02 +00:00
dyoung
fa956bd2bd Fix a bug in Cardbus power activation.
Most Cardbus bridges supported by pccbb(4) fire a power-cycle
interrupt when the power state of a cardslot changes from 'off' to
'on'.  TI bridges fire a power-cycle interrupt on both on->off and
off->on changes.

When pccbb_power() powered-down a cardslot, it did not wait around
for the power-cycle interrupt.  When pccbb_power() powered-up a
cardslot, it did wait for the interrupt.  If a pccbb_power(UP)
followed a pccbb_power(DOWN) very closely, pccbb_power() used to
interpret the power-cycle interrupt for the up->down transition as
"power-up complete," read the power-state bit and, finding that
power had NOT been activated, complain, "cbb0:  power on failed?"
Then pccbb_power() exited before power-activation was complete,
falsely indicating that the power-activation *was* complete.  After
that, a driver attach/enable routine would blithely configure a
card that was not fully powered-up.  An operator who ran a command
such as 'ifconfig rtw0 down up' or 'ifconfig ath0 down up' would
read 'cbb0: power on failed?' in the system log, and their NIC
would misbehave.

This excerpt from a comment in the source should suffice to explain
how I fixed the bug,

        /*
         * Wait as long as 200ms for a power-cycle interrupt.  If
         * interrupts are enabled, but the socket has already
         * changed to the desired status, keep waiting for the
         * interrupt.  "Consuming" the interrupt in this way keeps
         * the interrupt from prematurely waking some subsequent
         * pccbb_power call.

And this explains why this patch will work for Ricoh bridges that
do not fire an interrupt on the on->off transition:

         * XXX Not every bridge interrupts on the ->OFF transition.
         * XXX That's ok, we will time-out after 200ms.
         *
         * XXX The power cycle event will never happen when attaching
         * XXX a 16-bit card.  That's ok, we will time-out after
         * XXX 200ms.
         */

M. Warner Losh and Charles M. Hannum provided valuable input on
this patch.
2007-02-04 21:04:37 +00:00
dyoung
dc52954598 sc_pwrcycle is shared between the interrupt handler and Cardbus
event thread, so make it volatile.
2007-02-04 20:52:13 +00:00
tsutsui
f4797e0850 Accept RX packets which are larger than ETHER_MAX_LEN but can be stored
into RX mbufs. Inspired by OpenBSD.
2007-02-04 06:01:30 +00:00
dyoung
954e7e37ab Cosmetic: KNF indentation, curly braces, and argument declarations. 2007-02-04 05:34:38 +00:00
dyoung
441215d99b Convert the rather long and backslash-ridden DELAY_MS macro to a
much shorter static subroutine, delay_ms().
2007-02-04 05:08:18 +00:00
dyoung
b39ec50ca6 Use the right subroutine name for the debug message. 2007-02-04 04:59:39 +00:00
tsutsui
59ea1d1768 - check more hwrev and use HWREV_* macro. From Realtek driver
via Darrin B.Jewell.
  XXX: maybe we should check this sc_rev on more place
- use RTK_TXCFG_HWREV (0x7cc00000) rather than 0x7c800000
  to mask the hwrev value since bit 0x00400000 is used only by 8139D
  which is not supported by this driver
- fix a tyop
2007-02-04 04:49:58 +00:00
tsutsui
15a85916ca Add another 8100E HWREV number. From Realtek driver and Plan9 driver. 2007-02-04 04:41:43 +00:00
tsutsui
2f113b8e35 Add an 8169SC variant to re_devs. From Darrin B.Jewell. 2007-02-04 04:39:38 +00:00
tsutsui
befdfe9762 Try to map both PCI I/O and memory space. 2007-02-04 03:20:23 +00:00
is
390a01e1f0 Only the SigmaTel 4220 is _very_ fast 2007-02-02 09:39:24 +00:00
ober
5c470843ae Updates to allow Zaurus screen to rotate 90 degrees to a usable state with the keyboard. Patch from peter@ copied from OpenBSD. Feedback and OK from matt@ 2007-02-02 02:10:24 +00:00
msaitoh
053d47d1f3 add an entry for Willcom WS002IN PHS device(Prolific Technology PL2303X).
PR#35512
2007-01-31 10:11:50 +00:00
mjf
5b48fe33c5 PR kern/35527 - Patch applied, thanks! 2007-01-31 10:09:17 +00:00
msaitoh
597ba6f639 regen 2007-01-31 10:08:53 +00:00
msaitoh
b7e0d69761 add entries for Prolific Technology's PL2303X 2007-01-31 10:07:31 +00:00
skrll
84371f955a Regen for mjf. Linux didn't work for him. 2007-01-31 10:06:16 +00:00
mjf
bfb506d699 Add SHARP WS007SH USB device. 2007-01-31 10:00:03 +00:00
msaitoh
89a3deccf1 Apply OpenBSD's rev. 1.14 via patch:
> remove another Yukon Lite workaround.
2007-01-31 09:57:45 +00:00
msaitoh
b70c89dfa7 fix bit definitions for the RX FIFO Flush mode 2007-01-31 09:56:26 +00:00
msaitoh
1482d8eb6f apply some patches from FreeBSD
o fix device timeout
 o add some workaround
 o TX underrun bug (grr...)
 o and some bugs
2007-01-30 11:58:10 +00:00