Commit Graph

5627 Commits

Author SHA1 Message Date
sketch 5f4b89c72b Match recent addition as a STAC9200. 2007-05-10 07:48:16 +00:00
sketch aeb96b4230 Update previous to match what the author probably meant to do. 2007-05-10 07:34:59 +00:00
kent d32678c2dd Support for headphone-sensing for DELL Inspiron 6400.
PR#36302 by Aleksej Saushev
2007-05-10 05:44:37 +00:00
garbled d6ba347731 Add a missing brace in cztty_receive inside a ifdef HOSTRAMCODE. This
would randomly cause internal compiler errors while compiling pmppc.
2007-05-08 17:27:37 +00:00
kent ec3dff2790 fix a typo: PRESENSE -> PRESENCE
From deanna@OpenBSD
2007-05-08 05:18:20 +00:00
kent fea2165faf - fix incorrect codec name of STAC9200
- support for headphone-sensing in some DELL machines with STAC9200

From azalia_codec.c rev.1.19 by deanna@OpenBSD
2007-05-08 05:03:50 +00:00
kent cdc3ad42b2 * azalia_code_connect_stream()
set stream#0 for unused converters in a group

PR#35658 by kikuma norimitsu
2007-05-08 04:35:37 +00:00
kent 1aa70e7d65 Some codecs need explicit initialization even for uni-directional pins.
Pointed out by Deanna Phillips
2007-05-08 01:39:33 +00:00
bouyer d6908bb21a Regen: added JMicron Technology products 2007-05-02 21:29:16 +00:00
bouyer f17d74cec5 Add JMicron Technology vendor ID, and their current PCIe SATA/PATA
controllers.
2007-05-02 21:28:28 +00:00
simonb 815c7faa9e Restore $NetBSD$ tag. 2007-04-30 01:26:35 +00:00
bouyer 4b495bb053 Add support for ICH8 (i82801H) LAN, from FreeBSD.
Should work on:
i82801H IFE (GT) LAN Controller
i82801H IFE (G) LAN Controller
i82801H (M_AMT) LAN Controller
i82801H (AMT) LAN Controller
i82801H LAN Controller
i82801H (IFE) LAN Controller
i82801H (M) LAN Controller

tested with: Intel i82801H (AMT) LAN Controller, rev. 2
2007-04-29 20:35:21 +00:00
bouyer 56c3c4a3c0 Regen: remove extra "Intel" from previous commit. 2007-04-29 20:35:02 +00:00
bouyer 3f28ce9e00 Remove extra "Intel" from previous commit 2007-04-29 20:33:22 +00:00
bouyer 91dbb3bbf7 Regen: add Intel i82801H IFE G/GT LAN Controller 2007-04-29 20:31:23 +00:00
bouyer a9e36fb20c Add:
Intel i82801H IFE (GT) LAN Controller
Intel i82801H IFE (G) LAN Controller
from FreeBSD
2007-04-29 20:29:53 +00:00
msaitoh 8ce1f4fff2 fix typos 2007-04-29 20:23:34 +00:00
garbled 3dc01edf82 Remove the PCIIDE_SLIDE_SETIRQA hack. Recent revalations have uncovered
the fact that it's useless.
2007-04-26 19:47:03 +00:00
joerg 18436a60ed Fix a NULL reference on failing mbuf allocation.
In bge_start return if IFF_OACTIVE is set in combination with
IFF_RUNNING, drop obscure check for length of interface queue.
Remove message about failing bge_encap, it can happen just too easily
because of full descriptor rings.
2007-04-25 21:12:48 +00:00
dyoung 32cd652c48 Cosmetic: fix whitespace, join two lines, remove extraneous #includes.
#Define a bitmask using __BITS() instead of a hex constant, for
easy comparison with paper documentation.
2007-04-17 21:50:31 +00:00
dyoung e3c53bf4c1 Add prototype for ath_pci_detach(). Alphabetize prototypes.
Extract the code for disabling PCI retries, creating ath_disable_retry(),
and call it both during device initialization and on ->PWR_RESUME
transitions.  Comment out the code in ath_disable_retry() for now,
because it is not clear what problem it solves, if any.

