Commit Graph

5627 Commits

Author SHA1 Message Date
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
bouyer 39568acf5e Add missing $NetBSD: $ 2006-12-20 21:44:06 +00:00
skrll be0d7b99e3 - Upgrade to the latest firmware and as a result remove the error log dump.
- Mostly sync with OpenBSD
	- Serialise sending commands to the firmware
	- Remove redundant calls to bpfdetach.
	- use bus_size_t where appropriate and not fetch iobase as it's not
	  used.
	- improve 802.11 radiotap support (correct rx rate)
	- add short preamble flag
	- add short slot time support
	- ignore parity errors (as per the Linux driver)
	- Set Tx power for all channels.
	- disable bluetooth co-existance
	- Check that ni->ni_rates.rs_nrates is not greater than the maximum
	  handled by the firmware.
- Begin syncing with the FreeBSD driver by renaming a few things.
2006-12-20 16:30:20 +00:00
kleink 4d3ac0366b Redo rev. 1.42, fixing the original array subscript pasto the right way. 2006-12-18 23:13:39 +00:00
christos f9a3a10e65 Don't cleanup memory mappings twice. From Blair Sadewitz 2006-12-18 12:01:48 +00:00
bouyer ea4f35dcd0 Add bnx(4), a driver for Broadcom NetXtreme II 10/100/1000 Ethernet device.
Ported from OpenBSD by cube@, with some bus_dma fixes by me.
Tested on i386 and amd64.
2006-12-17 23:02:06 +00:00
bouyer 462dc620e3 Add mfi(4), a driver for LSI Logic & Dell MegaRAID SAS RAID controller.
Ported from OpenBSD, tested on i386 and amd64.
2006-12-17 22:57:14 +00:00
christos f05c39985f explicitly set clk to 1 or 0. 2006-12-14 22:35:20 +00:00
kleink 94dd6117cd Un-break clock selection after -Wsign-compare cleanup in rev. 1.43;
from Stephen Ma in PR kern/35220.
2006-12-14 22:27:12 +00:00
macallan 65ea75bafa various minor fixes:
- avoid virtual resolution < physical resolution (Marco Trillo)
- don't use hardware-accelerated putchar() on R3xx
- clear screen when attaching wsdisplay
2006-12-13 00:19:01 +00:00
bouyer c2b954c80b Regen: another PCI id for Dell PERC 5 2006-12-10 23:44:08 +00:00
bouyer 637f604b17 Add another PCI ID for Dell PERC 5 (from OpenBSD) 2006-12-10 23:43:13 +00:00
uwe f9e1284353 Convert to use aprint_* 2006-12-10 05:14:42 +00:00
uwe d2a699ecf7 Print pci device info instead of "Power Management Controller". 2006-12-10 00:34:52 +00:00
manu 57cf012b11 Add support for 4 and 8 ports modem boards from Perle systems 2006-12-09 21:06:06 +00:00
bouyer 13e29fff26 Don't call the done callback twice if a special action is waiting on the queue.
Don't forget to free the xfer in the normal bio path.
2006-12-02 13:35:52 +00:00
elad 432c309931 Change kauth(9) KPI for kauth_authorize_device_passthru() to add another
argument, u_long, serving as a bit-mask of generic requests for the
passthru request.

Discussed on tech-security@ and tech-kern@. Okay tls@.
2006-12-02 03:10:42 +00:00
tsutsui be41c8c2ea Free resouces on failure in vge_allocmem(). 2006-12-01 11:30:55 +00:00
tsutsui af1ca0f86d - vge_probe() -> vge_match()
- KNF, unwrap lines
2006-12-01 11:06:59 +00:00
cube ffb2095341 Now that we have a AHCI driver (thanks a bunch, Manuel!), we can remove the
nonsense quirk that switched operating mode on ICH7 and ICH8.

I removed the obvious candidates for ahcisata(4), and I'll have a closer
look later if there are others to be removed;  ahcisata(4) will take over
handling the device anyway, but there is no reason to keep AHCI devices in
that list.

Along the way, remove the code that tries to put the chip in Enhanced mode,
it makes absolutely no sense to do that, and some BIOSes might not have
prepared the BARs for that, as proven by PR#34885.  If people want to use
all IDE and SATA channels, they have to tell the BIOS.
2006-12-01 10:31:30 +00:00
bouyer 7b4730a29f Add ahcisata(4), a driver for AHCI 1.0 and 1.1 controllers. Tested on the sata
ports of a Intel 63xxESB chipset. Does not support NCQ yet.
2006-11-30 21:01:15 +00:00
hannken 7d99324122 Enable WDC_CAPABILITY_WIDEREGS. With this change LBA48 operations no
longer wrap at 128GB.
Tested on an "ServerWorks HT-1000 SATA Controller (rev. 0x00)".

Approved by: Manuel Bouyer <bouyer@netbsd.org>
2006-11-30 19:32:37 +00:00
ad 8b4b54cb8d Improve error handling. Related to PR/21900. 2006-11-28 20:29:14 +00:00
christos 17a81bf4b3 PR/35146: George Michaelson: minor fix to let radeonfb.c compile 2006-11-28 13:38:39 +00:00
christos 0bc546e589 PR/35136: Gary Duzan: Enable Ultra/133 on newer aceride 2006-11-27 16:56:38 +00:00
tsutsui 48100f0649 Fix stupid bugs found on sparc64:
- checking if dmamap != NULL is not valid because dmamap is not cleared
  in bus_dmamap_unload(9)
- no need check RX mbufs and call m_freem() and bus_dmamap_unload()
  in vge_init() since it's done in prior vge_stop()

Now vge(4) works fine on Ultra5.
2006-11-26 16:11:51 +00:00
tsutsui 2b15bbad22 Include <sys/device.h> for struct device. 2006-11-26 15:40:14 +00:00
tsutsui 8c8ebe8b93 - prepare inline functions to set 48 bit DMA address which avoid 64 bit
arithmetic on ILP32 (sizeof(bus_addr_t) == 4, exactly) hosts
- prepare and use VGE_PREV_TXDESC() macro
- use VGE_[TR]XDESCSYNC() calls more efficiently
- wrap a sanity check against VGE_RDSTS_OWN in vge_newbuf()
  with #ifdef DIAGNOSTIC since it should not happen
- use sc->sc_tx_free (number of free TX descs) to check if TX packets are
  queued or sent
