Commit Graph

5389 Commits

Author SHA1 Message Date
sketch cbbf3374dd Put unformatted firmware version output behind IWI_DEBUG 2007-03-04 19:14:25 +00:00
chris 282f3bfbc1 Fix caddr_t fallout for cats kernel builds. 2007-03-04 17:55:10 +00:00
yamt 45cdcb0e37 fix fallout from caddr_t changes. 2007-03-04 15:59:31 +00:00
yamt f1f5a2d411 fix fallout from caddr_t changes. 2007-03-04 15:05:24 +00:00
christos 53524e44ef Kill caddr_t; there will be some MI fallout, but it will be fixed shortly. 2007-03-04 05:59:00 +00:00
jmcneill 963e8dd8ad Regen. 2007-03-03 23:50:40 +00:00
jmcneill edfe9e885a Add pcHDTV HD-5500 HDTV video capture 2007-03-03 23:49:49 +00:00
tsutsui 5c8caf9e94 Add an entry to match hwrev RTK_HWREV_8100E_SPIN2 too.
XXX: should we use PCI_REVISION() rather than hwrev
     for 8139C+ as OpenBSD does?
2007-03-03 17:23:12 +00:00
jmcneill 7f8a6c2923 Regen. 2007-03-01 22:15:08 +00:00
jmcneill b792a5796f Add Conexant CX2388X Audio/Video Decoder 2007-03-01 22:14:48 +00:00
tsutsui a111aec3cd Apply patches which may fix RX stall problem on nfe(4):
- make DMA descriptors volatile to avoid possible unintended reordering
  which might cause some race conditions
- process interrupts until all NFE_IRQ_WANTED bits are handled

and also put misc fixes:
- return 1 and call nfe_start() in nfe_intr() only if any own interrupts
  are actually handled
- use bus_dmamap_load_mbuf(9) for RX mbufs rather than bus_dmamap_load(9)
  with mtod(9) and MCLBYTES
- check sc->txq.queued to see if TX descriptors are queued or handled
  in nfe_start() and nfe_txeof()
- use proper BUS_DMASYNC_{PRE,POST} ops
- prepare and use NFE_[RT]X_NEXTDESC() macro
- rename NFE_TX_TCP_CSUM to NFE_TX_TCP_UDP_CSUM since it also enables
  hardware udp4csum-tx for UDP4 packets
- some minor optimization
- misc KNF

Tested and confirmed by matthew green by
"to send >25MB/sec to nfe0 for over one hour,"
and also tested by me (with light TRX load on 100baseTX though)
for a month.
2007-02-28 17:40:11 +00:00
tsutsui 075b18ca23 Try to map both PCI I/O and memory space and remove #ifdef RTK_USEIOSPACE.
Tested on dreamcast, landisk, and macppc with 8139C on PCI slot.
2007-02-25 04:19:32 +00:00
msaitoh 7db9e02335 fix media link issues with fiber-based card
fixes PR#35797
2007-02-23 08:22:06 +00:00
msaitoh f0a2eb28e5 fix some negotiation problems on wm(4).
will fix PR#30078, PR#30490, PR#30906, PR#33429, PR#35386.
2007-02-23 03:03:10 +00:00
thorpej dd962f8680 Pick up some additional files that were missed before due to conflicts
with newlock2 merge:

Replace the Mach-derived boolean_t type with the C99 bool type.  A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 23:48:10 +00:00
thorpej 712239e366 Replace the Mach-derived boolean_t type with the C99 bool type. A
future commit will replace use of TRUE and FALSE with true and false.
2007-02-21 22:59:35 +00:00
mrg 4410329b87 add a pair of new bus_dma(9) functions:
int _bus_dmatag_subregion(bus_dma_tag_t tag,
				  bus_addr_t min_addr,
				  bus_addr_t max_addr,
				  bus_dma_tag_t *newtag,
				  int flags)
	void _bus_dmatag_destroy(bus_dma_tag_t tag)

that allow a (normally broken/limited) device to restrict the bus address
range it can talk to.  this is used by bce(4) to limit DMA addresses to
1GB range, the maximum the chip can address.

all this is from Yorick Hardy <yhardy@uj.ac.za> with input from several
people on tech-kern.

