Commit Graph

6852 Commits

Author SHA1 Message Date
dyoung
797e51d63e Make cosmetic changes in order to reduce differences with
sys/dev/cardbus/if_rtw_cardbus.c: remove an unnecessary #include.
Change a few cut & paste instances of ADM8211 to RTL8180.  Make the
suspend & resume functions static, add declarations for them at the top
of the file, and move the functions themselves to the bottom.
2010-03-04 22:57:37 +00:00
dyoung
5980434120 Extract both instances of the code that prints the PCI Secondary Status
Register into a subroutine.  Use terminology similar to that which
PCI System Architecture (4th Edition) uses.  For comparison with PCI
reference books, specify flags and fields with __BIT(n) and __BITS(m, n)
instead of hexadecimal constants.
2010-03-04 22:55:20 +00:00
dyoung
eb0836d9ae Move the definitions for PCI_BAR0, PCI_BAR1, PCI_BAR2, PCI_BAR3,
PCI_BAR4, and PCI_BAR5 to pcireg.h for re-use.
2010-02-26 00:38:14 +00:00
macallan
8ffcf0035e add a comment on PCI_MAGIC_IO_RANGE 2010-02-25 21:09:00 +00:00
macallan
54b08bae4c some cleanup 2010-02-25 20:56:20 +00:00
msaitoh
b32bc8f5ec Merge if_wm.c rev. 1.162.4.13 and if_wmvar.h rev. 1.2.46.3 into maintrunk.
Increase the timeout value to prevent timeout on 80003. The values are taken
from Intel's e1000 driver. Tested by spz and me.
2010-02-25 15:07:06 +00:00
macallan
0320314aca a very preliminary driver for Wildcat 5110 / Sun XVR-500 graphics boards
Since we don't have any documentationthis driver is unaccelerated and thanks
to the insane state we get the hardware in it's also slow and scrolling
looks weird.
Some hardware info came from OpenBSD's ifb driver.
2010-02-25 03:33:09 +00:00
macallan
df530d6bed regen 2010-02-25 03:20:02 +00:00
macallan
0c6f3037b6 add 3Dlabs Wildcat 5110, also known as Sun XVR-500 2010-02-25 03:18:44 +00:00
dyoung
4ce33933f8 Cardbus_free_tag() and cardbus_free_tag() are no-ops, so get rid of them
to simplify the code a bit.
2010-02-25 00:47:39 +00:00
dyoung
6f92774f38 Use device_suspensor_t. 2010-02-24 23:52:49 +00:00
dyoung
7c4be3328d Start to tuck Cardbus under the PCI abstraction. Step #1, textual
substitution: for all practical purposes, pcitag_t and cardbustag_t are
interchangeable, so just use pcitag_t.  Ditto pcireg_t and cardbusreg_t.

Poison new uses of cardbusreg_t and cardbustag_t by deleting the type
definitions.
2010-02-24 23:38:40 +00:00
dyoung
c1b390d493 A pointer typedef entails trading too much flexibility to declare const
and non-const types, and the kernel uses both const and non-const
PMF qualifiers and device suspensors, so change the pmf_qual_t and
device_suspensor_t typedefs from "pointers to const" to non-pointer,
non-const types.
2010-02-24 22:37:54 +00:00
jym
7bf36164a7 - Use ctob() instead of ptoa() to obtain physical addresses from frame
numbers. Using ptoa() will cast to vaddr_t, which might no be adequate
for architectures where sizeof(paddr_t) > sizeof(vaddr_t) (like i386 PAE).

- small fix inside AGP heuristics to avoid masking high order bits for
systems with more than 4GB.

Reviewed by bouyer@.

See also http://mail-index.netbsd.org/tech-kern/2010/02/22/msg007373.html
2010-02-24 00:01:11 +00:00
dyoung
d2fb16224c Remove unused functions pci_disable_retry() and cardbus_disable_retry(). 2010-02-23 19:28:00 +00:00
ahoka
0f279dbbae Restore splashscreen support with genfb.
genfb patch from Pierre Pronchery, other small changes to make it
compile by me.

Closes PR kern/42605.