- call vge_start() only if the interupt is actually handled by this driver
- some misc cosmetics
2006-11-26 15:04:15 +00:00
tsutsui cd5182f737 Introduce a new VGE_RX_BUFSIZE macro which represent default RX mbuf
length and define VGE_RX_PAD (which is 4 bytes) for ETHER_ALIGN (2 bytes)
padding only in !__NO_STRICT_ALIGNMENT case to avoid confusion.
As per comments from Murata Shuuichirou in PR kern/31323.
Tested on i386 and macppc.
2006-11-26 13:09:32 +00:00
tsutsui 8632b7c3a3 Sync two alternative IDs with pcidevs. 2006-11-26 06:09:09 +00:00
tsutsui d4b56fbafe Regen from pcidevs rev 1.855:
> - add more Broadcom product IDs, and fix two alternative IDs
>   (from FreeBSD and OpenBSD)
> - sort by product ID
2006-11-26 06:07:48 +00:00
tsutsui 19ac8df8e6 - add more Broadcom product IDs, and fix two alternative IDs
(from FreeBSD and OpenBSD)
- sort by product ID
2006-11-26 06:06:20 +00:00
tsutsui ca6ff0c8b6 Fix a typo. 2006-11-26 05:58:05 +00:00
tsutsui c4d5f6498e Revert a CHIPID entry in the previous:
In OpenBSD's if_bgereg.h, CHIPID 0x4101000 is defined as BCM5750_B1
but our PR kern/31028 says it's BCM5751_A1 on BCM5751M on IBM T43p,
and the value seems reasonable.
2006-11-26 05:52:15 +00:00
tsutsui 3267e61df1 Add and fix some BGE_CHIPIDs. From FreeBSD and OpenBSD. 2006-11-26 04:00:45 +00:00
tsutsui 6498cd88c4 TAB/space cleanup. 2006-11-26 03:08:02 +00:00
tsutsui 5a3995e0ab Add support for BCM5752M. from Matt Kolb on tech-kern and OpenBSD. 2006-11-26 03:02:04 +00:00
tsutsui fc28f9749e Pull some bge_encap() fixes from OpenBSD:
> - Move TX ring full sanity check further up and check the number of DMA
> segments from the DMA map, instead of counting the DMA segments in the
> for loop and breaking out later.
> - Unload the DMA map if encountering an error condition.
2006-11-26 02:40:10 +00:00
tsutsui cc80189e88 make DMA descriptor members volatile. 2006-11-26 02:39:04 +00:00
enami a51f8d642d Match on board ethernet controller on VGN-TX72PZ. 2006-11-26 01:15:39 +00:00
enami b13cb14425 Regen. 2006-11-26 01:14:28 +00:00
enami ea431224c0 Add product id of yet another i82557 variant. 2006-11-26 01:13:48 +00:00
christos c0179c282a spell precede; from Zafer 2006-11-25 16:48:31 +00:00
tsutsui b7a2205885 BCM5701 B2 requires BGE_QUIRK_ONLY_PHY_1 quirk. From Brian Baird
in PR kern/23778.
2006-11-25 13:31:00 +00:00
wiz 09cb1d6f1c s/existance/existence/, from Zafer. 2006-11-24 22:52:16 +00:00
wiz 6919c6578c s/independant/independent/, from Zafer. 2006-11-24 22:04:21 +00:00
christos d8f5d5f044 fix capitalization of NetBSD; from Zapher 2006-11-24 19:38:55 +00:00
martin bed31b2f32 In preparation for gem @ sbus: split the GEM registers into two halfs
and provide a bus_space_handle_t for each. While there, fix a typo
in gem_bitwait().
2006-11-24 13:01:07 +00:00
yamt 809ec70bcf implement ipv6 TSO.
partly from Matthias Scheler.  tested by him.
2006-11-23 19:41:58 +00:00
uebayasi 25e0bf9073 Use C99 initializers where needed. 2006-11-22 01:54:09 +00:00
tsutsui b09d8d340a Rename re_pci_probe() -> re_pci_match(). 2006-11-18 15:58:50 +00:00
tsutsui b27339f35f Regen from pcidevs rev 1.853:
> Add an ID of Broadcom BCM5752M. From Matt Kolb on tech-kern.
2006-11-18 08:33:05 +00:00
tsutsui 78a69946d1 Add an ID of Broadcom BCM5752M. From Matt Kolb on tech-kern. 2006-11-18 08:32:08 +00:00
tsutsui d56fc00c0d - sync HWREV definitions with FreeBSD
- recognize 8169SC/8100E/8101E (untested, but won't hurt working devices)
  XXX: 8100E/8101E don't support 1000M; need some flag to set if_baudrate
2006-11-18 07:22:06 +00:00
tsutsui e24d6ea3f8 Regen from pcidevs rev 1.852:
> - add Realtek RTL8100 (from FreeBSD)
> - fix entry of RTL8169SC
> - remove vague comment in Realtek entry
2006-11-18 01:01:23 +00:00
tsutsui 917e45ce9f - add Realtek RTL8100 (from FreeBSD)
- fix entry of RTL8169SC
- remove vague comment in Realtek entry
2006-11-18 01:00:18 +00:00
tsutsui 60b7324743 Regen from pcidevs rev 1.851:
> Add and note more Realtek Ethernet chips.
2006-11-18 00:01:14 +00:00
tsutsui e3a0fc1942 Add and note more Realtek Ethernet chips. 2006-11-17 23:57:27 +00:00
yamt f93e215353 wm: add IPv6 rx tcp/udp checksum offloading. 2006-11-16 06:07:54 +00:00
yamt 6de2ee76e8 wm_tx_offload: in the case of "txtsopain",
m_copyback ip header to the correct offset.
2006-11-16 04:30:02 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
yamt ba0d5d1560 remove __unused from function parameters. 2006-11-15 10:30:17 +00:00
jdarrow 4f776e54e8 Fix typo (enaddr[3] should be enaddr[2]), and add note to comment,
both in VMware bug-workaround section.
2006-11-15 03:21:54 +00:00
xtraeme 58528a6767 regen 2006-11-13 22:03:20 +00:00
xtraeme 4eb9440ff5 Fix typo in previous (hi bouyer). 2006-11-13 22:02:58 +00:00
bouyer e530856a89 Regen: add NetMos 9855 Quad UART and 1284 Printer port 2006-11-13 20:12:10 +00:00
bouyer 5b3f17e412 Add NetMos 9855 Quad UART and 1284 Printer port 2006-11-13 20:11:10 +00:00
bouyer df1600e329 Properly detect if BAR5 is IO or MEM type; avoid a message about not being
able to map the BAR on boot (note that it's just cosmetic, the registers were
mapped anyway). Tested by paul at whooppee.com; thanks !
2006-11-12 22:42:20 +00:00
macallan f8fc7e5c07 remove some leftover #includes 2006-11-10 20:27:44 +00:00
tsutsui 492fddeb4a Print device revision on attach. 2006-11-09 14:59:55 +00:00
rpaulo 2313f534c1 regen 2006-11-08 21:03:35 +00:00
rpaulo 809c9d3540 Add AMD PCI-X IOAPIC. 2006-11-08 21:02:02 +00:00
drochner 3f8c6dc981 while we are here, also print the interrupt disable bit
in VERBOSE/pcictl
2006-11-08 18:44:16 +00:00
martti fc8a9d267d Regenerated. 2006-11-08 11:36:21 +00:00
martti 06061bc2fd Fix aligment. 2006-11-08 11:35:11 +00:00
martti 45ffbf91af List MEGARAID_SAS and MEGARAID_VERDE_ZCR as SYMBIOS products. 2006-11-08 11:32:45 +00:00
drochner 53056d0217 avoid magic number 2006-11-08 11:09:52 +00:00
elad 87d047b739 Replace securelevel checks with kauth(9) calls. 2006-11-08 00:17:09 +00:00
martti c99cfadbd6 Regenerated. 2006-11-07 09:34:37 +00:00
martti df5b06ab10 Added some MegaRAID SAS controllers. 2006-11-07 09:29:31 +00:00
tsutsui 527c7a697a Use uintNN_t. 2006-11-05 13:05:18 +00:00
tsutsui fb1f06475c Remove vtophys (in comment). 2006-11-04 05:54:53 +00:00
tsutsui f2a3a089d1 Rather than copying m_pkthdr.csum_flags in m_defrag() (which was
committed in rev 1.22), save it before calling m_defrag().

I haven't confirmed whether the m_pkthdr.csum_flags is preserved during
m_defrag(), but the previous way sometimes makes vge(4) chip mad...
2006-11-04 05:07:16 +00:00
tsutsui 5a460391d7 Return a proper error from vge_encap() if m_defrag() fails. 2006-11-04 04:40:00 +00:00
tsutsui da98d43bd0 Pull another 8139C+ fix from FreeBSD if_re.c rev 1.68:
Perform hardware diagnostic only on the original RTL8169,
which was the only device that really needed it.
(i.e. a possible hardware bug when the NIC was put on a 64bit PCI slot)

Tested with on-board 8139C+ by Brian A. Seklecki.

Note this change might also fix PR kern/34952
(because re_diag() is no longer called on 8169S/8110S),
but I'm not sure if the re(4) chip was properly initialized in such case.
2006-11-03 17:51:47 +00:00
abs 34133821e3 Regenerate after adding Broadcom BCM5754 (0x167a) 2006-11-03 13:00:09 +00:00
abs f9237faff1 Add Broadcom BCM5754 (0x167a) 2006-11-03 12:59:47 +00:00
tsutsui 690e60f366 Pull several fixes which improve TX error handling
from FreeBSD's if_vr.c rev 1.52:
- check more error status in TX descriptor and restart TX module
  appropriately in vr_txeof()
- check more error interrupt status in vr_intr()

I can't confirm whether these changes actually fix TX stalls because
I can't reproduce the problem I had about seven years ago (I guess
it might be caused by excessive collisions on a dumb hub), but at least
they don't seem to have bad side effects on normal operations on my macppc.
2006-11-03 08:41:05 +00:00
tsutsui c2d79bf895 Don't touch the VR_STICKHW register on VT3043.
The commit log in FreeBSD's if_vr.c rev 1.43 says
"This is really only for the VT6102, but it doesn't hurt the older chips,"
but at least it hurts my VT86C100A (which returns a product ID of VT3043)
on macppc and causes kernel MCHK trap while the same board on i386
and VT6102 on macppc have no problem with it.
2006-11-02 17:32:11 +00:00
tsutsui 7f2c078b18 Pull some RX fixes from FreeBSD's if_vr.c rev 1.59:
- in vr_rxeoc() (i.e. on RX error interrupts), disable RX before
  calling vr_rxeof() and check it actually stopped