Set a reasonable PCI Latency Timer.  Apparently, it is too much to
ask any BIOS to do.  The PCI framework ought to set latency timers,
instead of individual drivers setting latency timers.
2007-04-17 21:48:07 +00:00
tron 7899b34c32 Add support for Broadcom BCM5753 and Broadcom BCM5753M Gigabit Ethernet.
Patch supplied by Mustafa Dogan in PR kern/36139, confirmed to work
by Tonnerre Lombard on #NetBSD IRC channel.
2007-04-16 10:08:33 +00:00
macallan df0a99cbb2 fix a typo 2007-04-11 04:48:31 +00:00
bouyer 1fde203078 Fix build on 32bit ports; should fix GENERIC_DIAGNOSTIC build problem reported
by Hisashi T Fujinaka on current-users.
2007-04-10 12:18:26 +00:00
macallan 13daabb045 move genfb's PCI frontend to dev/pci 2007-04-10 02:16:47 +00:00
macallan 4ab018673b turn the other 'void region' message into aprint_debug() as well 2007-04-10 00:11:21 +00:00
macallan 2a048288e1 demote 'pci_io_find: void region' to aprint_debug() 2007-04-10 00:05:16 +00:00
bouyer 0c0eb2bdf5 RX buffers are malloced memory of 9216 bytes. This can require from 1 to
4 DMA memory segments, depending on how the buffer is in memory.
When receiving a packet, we allocate a new one to remplace the one we've
used. It can need more segments than the one it remplace, leading to
corrution of the RX descriptors, and a panic in bus_dmamap_sync() (DIAGNOSTIC
kernels) or possibly memory corruption.

Fix:
- bnx_get_buf() allocates as many buffer as possible, checking the number
  of free RX descriptors. Because one receive buffer is not guaranteed to
  be remplaced on receive, call bnx_get_buf() from bnx_tick() too.
  This also improve error handling from bnx_get_buf().
- use MCLGET() instead of MEXTMALLOC() if we're running with the standard
  ethernet MTU. This gives us more receive buffers and waste less memory.
2007-04-09 19:34:50 +00:00
bouyer a17f6ef0b7 Protect bnx_tick() with splnet.
Bring in fixes and improvements from OpenBSD:
revision 1.25
- Simplify the arguments to bnx_tx_encap.
- Don't copy the bd_chain head pointers into temporary objects, they are
available globally.

From scottl@FreeBSD

revision 1.26
Overhaul the transmit path:
- Eliminate the bnx_dmamap_arg structure.
- Refactor the loop that fills the buffer descriptor so that it can be done
with a single set of logic in a single loop instead of two sets of logic.
- Eliminate the need to cache and pass descriptor indexes between the start
loop and the encap function.
- Change the start loop to always check the ifnet sendq for more work.

From scottl@FreeBSD

revision 1.27
make the exit label naming scheme match the current function names, removes
a FreeBSD-ism from the original driver.

revision 1.28 -> 1.30
- Ensure that at least 16 TX descriptors are kept unused in the ring.
- Use more complete error handling for TX load problems.

From scottl@FreeBSD

revision 1.31
replace a few more instances of hand rolled code with the LIST_FOREACH macro.

revision 1.33
In bnx_start, check the used_tx_bd count rather than the descriptors
mbuf pointer to see if the transmit ring is full.  The mbuf pointer
is set only in the last descriptor of a multi-descriptor packet.
By relying on the mbuf pointers of the earlier descriptors, the
driver would sometimes overwrite a descriptor belonging to a
packet that wasn't completed yet.  Also, tx_chain_prod wasn't
updated inside the loop, causing the wrong descriptor to be checked
after the first iteration.  The upshot of all this was the loss of
some transmitted packets at medium to high packet rates.

In bnx_tx_encap, remove a couple of old statements that shuffled
around the tx_mbuf_map pointers.  These now correspond 1-to-1 with
the transmit descriptors, and they are not supposed to be changed.

Correct a couple of inaccurate comments.

From jdp@FreeBSD

revision 1.43
Allow the bnx(4) driver to make use of all of the available hardware
multicast hash slots. The bnx(4) hardware supports 8 slots instead of
4 like the bge(4) hardware.

From Mike Karels via FreeBSD