XXX doesnt work in 8bit, probably a cmap issue
2010-02-22 05:55:10 +00:00
msaitoh
b601f7daf0 Add support for 82575, 82576 and 82580(ER).
- Apply the patch for 82575 from Wolfgang Stukenbrock (PR#42422). We use
  only one RX ring and with the legacy mode.
- Add support for 82576.
- Partial support for 82580.
- Partial support for the serdes systems.
2010-02-16 15:17:17 +00:00
msaitoh
ddce6a6e5c regen. 2010-02-16 10:10:26 +00:00
msaitoh
65f53e95ec Add entries for 82576 and 82580 2010-02-16 10:10:04 +00:00
msaitoh
bff00e11f7 indent, tabify and remove extra spaces. 2010-02-16 10:06:19 +00:00
msaitoh
9afdc6ebb0 - Add some PCIe config registers.
- The register at 0x1c is not Control Status register. It contains Control
  bits only. Rename it.
2010-02-12 04:01:07 +00:00
hubertf
d181448ea1 regen 2010-02-09 23:14:19 +00:00
hubertf
d96ae1b974 Add entry for Juniper Networks Experimental Clock Version 0
Fixes PR kern/42742
2010-02-09 23:13:09 +00:00
msaitoh
992a078917 regen. 2010-02-09 04:40:52 +00:00
msaitoh
f957ef5b6e Make some bge's name close to the real product names. 2010-02-09 04:40:21 +00:00
msaitoh
38a7bbf82a Add newer cars supports. Tested on MegaRAID SAS 9260-8i.
- Add MFI gen2 support from OpenBSD.
 - Add entry for MegaRAID SAS 9260-8i
2010-02-09 00:05:18 +00:00
msaitoh
40b88c199a regen. 2010-02-08 23:59:09 +00:00
msaitoh
7d9d71b76c Add some MegaRAID Entries 2010-02-08 23:58:38 +00:00
pgoyette
5c907aca1a Recognize the i2c bus on the AMD768 PCI-ISA/LPC Bridge
Resolves PR/42759 - thanks Michael Stapelberg
2010-02-07 20:55:46 +00:00
tnn
6c77458a9c Attach to SMBus on Intel P55 chipset. 2010-02-06 14:09:25 +00:00
msaitoh
929e6a0580 Don't increment when ICR_RXO is set because we count them by WMREG_MPC
counter.
2010-02-04 10:20:54 +00:00
msaitoh
c3aa9a683a - Count Receive error, CRC error, Alignment error, Symbol error, Sequence
error, Carrier extension error and Receive length error into ierror.
  Fixes PR#30349 reported by UMEZAWA Takeshi.
- Count Missed packet (rx fifo overflow) and Receive no buffers (rx ring full)
  into iqdrops.
2010-02-04 09:13:23 +00:00
macallan
7f9ad6b70b do not attach to Powrbook G3 onboard Firewire controllers until someone with
access to the hardware can figure out why it deadlocks during device
discovery
2010-02-03 19:32:40 +00:00
macallan
e855577f1c regen 2010-02-03 19:28:07 +00:00
macallan
c514208da5 add Apple PowerBook G3 Firewire controllers 2010-02-03 19:27:24 +00:00
msaitoh
036c4f999b s/u_int/uint/ 2010-02-03 15:37:51 +00:00
msaitoh
cb47392a23 - Make the initialize sequence close to the document.
- Fix ASF heartbeat sending bug (FreeBSD rev. 1.271 (r202821))
- Use new handshake command for BCM5750 or new controllers (FreeBSD rev. 1.272
  (r202822))
2010-02-03 15:36:36 +00:00
wiz
51c0c0ea31 Add missing parentheses, found by cppcheck and reported by
Henning Petersen in PR 42718.
2010-02-02 14:57:45 +00:00
hubertf
659e2ca273 Use uppercase for acronyms on output: DRAM, SRAM 2010-02-01 22:34:29 +00:00
njoly
7d3be93bb8 Do not print ac97 link rate message unless verbose boot is requested. 2010-02-01 12:51:16 +00:00
msaitoh
bb5dfe40ba Fix the bug that unaligned access occurs on amd64. It also fixes the bug
that error bits aren't cleard because these bits are W2C (in other word, W1C).

Reported by Michael van Elst.
2010-02-01 05:38:36 +00:00
hubertf
af120bb199 Replace more printfs with aprint_normal / aprint_verbose
Makes "boot -z" go mostly silent for me.
2010-01-31 00:43:37 +00:00
jakllsch
43f0caffdd regen. 2010-01-30 20:50:19 +00:00
jakllsch
8216c57cdb Add Qumranet vendor and Virtio device IDs.
Also, sort some vendor entries.
2010-01-30 20:47:57 +00:00
jakllsch
e1d2d1d9ed Sprinkle __KERNEL_RCSID() into siisata(4).
Slightly adjust some comment styling.
2010-01-30 16:16:35 +00:00
msaitoh
a029a96bdd ANSI C, KNF and tabify 2010-01-28 07:34:12 +00:00
msaitoh
40e808f7b7 - Introduce IPMI and ASF related code from FreeBSD. It fixes some problems
which occured in netboot on sparc64 and PR#32767
- move the code of disabling host interrput in bge_stop() like linux tg3
  driver.
- fix the return value of bge_eeprom_getbyte().
- remove an unused structure.
- KNF
2010-01-28 03:09:13 +00:00
msaitoh
95c0acfe22 Add some register definitions. 2010-01-28 02:55:31 +00:00
martin
f6610e39b4 Back out part of my device property change: the mac-address part was already
done better in another place which I overlooked when merging local
changes.
2010-01-25 10:25:30 +00:00
martin
3f563da1bf Do not try to read the EEPROM if we already know we don't have one. 2010-01-24 23:27:39 +00:00