- no recovery is needed for VR_ISR_DROPPED, so just account ierrors
- also account ierrors in vr_rxeoc()
2006-11-02 11:02:58 +00:00
tsutsui 06503d5611 - make DMA descriptor members volatile
- set VR_RXSTAT_OWN after all other descriptor data is set

With these changes, vr_init() seems to initialize
the vr chip stuck on RX properly.
2006-11-02 10:44:30 +00:00
tsutsui c04f54e8f4 Fix another botch in rev 1.14:
vge_encap() should bail out if there is not enough free
TX descriptor _OR_ TX descriptor is still owned by the chip.

Anyway, we already check if the TX descriptor already has an mbuf
to be sent in vge_start() so no need to bother to check sc_tx_free
and VGE_TDSTS_OWN in the descriptor in normal case, then make it use
KASSERT(9) or wrap with #ifdef DIAGNOSTIC.

XXX1: I don't know why original FreeBSD driver checks
      if a number of free TX descriptors is more than two, not zero.
XXX2: Is it better to check a number of free descriptors in vge_start()
      like other our drivers rather than mbuf chain for each descriptor?
2006-11-01 18:11:18 +00:00
tsutsui 2b93194cee Remove a debug statement which was slipped in rev 1.21. 2006-11-01 17:13:37 +00:00
tsutsui ced98add61 Also copy csum_flags and csum_data in vge_m_defrag().
Fix checksum error problem on sending fragmented large packets,
which was introduced in rev 1.14.

BTW, should we have m_defrag() in MI for other drivers?
2006-11-01 16:26:27 +00:00
thorpej 3cea1a3abd Detect if we're talking to a VMware virtual interface, and, if so,
limit the number of Tx segments to 8 to work around a VMware bug.
2006-11-01 06:42:12 +00:00
manu 888bf2baaa regen 2006-10-31 23:32:20 +00:00
manu 1bdd4dec3b Add support for Perle systems PCI-RAS 4 modem ports
See http://www.perle.com/products/Multimodem-Cards.shtml for product details
2006-10-31 23:04:49 +00:00
joerg de54b391eb Move AMRR code out of wpi(4) and ural(4) into net80211 itself.
From OpenBSD.
2006-10-31 21:53:41 +00:00
tsutsui e903fd730c This has been megered into if_vge.c. 2006-10-31 14:15:23 +00:00
tsutsui 056982dcb8 Make vge(4) look a NetBSD native driver like pcn(4) or epic(4) etc:
- merge if_vgevar.h into if_vge.c since no other file refers it
- rename some macro (VGE_TX_DESC_CNT -> VGE_NTXDESC etc.) and structs
- change prefixes of structure members to represent parents
- put TX and RX descriptors into single struct vge_control_data and
  allocate DMA memory at once
- no need to specify BUS_DMA_ALLOCNOW
- define appropriate macro for offsets and addresses of DMA descriptors
- define struct vge_txsoft and vge_rxsoft, and put common data for
  each descriptor into them
