Commit Graph

6861 Commits

Author SHA1 Message Date
msaitoh ffa7a0568e 82576 is dual port, so check the FUNCID and increment the MAC address for
the 2nd port.
2010-03-10 15:04:04 +00:00
macallan a39bec69a6 - move register definition in their own header, reduce magic numbers
- get geometry and framebuffer layout from the chip instead of hardcoding
- get rid of some now superfluous leftovers
- remove some debug code
- clean things up a bit
- dump registers with WCFB_DEBUG even if we're not the console
2010-03-10 05:16:17 +00:00
macallan 6a17dc44f2 forgot to include opt_wsdisplay_compat.h for WSDISPLAY_SCROLLSUPPORT 2010-03-10 02:41:02 +00:00
macallan 5374e24fd8 now we also draw a cursor 2010-03-09 23:17:12 +00:00
macallan af1ec92289 Use a shadow framebuffer instead of doing every operation twice ( once for
each framebuffer ) - this gives quite a dramatic speedup and hides the funky
effects previously seen.
Almost there, now we need to actually draw a cursor.
2010-03-09 22:45:50 +00:00
msaitoh 71e3d68d0e Fix the type of sc_ss. That is not bus_space_handle_t but bus_size_t.
Reported by jdc.
2010-03-07 10:11:04 +00:00
msaitoh b15cf397d8 - Add code for WOL, ASF, IPMI and Intel AMT.
- wm_enable_wakeup() is disabled by default. If you want to use WOL with
      the Magic Packet, define WM_WOL.
    - Add the following flags:
        WM_F_ASF_FIRMWARE_PRESENT
        WM_F_ARC_SUBSYSTEM_VALID
        WM_F_HAS_AMT
        WM_F_HAS_MANAGE
        WM_F_WOL
    - Add wm_suspend() and wm_resume(). Give/get the control to/from the
      firmware.
    - Need more work for PCH. See wm_enable_phy_wakeup().
- Enable wm_get_hw_control() for 82574 and 82583.
- Add Yet another workaround for ICH8.
    - Add wm_igp3_phy_powerdown_workaround_ich8lan() for power down problem
      on D3.
2010-03-07 09:05:19 +00:00
msaitoh c70d45b7a4 Add two workarounds for ICH8 with igp3.
- Workaround for 82566 Kumeran PCS lock loss.
- WOL from S5 stops working.
2010-03-07 07:53:37 +00:00
msaitoh 51ecd033ec Add the detach code. 2010-03-07 07:09:00 +00:00
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