XXX: bus_dma(9) needs an update still.
2007-02-21 20:41:23 +00:00
bouyer 7054823d08 We have to bus_mapmap_load() after m_adj, otherwise the map will point at
the wrong place in the buffer. Fix an issue in the !sc->bge_rx_alignment_bug
case reported by Nicolas Joly.
While there remove a duplicate m_adj(), and add a missing bus_dmamap_unload().
2007-02-19 18:44:05 +00:00
xtraeme b821d47d37 There's no need to use a simple_lock here, ok ad@. 2007-02-18 23:32:52 +00:00
tsutsui 14dfb0043c - KNF, ANSIfy, TAB/space cleanup
- unwrap some lines
- u_intNN_t -> uintNN_t
2007-02-18 12:16:14 +00:00
dyoung 5493f188c7 KNF: de-__P, bzero -> memset, bcmp -> memcmp. Remove extraneous
parentheses in return statements.

Cosmetic: don't open-code TAILQ_FOREACH().

Cosmetic: change types of variables to avoid oodles of casts: in
   in6_src.c, avoid casts by changing several route_in6 pointers
   to struct route pointers.  Remove unnecessary casts to caddr_t
   elsewhere.

Pave the way for eliminating address family-specific route caches:
   soon, struct route will not embed a sockaddr, but it will hold
   a reference to an external sockaddr, instead.  We will set the
   destination sockaddr using rtcache_setdst().  (I created a stub
   for it, but it isn't used anywhere, yet.)  rtcache_free() will
   free the sockaddr.  I have extracted from rtcache_free() a helper
   subroutine, rtcache_clear().  rtcache_clear() will "forget" a
   cached route, but it will not forget the destination by releasing
   the sockaddr.  I use rtcache_clear() instead of rtcache_free()
   in rtcache_update(), because rtcache_update() is not supposed
   to forget the destination.

Constify:

   1 Introduce const accessor for route->ro_dst, rtcache_getdst().

   2 Constify the 'dst' argument to ifnet->if_output().  This
     led me to constify a lot of code called by output routines.

   3 Constify the sockaddr argument to protosw->pr_ctlinput.  This
     led me to constify a lot of code called by ctlinput routines.

   4 Introduce const macros for converting from a generic sockaddr
     to family-specific sockaddrs, e.g., sockaddr_in: satocsin6,
     satocsin, et cetera.
2007-02-17 22:34:07 +00:00
bouyer e42eed0328 bus_dma fixes for bge(4). It now works on amd64 with more than 4GB physical
RAM (jumbo frames untested yet).
2007-02-17 19:47:06 +00:00
njoly 1fdc51be7d Fix incorrect voltage sensors range. It was using 7 numbers, where the
driver support only 5 voltage sensors.

ok by xtraeme
2007-02-16 12:46:11 +00:00
markd 94de172517 regen for i965Q 2007-02-16 01:35:53 +00:00
markd 5ef1becf96 Add i965Q 2007-02-16 01:35:04 +00:00
bouyer c2d281f97e Fix 2 panics with DIAGNOSTIC kernels:
- remove the code to bring down the PHY in bnx_stop(), it's wrong
  (ifm_data isn't updated) and lead to a panic in mii_phy_setmedia(),
  or reading past the end mii_media_table[].
- make sure the dma_map matches the mbuf in the rx structures. We would
  sync/unload the wrong map, leading to a DIAGNOSTIC panic, or eventually
  leaking memory when bounce buffers are needed.
2007-02-15 19:24:47 +00:00
dsl cb94bcc573 Remove some ancient debugging leftovers left in by Michael Lorenz. 2007-02-10 12:22:26 +00:00
mlelstv 0689aa7931 Get the correct RCS-Id pulled in 2007-02-10 10:35:42 +00:00
mlelstv b773ba67f1 Add support for VT8237A/VT82C586A PCI-ISA-Bridge
Fixes PR kern/35314
2007-02-10 10:23:18 +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
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
jmcneill 9162d3ee05 Fix build failure for !XBOX, pointed out by Paul Goyette on current-users 2007-02-06 14:39:47 +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 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
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 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
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 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
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
msaitoh e7d9c07f9f sync with if_skreg.h rev. 1.41
need more work?
2007-01-30 11:42:06 +00:00
msaitoh 874e8bcee6 sync with OpenBSD-current (many bugfixes, add some devices)
if_msk.c: rev. 1.42
if_mskvar.h rev. 1.3
if_skreg.h rev. 1.41
2007-01-30 11:34:38 +00:00
msaitoh 0f1f665622 regen 2007-01-30 11:32:08 +00:00