- remove struct vge_list_data and move its members into struct vge_softc
- remove #ifdef DEVICE_POLLING code we don't support
- merge vge_[tr]x_list_init() functions into vge_init()
- use aprint_error() to print errors
- put splnet(9) where appropriate and remove unused VGE_{LOCK,UNLOCK}() macro
- clear TX timeout only if there is no pending descriptor
- check dm_nsegs properly otherwise padding short packets could fail
- prepare zero'ed DMA memory to pad short packets rather than putting
  random data
- fix a wrong VGE_TXDESCSYNC() usage which should be VGE_TXFRAGSYNC()

Tested on my i386 which is my development machine.
(more bus_dmamap_sync(9) cleanup will be done later)
2006-10-31 14:13:30 +00:00
thorpej f347528e49 In the pcn driver:
- Remove the PCN_NO_PROM option.  Instead, query the am79c970-no-eeprom
  property, and read the MAC address from the CSRs if that property is TRUE.

In the ibmnws port:
- Implement device_register().
- In device_register(), set the am79c970-no-eeprom property for the
  built-in Ethernet.
2006-10-31 14:04:29 +00:00
toshii 37977d3367 Match ATI SB[34]00 smbus controllers. 2006-10-31 14:03:07 +00:00
christos f26b055a0e PR/34933: Sami Kantoluoto: RealTek 8168B found from Asus P5B motherboard
is not recognized
2006-10-28 23:18:34 +00:00
tsutsui 6ed1365e7f - bcopy -> strcpy (in debug message)
- bcopy -> memcpy
2006-10-28 18:45:57 +00:00
tsutsui 40c87dddb4 - use continue for an empty statement in for() loop
- remove an empty statement in if() clause by inverting logic
- use KDASSERT(9) rather than #ifdef DEBUG + KASSERT(9)
- replace commented out M_WRITABLE() with !M_READONLY(9)
2006-10-28 18:26:15 +00:00
tsutsui b62bfc53fd M_TRALINGSPACE(m) returns 0 if M_READONLY(m) is true,
so no need to call both.  Pointed out by Pavel Cahyna.
2006-10-28 18:00:53 +00:00
tsutsui 5ee73a035c Use common macro rather than local one. 2006-10-27 09:57:26 +00:00
bouyer f91ce46f20 Add SATA native registers support for VIA SATA controllers, so that
drives are probed using the SATA way (from FreeBSD). While here add the
VT8237A SATA Controller to the tables, should fix PR kern/34927.

Thanks to the César Catrián Carreño and paul (at) whooppee.com for
tests.
2006-10-27 08:22:31 +00:00
macallan 4022a1c7d3 fix a typo in chipsfb_bitblt() 2006-10-27 06:14:17 +00:00
bouyer fe6228aefa Regen: Add VIA VT8237A Integrated SATA Controller 2006-10-25 19:22:57 +00:00
bouyer 99697bfb44 Add VIA VT8237A Integrated SATA Controller, from FreeBSD. 2006-10-25 19:22:31 +00:00
bouyer cb53a57e9c Map the SATA registers for SATA channels, and probe drives using them instead
of using the old PATA way. Tested with a PDC20375 (2xSATA + 1xPATA).
While there add the PDC20618-621 products (Ultra/133 controllers);
untested. Yes, it's strange to support PATA-only devices in a driver
called pdcsata, but that's how it is ...
2006-10-25 17:38:27 +00:00
bouyer 576987983a Use common wdc_sataprobe() where possible; explain why we can't in satalink.c 2006-10-25 17:34:49 +00:00
drochner 747abe99e5 add zero initializers to make that compile again 2006-10-24 19:16:50 +00:00
itohy fc1ed5259e 3c575CT Ethernet card requires a little more time during reset
and after reset, or the card won't be detected on some machines.
Change the time from 40ms to 50ms.

XXX The card doesn't work correctly yet.
2006-10-24 14:16:39 +00:00
rjs 4b90889ec6 Regen. 2006-10-23 00:21:27 +00:00
rjs e3925c8d0b Add Motorola MPC5200B host bridge. 2006-10-23 00:20:06 +00:00
bouyer 5b9f1ed038 Regen: added some Intel gigabit ethernet products 2006-10-21 17:18:49 +00:00
tsutsui 587d5e790a Fix hardware VLAN tagging support on vge(4):
- On TX, vge(4) seems to assume that tags are written in little endian.
  We already use htole32() to write values into descriptors,
  so extra byteswap by htons() is not needed there.

- On RX, vge(4) seems to store tags in network byteorder.
  We have to swap byteorder regardless of host's byteorder
  (i.e. we have to use bswap16() rather than ntohs())
  because we already use le32toh() to read values from descriptors.

Anyway, no need to use htons()/ntohs() because there is no stream data.

Tested on both i386 and macppc, and OK'ed by Pavel Cahyna.
2006-10-21 16:26:35 +00:00
bouyer 154d613f0b Add support for the Intel 80003 Gigabit Ethernet controller (found e.g. in
newer server chipsets) to wm(4), from the FreeBSD em(4) driver.
While there, add a few other Intel Ethernet controller that should work as
is.
Properly update the RX error and TX collision counters.
Add ikphy(4), a driver for the Intel i82563 Kumeran 10/100/1000 Ethernet PHYs
2006-10-21 14:10:32 +00:00
scw d269f28650 Force a reload of the EEPROM if the MAC address is all zeroes.
Fixes PR kern/34812.
2006-10-20 10:31:06 +00:00
dogcow 372e6ef309 now that we have -Wno-unused-parameter, back out all the tremendously ugly
code to gratuitously access said parameters.
2006-10-17 18:21:29 +00:00
itohy f9212d6b4d Silence unused variable warning. 2006-10-17 15:16:30 +00:00
itohy bb09c44e46 Make pciide(4)-only configurations (without other DMA-capable driver) compile. 2006-10-17 13:45:05 +00:00
tsutsui 787b5230f5 Fix a typo in comment. 2006-10-17 09:55:12 +00:00
macallan 8668483161 detect video RAM size 2006-10-16 22:36:30 +00:00
pooka 5005d343ec * __unused games + other relevant fixes
* give me ANSI C or give me death (at least where it could be easily spotted)
2006-10-16 13:00:36 +00:00
tsutsui fec9e58b4d In vge_newbuf(), don't adjust packet length twice by m_adj(9)
in case of __NO_STRICT_ALIGNMENT. We can adjust m_data directly
since it's allocated by MCLGET(9) just above.
(though the length is not used anyway)
2006-10-15 11:52:36 +00:00
tsutsui 76a3c671ce Umm, remove a DELAY() added in previous. It seems to cause another problem. 2006-10-15 10:54:15 +00:00
tsutsui 2412a17a18 On sgimips (R5000 O2), it seems that the first EEPROM read data
right after vge_reset() could be corrupted. For workaround, add a
dummy EEPROM read in vge_reset() so that MAC address is properly
set on the machine.
While here, add a DELAY() in busy loop in vge_read_eeprom().
2006-10-15 10:33:25 +00:00
tsutsui 4751084399 Oops, use correct dmamap to sync DMA descriptors.
Found by DIAGNOSTIC code in sgimips/bus.c:_bus_dmamap_sync_mips3().
2006-10-15 09:37:27 +00:00
tsutsui 657cf77ed2 - use MGETHDR() and MCLGET() rather than m_gethdr() and m_clget()
- KNF, ANSIfy, remove register decls
- some more cosmetics
2006-10-14 19:53:51 +00:00
tsutsui 607772f8e4 - call bus_dmamap_sync() properly (sigh)
- merge vge_dma_map_rx_desc() and vge_dma_map_tx_desc() into callers
- declare DMA descs volatile
- remove unused macro/declarations
- bzero -> memset
- some more cosmetics
2006-10-14 19:10:35 +00:00
tsutsui 4ee87b9180 - use correct dmamap size for TX/RX DMA descriptors
- use __NO_STRICT_ALIGNMENT directly rather than local VGE_FIXUP_RX
- no need to use BUS_DMA_ALLOCNOW
- remove unneeded members from softc