Tested by Brad, biorn@ and Johan M:son Lindman
2007-04-09 14:23:03 +00:00
rumble e0d3b63ac3 If we fail to attach, use the size determined by pci_mapreg_map() rather
than a constant, since this will be incorrect on some chips (MPI350) and
lead to a panic.
2007-04-06 18:16:29 +00:00
dillo 46009d7e0f Fix include paths. Now all drm drivers build. 2007-03-29 13:09:48 +00:00
jmcneill e741359891 Fix include paths, mgadrm compiles now. 2007-03-29 11:42:39 +00:00
jmcneill f99eecc8b2 Make this compatible with tdfxdrm. 2007-03-27 22:44:42 +00:00
jmcneill 1cd076928b Instead of having a lookup table of devices that support AGP V3, use the
capabilities register to determine the chipset's supported AGP mode. We
still fallback to V2 compatibility mode when necessary.
2007-03-27 20:57:46 +00:00
salo 1eaca7c5df fix typos in last, Eratta->Errata 2007-03-27 13:13:49 +00:00
pooka 92f2958999 regen 2007-03-27 12:42:31 +00:00
pooka 4823cfcfaf add GeForce Go 7600 2007-03-27 12:41:39 +00:00
msaitoh f727e5ef27 Workaround for 82541 Eratta 29 and 82547 Eratta 28.
These devices have to reset the PHY before reset the MAC.

Reported and tested by salo.
2007-03-27 01:56:41 +00:00
jmcneill 68557987f6 Add AGPv3 support to VIA AGP driver from FreeBSD.
I can now use DRI w/ AGP enabled on my r300.
2007-03-27 00:34:16 +00:00
garbled 4398c0d8cd The VT8237A SATA Controller uses chip_map_7, not 0, tested and confirmed
working on my machine.  Also when a via controller is set to RAID mode,
it sets the pci_subclass to raid.  Notice this and set ATAC_CAP_RAID.
2007-03-27 00:04:04 +00:00
hubertf 9446dc7bf8 Remove duplicate include of <sys/agpio.h>
From: Slava Semushin <php-coder@altlinux.ru>
2007-03-26 22:42:39 +00:00
macallan 60cbbfdc51 add very experimental Apple UniNorth AGP driver 2007-03-25 23:32:40 +00:00
macallan 7325f7959a very experimental Apple UniNorth AGP support 2007-03-25 23:31:51 +00:00
isaki f6b15a715e Regen; ATI ES1000. 2007-03-25 06:42:20 +00:00
isaki 4185e7fad0 Add ATI ES1000. 2007-03-25 06:41:30 +00:00
christos bf9f72425e comment out unmap; breaks X. 2007-03-24 23:02:24 +00:00
jmcneill 04a1167b6f Fix header locations for NetBSD. 2007-03-24 20:33:08 +00:00
jmcneill 881e272543 Include dev/pci/drm/files.pcidrm 2007-03-24 15:04:43 +00:00
jmcneill 80411c1546 Separate DRM files from files.pci 2007-03-24 15:04:10 +00:00
jmcneill e6e6c988b3 Allow viadrm to attach to unichromefb 2007-03-23 22:17:52 +00:00
jmcneill e44f79d0d5 Make unichromefb(4) peacefully co-exist with viadrm(4).
Basically, when we switch from WSDISPLAYIO_MODE_EMUL to anything else, we
release any bus_space resources. When we return to WSDISPLAYIO_MODE_EMUL,
reclaim these resources and reinitialize the display.