XXX: Is vge_fixup_rx() really more efficient than memmove(9),
XXX: or allocating a new buffer and memcpy(9) into it?
XXX: Anyway, vge(4) is not recommended for non-x86 hosts at all
XXX: because it requires copying buffers by CPU on RX.
2006-10-14 16:45:46 +00:00
tsutsui cd07b37a00 Umm, set Ethernet address into softc properly. 2006-10-14 15:53:23 +00:00
tsutsui 63bc3bee0c - fix eeprom read function so that MAC address can be read correctly
on big endian machines
- add some missed byteswap functions for DMA descriptors
2006-10-14 11:29:15 +00:00
christos 6c265266c5 more __unused 2006-10-13 20:53:59 +00:00
dogcow 44603cac1f more unused variable fallout. 2006-10-13 18:28:06 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
jmcneill 648920a00e Size is the third argument to memset, not the second. 2006-10-11 05:12:06 +00:00
cube 199c1347ea Add an entry for the 2 UARTs version of the Moschip NM9835. 2006-10-09 20:33:04 +00:00
cube 5816119e8b Regen. 2006-10-09 20:31:57 +00:00
cube ed6585967f Add one puc device by Moschip (formerly NetMos). Not the one I have, but
as I went through the datasheets...
2006-10-09 20:31:03 +00:00
gdamore 0ccaea15ce Fix an incorrect calculation for the destination X direction when doing
blitting.  Thanks to David Redman (Tadpole) for noticing it.   This probably
escaped notice before, since we never do overlapping blits (in the X
direction), but this fix may prevent problems if someone ever does use it
for that.
2006-10-07 21:36:12 +00:00
jmcneill f40fbf1bb9 Print error on powerhook_establish failure, not success. PR# 34698. 2006-10-02 21:23:44 +00:00
cube e815c718be Regen (fix pasto). 2006-10-02 13:09:10 +00:00
cube a086b3aa30 Oops, pasto. 2006-10-02 13:08:45 +00:00
cube 4b2dd7d48f Regen (MCP55 ISA brige). 2006-10-02 12:51:02 +00:00
cube 8d0897fa4a Add an NVIDIA MCP55 device I forgot (ISA bridge). 2006-10-02 12:50:23 +00:00
elad 65792a0340 More from Matt Fleming:
Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
2006-10-01 20:31:49 +00:00
elad bdc51baebb Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
Also, add forgotten splx() calls in some places.
2006-10-01 19:28:43 +00:00
cube 86f0ff14cc Regen. 2006-09-29 20:49:48 +00:00
cube a556b65796 Add ids of devices found in the nForce 570 chipset.
Add GeForce 6200LE.
2006-09-29 20:48:41 +00:00
christos 95d484d975 Coverity CID 4151: Don't forget to close the firmware file (from Arnaud Lacombe) 2006-09-29 14:38:04 +00:00
christos 13528a299f Coverity CID 3666: Remove debug to expose KASSERT's (from Arnaud Lacombe) 2006-09-29 14:33:52 +00:00
tsutsui c6bfa68fcc - trim CRC off rather than setting M_HASFCS
- use appropriate types instead of `unsigned'
2006-09-29 08:49:30 +00:00
cube f33f698361 Make fxp(4) support the PRO/100 VE variant just added to pcidevs.
Reported by rix on #NetBSD-code on freenode.
2006-09-27 21:46:15 +00:00
cube 1e05843063 Regen (Intel/0x1094). 2006-09-27 21:43:26 +00:00
cube 3d367d313e Add the Intel PRO/100 variant found on the D946GZIS motherboard. 2006-09-27 21:41:56 +00:00
sketch 83a18a4ac4 Regenerate for TI ACX changes. 2006-09-27 11:49:04 +00:00
sketch 2394aa3588 Add TI ACX100B and rename existing (unused) TI ACX100 to ACX100A. 2006-09-27 11:48:02 +00:00
macallan a2120a92a7 the chip wants all data we send with 64bit padding, no matter what padding
individual scanlines have so we send an extra 0 when we have to.
2006-09-27 06:39:38 +00:00
macallan 214a60e5cb cleanup, implement putchar() using the blitter 2006-09-27 05:19:23 +00:00
heas e8bce64b5c Regen for pcidevs 1.833 2006-09-26 00:09:42 +00:00
heas a19ef0d521 Add entries for Datum Inc. (Bancomm) & the BC635PCI_U card. 2006-09-25 23:58:23 +00:00
jmcneill 1d83a2dea6 No need to call pci_set_powerstate from our powerhook, the bus handles this
for us now.
2006-09-25 23:11:07 +00:00
jmcneill 8e37d48dc1 Create a PCI bus powerhook to handle setting PCI D# power state transitions
on suspend/standby/resume.
2006-09-25 23:09:42 +00:00
briggs d9a3e24d2f Regen with new IDs for devices in the last-generation Apple PowerBook G4. 2006-09-24 18:36:40 +00:00
briggs f1e45a271e Add IDs for the devices in the last-generation PowerBook G4. 2006-09-24 18:35:34 +00:00
jmcneill 5396cf7fbb PR# 23620: channels are swapped 2006-09-24 14:26:50 +00:00
jmcneill e396b69764 PR# 29372: notebook with Maestro 2E sound chip panics (w/ fix) 2006-09-24 13:24:32 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
jmcneill 4c8d1c711c Don't use // for comments. 2006-09-24 03:42:41 +00:00
jmcneill f6db1b6893 Use /* ... */ for comment instead of // ... 2006-09-24 03:40:49 +00:00
jmcneill 200c3c464e Formatting fixups, remove commented out code that should not have been here,
and remove a few unnecessary XXX comments.
2006-09-24 03:39:51 +00:00
manu e057d5fcd9 Tweak the twa(4) driver so that 3ware command line utility works with it.
This includes:
- fixing various structure definitions so that the ioctl parameter match
- adding a hw.twa*.driver_version sysctl
- do not refuse multiple device openings, as the management tool will do it.
  I'm not sure we are safe. FreeBSD allows multiple openings, and use the
  open flag only when an attempt to detach the device is done.
2006-09-23 22:16:35 +00:00
macallan 52819a126f a half done wsdisplay driver for Chips & Technologies 65550 graphics chips
So far it only uses the blitter for scrolling and rectangle filling,
characters are still drawn in software and there's no support for video
mode switching. Virtual consoles are supported via vcons.
Works fine on a PowerBook 3400c.
2006-09-23 05:12:22 +00:00
jmcneill eaa9b0d13e Print "interrupt at irq <foo>" message immediately after we establish the
interrupt. Patch from PR# 33567.
2006-09-23 01:19:18 +00:00
reinoud 3b1c762eae Since SPDIF support fo the auixp driver is still half done disable it for
now since some chipset revisions will freak out on the aparent
half-initialisation. Even on my machine i can't seem to get the SPDIF led
to light up so something is wrong.

Also delay the setting of the DMA bits until after the codec detection but
before the enabling of interrupts. Note that the dma has to be explicitly
started when the device is opened.
2006-09-18 15:18:52 +00:00
riz c927ff3953 g/c unused SK_{SET,CLR}BIT macros 2006-09-10 18:39:27 +00:00
simonb f4ec8156e1 Add NetBSD RCS tag to top of file. 2006-09-10 11:03:14 +00:00
riz d5e3d70afd Add msk(4), a driver for Marvell Yukon 2 gigabit ethernet chips,
from Mark Kettenis of OpenBSD.  There are still some outstanding
issues with this driver, namely:

 - Checksum offload is unsupported
 - There is a significant amount of code duplication from sk(4)
 - There remain some 'magic numbers'
 - Performance is not heavily tested, and likely to be lower than
   the chip is capable of in some cases.  Syncing some of the
   aforementioned 'magic numbers' with the Marvell FreeBSD driver
   should help here.

Tested on a motherboard with Marvell 88E8053 ethernet, under NetBSD/i386
and NetBSD/amd64.
2006-09-09 16:17:50 +00:00
riz bc22f236a4 Regen. 2006-09-07 21:17:32 +00:00
riz 0fcac2612f Add the SK-9Sxx Gigabit Ethernet, from OpenBSD. 2006-09-07 21:16:55 +00:00
itohy bf52851800 Regen from pcidevs rev 1.830. 2006-09-07 12:38:59 +00:00
itohy eee2a035e9 Add Workbit NinjaATA-32Bi and NPATA-32 busmastering PIO IDE controllers. 2006-09-07 12:37:49 +00:00
itohy 0a30900857 Add PIOBM (busmastering transfer using ATA PIO mode) support.
The PIOBM is used by only one driver (will be added later,
stay tuned) and intruduce an attribute "ata_piobm" so that
it will be conditionally compiled in.
The "ata_dma" (busmastering transfer using ATA DMA mode) and
"ata_udma" (busmastering transfer using ATA Ultra DMA mode)
attributes are also added for consistency, but unused for now.
2006-09-07 12:34:41 +00:00
dogcow f2d329dca0 remove more vestiges of CCITT, LLC, HDLC, NS, and NSIP. 2006-09-07 02:40:31 +00:00
rumble cfba0d26d0 Avoid a panic on adapter check interrupts: the 'tl_restart' callout expects
a pointer to struct ifnet, not tl_softc.
2006-09-07 00:00:02 +00:00
riz 2f9f5c5846 Remove unused members of sk_softc. 2006-09-04 00:54:40 +00:00
christos 93a520d8b0 fix initializers 2006-09-03 22:17:35 +00:00
christos e82a0f88ae add missing initializer. 2006-09-03 21:45:28 +00:00
bouyer bedc649eed stop attaching when a bus_dma operation fails, instead of using bogus
addresses.
Remplace vtophys() with proper bus_dma(9) use.
This driver now works properly on Xen
2006-09-03 19:06:32 +00:00
xtraeme 44522b1f90 * Add support for ICH8 and ICH8M SATA/RAID controllers.
* If the controller is in AHCI, ask for SATA IDE mode of operation.

jsg@openbsd says:

"X60/T60 Thinkpads are shipped in AHCI configuration by default,
 this makes them work without changing a BIOS option."

Tested by eye of the beholder. From OpenBSD.

Ok'ed tls.
2006-09-03 18:30:35 +00:00
xtraeme 02fa0947d7 Add support for PDC40519 and PDC40779... from obsd. 2006-09-03 12:18:03 +00:00
xtraeme 4769f26cd2 regen 2006-09-03 12:14:32 +00:00
xtraeme 3a3373ee8e Add missing PDC20265 device... removed accidentally in previous. 2006-09-03 12:13:56 +00:00
xtraeme 5a91328568 regen 2006-09-03 12:02:53 +00:00
xtraeme 4e23c01c3f Add some missing devices from Promise and sort them. 2006-09-03 12:02:30 +00:00
xtraeme f42bb991ca regen 2006-09-03 10:20:13 +00:00
xtraeme af16e7909e Add some ICH8 devices... from obsd. 2006-09-03 10:19:26 +00:00
xtraeme fdcb59bf6d Add support for nvidia MCP61/65 IDE/SATA Controllers. 2006-09-03 08:42:32 +00:00
xtraeme bbdb91feca regen 2006-09-03 08:39:15 +00:00
xtraeme 316d722a4c Erm forgot to add MCP61/65 SATA Controllers and sort them. 2006-09-03 08:38:52 +00:00
xtraeme 7465ee1052 regen 2006-09-03 08:10:47 +00:00
xtraeme 4b06824243 - Add all pciids for nvidia MCP61/65 controllers, from obsd.
- Improve description in all them.
2006-09-03 08:10:18 +00:00
xtraeme ea4f30c7b7 Add support for MCP61/65 controllers... from obsd. 2006-09-03 07:42:04 +00:00
xtraeme 3a6aed3622 regen 2006-09-03 07:36:34 +00:00
xtraeme e85b72eeee - Add nForce MCP61/65 LAN controllers... from obsd.
- Improve description in some nForce controllers as well.
2006-09-03 07:36:10 +00:00
christos 80d7cf4588 - add missing initializer
- add missing function decl
2006-09-03 07:05:16 +00:00
christos bbf2deb35f - add missing initializer
- inline comes first
2006-09-03 07:02:54 +00:00
christos 48c3e87853 add missing initializer 2006-09-03 06:26:27 +00:00
christos b3d983dd18 add missing initializer 2006-09-03 05:24:47 +00:00
christos 309d51fb22 add missing initializers 2006-09-03 04:56:33 +00:00
christos 5ec7f32544 add missing initializers 2006-09-02 17:02:57 +00:00
christos b6994507c5 add missing initializer 2006-09-02 07:23:53 +00:00
christos faec8658c7 - fix incomplete initializer
- static goes first
2006-09-02 07:10:51 +00:00
christos 0668b0a2e0 static goes first 2006-09-02 07:08:39 +00:00
christos 489fe1e988 add missing initializers 2006-09-02 06:56:30 +00:00
uwe ff25c8d7b7 s/dreamcast/sh3/ to cover landisk. 2006-09-01 20:28:14 +00:00
dyoung 013444d78c Remove the declaration of an unused local variable 'reg'. 2006-09-01 03:24:58 +00:00
rumble cc8a477ce5 Add quirks for the Phobos GIO Fast Ethernet boards. 2006-08-30 23:32:07 +00:00
rumble 75e28cc7ed Make this compile again when TLDEBUG is defined. 2006-08-30 23:29:01 +00:00
christos 048533a23b complete initializers. 2006-08-30 16:49:07 +00:00
christos 26f4467d26 fix initializers. 2006-08-30 16:43:56 +00:00
christos c1d5ec6516 add missing initializers. 2006-08-30 15:14:11 +00:00
christos ca858a7e11 static goes first 2006-08-30 02:13:20 +00:00
christos 2e252670b5 static goes first 2006-08-30 02:00:26 +00:00
christos d76c7ff74a - fix missing initializer
- fix < 0 comparison with unsigned
2006-08-30 01:14:24 +00:00
christos b80f5be1eb fix incomplete initializers 2006-08-30 01:10:46 +00:00
christos f432f36f7f missing comma 2006-08-30 00:54:28 +00:00
christos a87d6a05e0 fix incomplete initializers 2006-08-30 00:53:47 +00:00
christos 976d4b3f1c - fix incomplete initializer
- remove unsigned comparison < 0
2006-08-30 00:51:48 +00:00
christos 16f3fda8be fix incomplete initializers 2006-08-30 00:42:41 +00:00
christos cb09e23ee7 fix incomplete initializer 2006-08-29 23:45:23 +00:00
christos c65db33038 fix incomplete initializer. 2006-08-29 23:42:18 +00:00
macallan eda93ea91b those should have been committed along with radeonfb.c
doh
2006-08-29 17:09:33 +00:00
macallan 10bb91db88 - use RADEON_DEFAULT_MODE when no EDID data available
- let only root mmap PCI resources through wscons
- allow IO access on macppc
2006-08-29 00:50:29 +00:00
christos 87fd29be14 static goes first. 2006-08-28 00:18:30 +00:00
christos 6e913df162 remove unreachable code. 2006-08-28 00:08:38 +00:00
christos a19f83e53b add missing initializer. 2006-08-28 00:07:35 +00:00
christos 63f68a892b remove unreachable code. 2006-08-28 00:06:14 +00:00
christos 78cdbd8e9c add missing initializer. 2006-08-28 00:04:21 +00:00
christos 7546f55be3 add missing initializer 2006-08-28 00:01:36 +00:00
christos 2735c71895 static comes first. 2006-08-28 00:00:23 +00:00
christos a98a1f3b7b Add missing initializers. 2006-08-27 23:59:40 +00:00
christos d137310d6b add missing initializer 2006-08-27 23:53:10 +00:00
christos 4a778ebf9a - static needs to be first
- complete the cdevsw
2006-08-27 23:31:15 +00:00
christos c689e59cb9 restructure ifdefs 2006-08-27 23:27:44 +00:00
christos 35f0d726a8 complete initialization 2006-08-27 23:21:35 +00:00
christos 52975efd5a Grr. Don't define _KERNEL! Most of the kernel files do #ifdef _KERNEL 2006-08-27 19:19:47 +00:00
xtraeme f61564f6ba Initialize a variable to 0 to appease gcc4 with -O3. 2006-08-27 17:05:39 +00:00
christos 52c2319234 Regen 2006-08-27 08:16:44 +00:00
christos 8270ea8a29 PR/34289: Stéphane Witzmann: Add some missing PCI devices in pcidevs 2006-08-27 08:16:16 +00:00
christos dace278549 PR/34292: Aaron Hodgen: twa driver incorrectly reports drive size/description 2006-08-26 19:35:51 +00:00
riz df667bafa9 In sk_watchdog(), attempt to reclaim pending TX descriptors before
resetting the hardware.  Should fix occasional watchdog timeouts
seen with this driver.

From FreeBSD, via OpenBSD.
2006-08-25 20:16:57 +00:00
riz 62cb42312d Cleanup, with no functional changes:
- remove unused code
	- KNF
	- ANSI function declarations
	- replace printf() with aprint_error() except in debug functions
	- a few minor indentation/whitespace changes
2006-08-25 02:34:30 +00:00
riz 0284fe298f Regen (Marvell product IDs) 2006-08-24 22:40:59 +00:00
riz 4a163d3c68 Add a bunch of Marvell product IDs, from OpenBSD. 2006-08-24 22:40:20 +00:00
christos f0f1731b24 Acting as Elad's keyboard:
Place the securelevel checks in their logical locations.
This will be clearer in the future when code changes to use kauth(9) calls.

input and okay ad@
2006-08-23 15:44:29 +00:00
cube 7db2b0d746 Regen (Broadcom NetXtreme II). 2006-08-23 13:55:48 +00:00
cube 7de2074ec7 Add Broadcom NetXtreme II devices. 2006-08-23 13:54:37 +00:00
riz a9815feffa Vendor GALILEO is now MARVELL. 2006-08-22 21:42:19 +00:00
riz ec9d914ee6 Regen for GALILEO -> MARVELL 2006-08-22 21:41:12 +00:00
riz 3f9d78d294 Rename vendor GALILEO -> vendor MARVELL . Marvell bought Galileo years
ago, we have little existing stuff in the tree, and this will make it
easier to keep certain network drivers in sync with other OSes.

OK matt@, uwe@
2006-08-22 21:40:17 +00:00
riz 2314dce488 Add byteswapping where appropriate, to allow things to work on
(at least some) bigendian systems - I tested on macppc.

From brad@openbsd .
2006-08-22 06:24:10 +00:00
riz a06f7205fb Some cleanup in skc_attach():
- does not need splnet()
	- disestablish the interrupt and unmap bus space on failures.
2006-08-20 18:04:53 +00:00
riz c250a823e7 Make this driver compile when SK_USEIOSPACE is defined - I have no
evidence that this is actually needed except for the existence of the
code itself, but if it's going to be here, it should compile.  Tested
briefly on my ASUS motherboard with built-in sk interface.
2006-08-20 16:03:30 +00:00
macallan 1ab7fe6df2 fix a typo so we actually write sane values into the clipping registers 2006-08-19 17:57:13 +00:00
skrll 326bcc171a Add some sysctl knobs to bring us closer to the FreeBSD driver.
Also sysctl enable the debug message printing (if IWI_DEBUG) is defined.
2006-08-19 06:32:52 +00:00
macallan ea7df82ebc fix some typos, add mmap() support for X
needs options RADEONFB_MMAP_BARS for now
2006-08-19 04:39:32 +00:00
macallan f5804719cd make this work on macppc.
fixes and caveats:
- will switch to 32bit colour, 8bit support needs some more work
- added support for fonts with widths that aren't multiples of 8
- for now the driver will always try to become system console
- mode switching works but is ugly
- all the acceleration bits work
- X should work with wsfb, mmap() needs some more work
- it still needs a hack to allow wsdisplay_cnattach to be called twice
2006-08-19 04:00:15 +00:00
he f4ad138e01 Make this build again without OBOE_DEBUG defined (get rid of warnings
about unused variables).
2006-08-17 22:14:38 +00:00
christos 35ca6c8b5b Fix all the -D*DEBUG* code that it was rotting away and did not even compile.
Mostly from Arnaud Lacombe, many thanks!
2006-08-17 17:11:27 +00:00
gdamore 0d7e99a27a Initial import of radeonfb. Works to some degree on at least some hardware.
Most of the testing was done on MIPS hardware -- it probably needs work before
it will be useful with x86 hardware, and it is probably incompatible with
the X11 server.

"ATI Technologies Inc. ("ATI") has not assisted in the creation of, and
does not endorse, this software.  ATI will not be responsible or liable
for any actual or alleged damage or loss caused by or in connection with
the use of or reliance on this software."

Enjoy!
2006-08-16 22:46:44 +00:00
jmcneill e0a36ed3ff Reclaim resources from an initial vga console on attach. 2006-08-13 20:27:33 +00:00
jmcneill 28ff3283af Acceleration definitions (missed in previous commit). 2006-08-13 20:26:55 +00:00
jmcneill 5effc9a4f9 Expose RGB palette tables. 2006-08-13 20:25:47 +00:00
jmcneill ef21ee74e6 Add accelerated putchar and cursor ops. Also fix a bug in copyrows that
caused scrolling down to always fail.
2006-08-13 14:16:44 +00:00
dsainty 07955f97ca Add support for the Promise PDC20771, present on the Promise FastTrak TX2300.
This support is not based on a datasheet, because a datasheet is not readily
available for this chip.  However, Promise have partially open sourced their
driver for Linux, and all suggestions are that the PDC20771 is pretty similar
to other recent SATA chips.

The TX2300 has two ports, but there is unoccupied space on the board for a
third PATA port.  It isn't entirely obvious how many channels the PDC20771 can
support.

The pdc205xx_drv_probe probe is necessary to avoid probing two wd* devices for
every physical device.
2006-08-13 09:39:25 +00:00
dsainty cff0bb36bb Regen: Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:02:07 +00:00
dsainty 1a778d636e Add the Promise PDC20771, present on the Promise FastTrak TX2300 2006-08-13 08:00:14 +00:00
oster 505c134201 Apply a change from damien in OpenBSD: fix a use-after-free (read)
of a mbuf in wpi_tx_intr().
2006-08-13 03:52:33 +00:00
jmcneill 7c8d725f94 Add acceleration support for the VIA UniChrome driver. While here, fix a
bug that caused the screen to be filled with annoying vertical lines.
2006-08-13 03:37:02 +00:00
jmcneill bdbf1a3323 Add rasops16 attribute to unichromefb. 2006-08-13 03:34:11 +00:00
simonb af29995e74 Add a port of the OpenBSD Intel 3945ABG wpi(4) wireless driver, by
Jean-Baptiste Campesato.

From PR kern/33778.
2006-08-13 02:21:45 +00:00
simonb 4abae2e82a Regen. 2006-08-10 13:22:54 +00:00
simonb 3ec8720588 Fix typo in 3945 Intel wireless card name.
Pointed out in private mail by Jean-Baptiste Campesato.
2006-08-10 13:22:12 +00:00
cube 9979ca290b iwi now needs firmload [hi nick!] 2006-08-10 12:22:25 +00:00
skrll 7274555f30 s/printf/aprint_error/ for one message. 2006-08-09 11:49:41 +00:00
skrll 6458f6d488 Adapt iwi(4) to use firmload(9) and remove firmware loading from
iwictl(8).
2006-08-09 11:35:59 +00:00
jnemeth d80f12f934 regen for Token Ring additions 2006-08-09 05:51:01 +00:00
jnemeth 83d05c6102 add some Token Ring devices 2006-08-09 05:47:08 +00:00
cube d45fad2e7e Add support for the 631xESB/632xESB. 2006-08-08 19:38:34 +00:00
cube 8a1f50f6c7 Regen (Intel 63xxESB devices). 2006-08-08 19:37:35 +00:00
cube 46e1877148 Add device IDs for Intel's 631xESB/632xESB southbridges, and start the list
for the 5000X northbridge.  I'll add the rest later, the spec is currently
unavailable so I'll collect them from another source.
2006-08-08 19:37:00 +00:00
jmcneill 4b802ec0e1 PR/12843: Workaround for CS4280 on IBM ThinkPads. From Stephane Witzmann.
Note: This workaround conflicts with piixpm(4); you will need to disable
the piixpm driver if you need this fix.
2006-08-06 16:21:11 +00:00
jmcneill 0eb9f3fd24 Regen. 2006-08-06 15:48:34 +00:00
jmcneill 5672a65632 Add entry for IBM ThinkPad audio. From Stephane Witzmann. 2006-08-06 15:48:12 +00:00
xtraeme 07e7c5a439 HPT368 support. Patch from Jonathan A. Kollasch via PR kern/34097.
Thanks.
2006-08-05 22:31:13 +00:00
sanjayl 265929b20e 1st cut of Powermac G5 support (uses bridge mode). 2006-08-05 21:26:48 +00:00