Idea from macallan@
2007-03-23 22:17:30 +00:00
drochner ca93d5d12d simplify previous: no need to call pci_mapreg_info() 2007-03-23 16:39:07 +00:00
jmcneill 046c275369 Initialize mmadrsize in the non-i910 case, otherwise we end up passing an
uninitialized variable to bus_space_unmap.
2007-03-23 16:27:59 +00:00
jmcneill aeb34d786e Add viadrm 2007-03-23 15:00:38 +00:00
jmcneill c36fda54e9 Import viadrm(4) from DRI git. 2007-03-23 14:58:55 +00:00
jmcneill 3b4d961fa2 Re-enable writeback test (shouldn't have been disabled in the first place) 2007-03-22 15:17:59 +00:00
jmcneill 846be51501 Pull up misc radeon bug fixes from DRI. 2007-03-22 01:36:42 +00:00
jmcneill 48e45911b6 printk -> printf 2007-03-21 22:44:28 +00:00
macallan 1c4c684256 try to attach a drm 2007-03-21 20:54:30 +00:00
macallan fd3677f42a defflag RADEONFB_DEBUG and MACHFB_DEBUG, pull in drm for both, pull in edid
for machfb
2007-03-21 20:52:41 +00:00
macallan 62ee0604ec use EDID data passed as property when present
This should allow radeonfb to do The Right Thing on Macs that use non-
standard video timings and have built-in monitors that don't provide data
via DDC since those usually have an EDID block in the OF tree.
2007-03-21 20:48:07 +00:00
isaki ff418f03d1 Fix mis-substitution of RCS Id, and avoid it.
Reviewed by wiz@.
2007-03-21 15:02:08 +00:00
tsutsui 19daf5ad0b Cleanup handling of quikrs on each RealTek chip:
- replace rtk_type member in rtk_softc which has chip types
  with new rtk_quirk that represents quirks on each chip:
  - RTKQ_8129           doesn't have internal MII (used in rtk(4))
  - RTKQ_8139CPLUS      has different register layout (for re(4))
  - RTKQ_8169NONS       (original 8169) requires some settings on init
  - RTKQ_PCIE           requires different settings in setmulti
  so that we don't have to check each hwrev values or types everywhere
  and newer variants will also work without changes if they don't
  have other quirks
  (sc_rev is unchenged for now for reference to the Realtek's driver)
- don't check hwrev register in re_pci_match() but check
  only PCI_VENDER(), PCI_PRODUCT() and PCI_REVISION()
  so that we no longer have to map pci space there
- add a new HWREV value for another 8168 variant
- try to map PCI mem space more properly
- remove (probably unneeded) ifp->if_baudrate initialization

Tested on a newer 8168 variant by Dennis den Brok on tech-kern,
and also tested on 8139 and 8169C on macppc, and 8139C+ on landisk
by me.
2007-03-21 12:17:31 +00:00
dan ce901237e7 teach bce(4) about being an rnd(4) source 2007-03-21 04:56:39 +00:00
macallan bbd6f83b09 fix a bunch of #include statements to make radeondrm and mach64drm compile 2007-03-20 22:12:14 +00:00
drochner 2d9e04fc35 Import DRM drivers, brought into shape by Yorick Hardy, posted to tech-x11.
Minor modifications by me:
-use an mi device major number
-(coarsly) divided into pci card specific and less specific parts, moved
 the latter to dev/drm
-renamed autoconf attributes to reflect this
Todo:
-adapt all card frontends but i915 to drm include file location
-review the mtrr change
-make the change to agp_i810.c coexist with the fix for buggy VESA
 BIOSes which is commented out temporarily
-RCS IDs etc style stuff
-LKM support (rescan support for vga)
-test
2007-03-20 18:05:25 +00:00
garbled 6f633e2b65 Put a small hack in slide.c disabled by default. PCIIDE_SLIDE_SETIRQA. This
sets IDE_IRQA in the IDE Control/Status Register.  This is needed on prep
machines with Motorola RAVEN host bridges, as they wire up the ide device
oddly.
2007-03-20 05:50:35 +00:00
kent 5deb14ad9d readable mixer item names for AD1981HD 2007-03-19 16:27:00 +00:00
kent 3e124ca34a don't make a mixer item for a power widget 2007-03-18 14:16:00 +00:00
kent 371c325530 correct the DAC group definition for AD1988.
reported by wiz
2007-03-18 11:49:21 +00:00
dyoung 2ee6d07aca Regen. 2007-03-17 06:44:31 +00:00
dyoung 67e99bd532 Add Infineon ADM5120 PCI host bridge. 2007-03-17 06:43:52 +00:00
msaitoh 9e2c46fe42 Apply if_msk.c rev. 1.4 to if_sk.c:
> Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"
 >
 > Original commit message:
 >  > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 >  > continuing when busy flag set.
2007-03-13 09:50:00 +00:00
msaitoh 5d9d95c736 KNF 2007-03-13 06:33:54 +00:00
kent b7fab1d1f2 * codec names for Realtek ALC262, ALC268, ALC861, ALC861-VD-GR,
ALC883, ALC885, and ALC888
* DAC/ADC group definitions for Realtek ALC861, ALC861-VD-GR,
  ALC883, ALC885, and ALC888
2007-03-11 15:42:00 +00:00
kent df732e91f1 don't start dmesg lines with \t to do grep easily 2007-03-11 14:34:04 +00:00
kent 88b9b15961 remove DPRINTF() in generic_mixer_init() because they are useless
in many cases.
2007-03-11 13:41:18 +00:00
kent d7d522ea80 - Add jack-sense code for STAC9220 in some DELL models (currently disabled)
- Add DAC/ADC grouping for AD1988
2007-03-11 13:34:40 +00:00
kent c88ac48ab9 reviced Intel Mac support code (currently disabled)
PR#34880
2007-03-11 13:31:36 +00:00
christos 5803d0dc86 regen 2007-03-10 21:08:47 +00:00
christos e8381a0776 PR/35970: Todd Kover: Add support for HP ML110 G2 / Adaptec 2610SA 2007-03-10 21:08:16 +00:00
kent 4540a56313 add diagnostic code in azalia_codec_construct_format() 2007-03-10 16:39:37 +00:00
itohy 691799bc9b I tried the test code in PR kern/35934 on PIIX4 and ICH6,
both of which turned out to have the problem.
Enabled (untested) workaround for all PIIX controllers.

XXX  Do other controllers also have this problem?
2007-03-10 06:01:43 +00:00
xtraeme 1aaad7d266 regen 2007-03-09 22:11:06 +00:00
xtraeme b2fab0eec1 +ATI Radeon X1300 2007-03-09 22:10:40 +00:00
xtraeme 27d2cb4e20 Use a mutex rather than lockmgr. Approved by Andrew Doran. 2007-03-06 01:09:42 +00:00
tsutsui b8149dbb15 Pass (char *) to mtod(9) for pointer arith
(in #ifndef __NO_STRICT_ALIGNMENT part).
2007-03-05 10:39:09 +00:00
tsutsui eeef1e87e4 Also check both I/O and memory space on unmap. Pointer out by yamt. 2007-03-05 10:32:05 +00:00
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
msaitoh 05a499893d add some msk devices 2007-01-30 11:31:40 +00:00
chs 3ce7bad4ba add some SIIG and Moxa cards. 2007-01-28 21:44:29 +00:00
chs 032ffbf873 regen 2007-01-28 21:39:34 +00:00
chs 9fdfbf5cd7 add another Realtek wifi, some SIIG serial cards and another nForce chipset.
remove some duplicate entries.
2007-01-28 21:39:04 +00:00
isaki 2b29641346 Regen. 2007-01-27 07:38:48 +00:00
isaki 83c786178e Fix typo. s/Seria ATA/Serial ATA/ 2007-01-27 07:37:31 +00:00
dyoung d5268f7ddd Fix grammar in comment. From Patrick Welche. 2007-01-26 02:27:29 +00:00
dyoung 6a0ae17676 Name magic numbers PCI_PMCSR_PME_EN and PCI_PMCSR. 2007-01-26 02:04:44 +00:00
dyoung c0206e6ab8 #Define PCI_PMCSR_PME_EN. 2007-01-26 02:04:09 +00:00
njoly a293da9ab4 Fix compilation on platforms where sizeof int/size_t differs.
Successfully tested on amd64.

ok by tron@
2007-01-25 21:17:38 +00:00
macallan f2fda6052d add some flags for chipsfb 2007-01-25 00:11:58 +00:00
skrll 65cd49f99e Pass the right pointer to firmware_free.
Fixes the DIAGNOSTIC panic reported by Sverre Froyen on current-users.
2007-01-23 15:02:50 +00:00
macallan 4aa2bfbc61 get rid of OpenFirmware dependencies, use device properties instead 2007-01-22 00:12:24 +00:00
isaki b98c498409 Add support for CS5536.
Reviewed by tsutsui@ on port-i386.
2007-01-21 05:00:34 +00:00
isaki 6a9b160f1f Regen; AMD Geode LX and CS5536. 2007-01-21 04:59:15 +00:00
isaki 5565c5789b Add AMD Geode LX and CS5536.
Reviewed by tsutsui@ on port-i386.
2007-01-21 04:57:50 +00:00
he ceeb812c89 Unify the declaration of OF_interpret() between sparc{,64} and macppc
by adding the "nargs" argument to the macppc version, and fix the macppc
ports uses of OF_interpret() accordingly.

Also move the declaration of OF_interpt() from macppc's autoconf.h to
ofw/openfirm.h.  This fixes the build of the macppc port.

Approved by macallan@.
2007-01-20 21:42:12 +00:00
xtraeme a4423f177a Updated viaenv(4) driver:
* Support for the VIA VT8231 Hardware monitor.
* Power Management Timer available for timecounters in both
  VT86C686A and VT8231 (code simplified thanks to dev/ic/acpipmtimer).
* Remove viapm(4) code and manpage (which was a link to viaenv.4 anyway).

From OpenBSD, tested by some users.
2007-01-20 18:44:26 +00:00
rpaulo c0759fd713 regen 2007-01-14 21:00:33 +00:00
rpaulo 60716f0e73 Add new Parallels video id. 2007-01-14 20:48:53 +00:00
cube c4a70d573e Not all archs have dma tags that can be compared with "==", so use memcmp
instead.
2007-01-13 19:03:49 +00:00
cube c27feae2a3 Make the logic of handling the options right. 2007-01-13 19:01:55 +00:00
cube 78cbf1e09d Work around false-positives for gcc's detection of use of uninitialised
variables.
2007-01-13 18:59:31 +00:00
cube 529a0e5bcd Complete initializer, and make it compile on (lesser?) archs that don't
have OpenFirmware.
2007-01-13 18:56:35 +00:00
cube 4cdd8aada6 Complete initializers so those files compile. 2007-01-13 18:42:45 +00:00
degroote b5fe9c67de Sync the wpi driver with the openbsd one. Thanks to Jean-Baptiste
Campesato for his work.
Fix PR/34463


ok dyoung@ joerg@
2007-01-13 09:39:06 +00:00
ober e142548f7b Update to compile properly.
OK jmcneill
2007-01-12 04:20:33 +00:00
kleink 2f0be7c423 Replace home-grown list management for DMA buffers with SLISTs, and refactor. 2007-01-12 00:47:51 +00:00
kleink 6f487a81b0 Replace home-grown list management for DMA buffers with SLISTs, and refactor. 2007-01-11 22:56:49 +00:00
cube d8f80d3bf5 Make it compile. 2007-01-10 20:36:28 +00:00
tsutsui e699b95246 Enable hardware checksum support by hardware info taken from FreeBSD.
Tested on nForce3 250 and nForce4 by Chuck Silvers, Cesar Catrian Carreno,
and me.
2007-01-09 10:29:27 +00:00
mlelstv f192518511 Make watchdog poll interrupts before re-initializing the chip.
Fixes kern/34834.
2007-01-07 12:57:20 +00:00
jmcneill a33eb10c0b Make sure that we don't use the amdpm timecounter on Xbox. 2007-01-06 20:25:01 +00:00
kent 52bad336b0 * generic_mixer_default()
make the default values of bidirectional pins `output' because
 they were often the main reason of no sound problems.

* add stac9221_mixer_init()
 It has a code for Intel Mac but it is disabled for now.
2007-01-06 18:35:35 +00:00
jmcneill 77b483b9f1 There is absolutely no way that this code could have worked for reading
values from the smbus before. amdpm_smbus_exec was using the values read
from the registers and using them as return values instead of filling in
the caller's buffer.
2007-01-06 02:16:22 +00:00
jmcneill 5c65159089 nForce uses a slightly different register offset for the smbus controls;
compensate for this.
2007-01-06 01:20:39 +00:00
jmcneill 87323934f6 Add nVidia nForce support, tested on Xbox. 2007-01-06 00:14:21 +00:00
jmcneill 0868d77b08 Sync with Xbox Host-PCI bridge name change. 2007-01-06 00:08:20 +00:00
jmcneill 246740d3d7 Regen. 2007-01-06 00:08:00 +00:00
jmcneill c9afab901a Add Xbox SMBus controller, and rename "Xbox nForce" to accurately reflect
that it is the Host-PCI controller.
2007-01-06 00:07:46 +00:00
msaitoh 9dc6590033 Apply OpenBSD's rev. 1.33 to shut up "msk0: phy write timed out"
Original commit message:
 > In msk_marv_miibus_writereg, wait for busy flag to clear instead of
 > continuing when busy flag set.
2007-01-05 09:23:41 +00:00
jmcneill d9c4129a70 A few changes to make this work on the Microsoft Xbox. Should also help
with other users who have been experiencing watchdog timeouts:
 * Mask all interrupts while servicing a tx or rx interrupt.
 * On init, clear IRQ status registers (workaround for buggy netbooters).
2007-01-05 01:33:57 +00:00
jmcneill 6f8fa49b5b Fix incorrect definition of wake-on-LAN magic number, from FreeBSD. 2007-01-05 01:26:52 +00:00
elad d5ebb97b46 Consistent usage of KAUTH_GENERIC_ISSUSER. 2007-01-04 18:44:45 +00:00
jmcneill 58b1e3f163 Regen. 2007-01-04 18:04:39 +00:00
jmcneill 1ed29612b0 It's nForce Ethernet, not Ethetnet 2007-01-04 18:04:26 +00:00
jmcneill 878f749ef4 Add quirk for Xbox nForce, from Andrew Gillham. 2007-01-04 15:47:25 +00:00
jmcneill d9ff124659 Regen. 2007-01-04 15:47:00 +00:00
jmcneill b0c92e7127 Add Xbox nForce video, from Andrew Gillham. 2007-01-04 15:46:33 +00:00
macallan 4fc284f481 add preliminary support for setting backlight levels via ioctl()
from Johan Wallen
2007-01-03 19:47:17 +00:00
bouyer 0eac5c0667 Fix cut'n'paste, don't print version 1.0 when we have a version 1.1 controller.
Pointed out by Craig Metz.
2007-01-03 18:58:26 +00:00
tsutsui 7c3bb7972d Pull a TX timeout fix from OpenBSD:
> Defer setting of the valid bit in the first TX descriptor after
> all descriptors have been setup.  Otherwise, hardware may start
> processing descriptors faster than us and crap out.
> Fixes "watchdog timeout" errors.
>
> Original idea from Matthew Dillon @DragonFly.
2007-01-01 04:13:25 +00:00
tsutsui 3b8f579381 Minor style fixes in nfe_attach:
- print PCI device name and revision
- print interrupt and Ethernet address like other devices

Before:
---
nfe0 at pci0 dev 5 function 0LKLN: Picked IRQ 20 with weight 1
: ioapic0 pin 20 (irq 9), address xx:xx:xx:xx:xx:xx

After:
---
nfe0 at pci0 dev 5 function 0: NVIDIA nForce3 ethernet #4 (rev. 0xa2)
LKLN: Picked IRQ 20 with weight 1
nfe0: interrupting at ioapic0 pin 20 (irq 9)
nfe0: Ethernet address xx:xx:xx:xx:xx:xx

(note "Picked IRQ" message is logged by aprint_verbose(9) in acpi(4))
2007-01-01 03:43:04 +00:00
ichiro 14ea0f7656 regen 2006-12-31 12:48:00 +00:00
ichiro 86aed9b2f4 add RCF-CBA2 CF-Adapter
(WORKBIT-CF32A)
2006-12-31 12:47:43 +00:00
alc 24803bd1c4 remove the KASSERT() introduced in last commit and use VLAN_OUTPUT_TAG() macro.
tested by martin@
pointed out and ok by pavel@, also ok from christos@
2006-12-27 18:36:09 +00:00
alc 9254207181 CID-3667: check if 'mtag != NULL' before dereferencing it 2006-12-25 23:58:36 +00:00
wiz 19c7b24184 Spell "schedule" correctly. From Zafer Aydogan. 2006-12-25 18:36:05 +00:00
rumble 6dc1b846a8 Make this compile again when KASSERT is enabled. 2006-12-24 19:15:15 +00:00
rumble b62466819b Revert the previous change and specify the appropriate page boundary to
bus_dmamap_create(9) via a proplib number entry.

Recommended by Izumi Tsutsui.
2006-12-24 01:49:45 +00:00
rumble 25e8e63c52 The Set Engineering GIO board for sgimips (IP22) sits behind a special
bridge that precludes the ThunderLAN's DMA engine from performing segment
transfers across page boundaries. Add logic under #ifdef TL_SETENG_GFE to
split up these segment transfers appropriately.

It's unknown whether this issue could also affect the RX path, though no
problems have been observed yet.
2006-12-23 21:24:32 +00:00
yamt 8bf7662829 merge yamt-splraiseipl branch.
- finish implementing splraiseipl (and makeiplcookie).
	  http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
	- complete workqueue(9) and fix its ipl problem, which is reported
	  to cause audio skipping.
	- fix netbt (at least compilation problems) for some ports.
	- fix PR/33218.
2006-12-21 15:55:21 +00:00