Commit Graph

7360 Commits

Author SHA1 Message Date
matt
06de72bde8 Add ATHEROS AR2427 and AR9287 2011-03-05 15:36:27 +00:00
matt
5469ac9d1c When probing the PCI bars, make sure to only probe BARS (PPBs and PCB has
fewer bars than type 0 devices).
2011-03-02 21:57:40 +00:00
mjacob
29e9eb7163 Update isp driver to be in sync with other platforms. Mostly very minor changes
with effectively zero impact on NetBSD.
2011-02-28 17:17:55 +00:00
jmcneill
c5d6c4cef0 follow the lead of genfb_pci and call pci_mapreg_probe before pci_mapreg_info 2011-02-27 18:10:25 +00:00
jmcneill
50f3ce9fa2 revert previous; instead of commenting out the error message how about fixing
the code that causes it to be printed in the first place
2011-02-27 18:01:28 +00:00
jruoho
cf0085d7f5 Remove the following aprint_debug(9): "pci_mem_find: void region". I have
a system where this is printed about a hundred times. No functional change.
2011-02-27 17:31:08 +00:00
jmcneill
be74080bef regen 2011-02-25 01:36:37 +00:00
jmcneill
8a76752a98 add AMD (ATI) Radeon HD 6310 Graphics ID 2011-02-25 01:36:18 +00:00
jmcneill
351de62b93 regen 2011-02-25 01:33:59 +00:00
jmcneill
f45045c099 add AMD Family14h host bridge IDs 2011-02-25 01:33:34 +00:00
matt
95ad459439 Add Intel Pineview support 2011-02-24 20:01:53 +00:00
matt
274ce75f7e Regen. 2011-02-24 20:01:26 +00:00
matt
44e4746a62 Update desc for RT3090. Add Intel NM10_LPC 2011-02-24 20:00:59 +00:00
macallan
d78d6ba2bb add a hack to allow mapping the video memory portions of a mach64's aperture
with BUS_SPACE_MAP_PREFETCHABLE
This probably needs to go in its own function to avoid more clutter when adding
more hacks.
tested on macppc
2011-02-24 03:37:02 +00:00
matt
4d029fbb4d Regen. 2011-02-24 00:33:44 +00:00
matt
e6d2f48082 Add RT3090 2011-02-24 00:33:17 +00:00
jmcneill
e6634feab8 regen 2011-02-23 12:22:42 +00:00
jmcneill
d56620e500 add Realtek RTL8188CE Wireless LAN 802.11n PCI-E NIC 2011-02-23 12:22:20 +00:00
jmcneill
1bd6ec13d5 catch up with FreeBSD driver, adds support for AR815x chips 2011-02-23 02:25:04 +00:00
jmcneill
c316b0ab0f add network driver for Atheros AR813x/AR815x ethernet controllers, based
on a patch from fire crow on tech-net with additional bpf & detach fixes,
module support, and a match for 8152 v2.0 devices.

alc0 at pci3 dev 0 function 0: Attansic/Atheros L1C/L2C Ethernet
alc0: ioapic0 pin 17
alc0: Ethernet address 00:26:6c:9e:d4:c1
ukphy0 at alc0 phy 0: L2 10/100 PHY (OUI 0x00c82e, model 0x0002), rev. 5
ukphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT-FDX, auto
2011-02-23 00:35:29 +00:00
jmcneill
1af493e243 regen 2011-02-22 23:20:52 +00:00
jmcneill
992862540a Add Atheros AR8132, AR8151, AR8151 v2.0, AR8152 v1.1, and AR8152 v2.0 2011-02-22 23:20:15 +00:00
dyoung
97a68946b9 Use /*FALLTHROUGH*/. 2011-02-22 21:19:30 +00:00
jmcneill
aa8968aa00 print the device name at attach, like so:
ath0 at pci4 dev 0 function 0: Atheros 9280
2011-02-21 14:43:58 +00:00
njoly
1c1483eecb Regen: Add two more Intel 82Q45 devices. 2011-02-21 13:38:55 +00:00
njoly
9243552578 Add two more Intel 82Q45 devices. 2011-02-21 13:38:18 +00:00
msaitoh
134bad206f - Add support for Moschip NM9904 and NM9922. These devices use PCI multi
function, so only one PUC_PORT_TYPE_COM entry is used in these devices.
- Use macro.
2011-02-20 22:22:02 +00:00
msaitoh
c6e0f21ce4 regen. 2011-02-20 22:16:50 +00:00
msaitoh
2166be50af Add MosChip(Netmos) 9904 and 9922.
Add MosChip(Netmos) 9865 (already supported by puc(4))
2011-02-20 22:16:18 +00:00
jmcneill
b2dc0777b6 support building as a module 2011-02-20 03:56:45 +00:00
jmcneill
1d08408fe8 more AGP v3 fixes from FreeBSD:
- fix a typo when enabling the aperture (read wrong register)
 - get_aperture/set_aperture: handle AGP v3 APSIZE register layout
2011-02-19 20:07:02 +00:00
jmcneill
56e0e00bb2 add Adaptec RAID 3405 2011-02-18 22:54:27 +00:00
jmcneill
9213e5d254 regen 2011-02-18 22:53:38 +00:00
jmcneill
3d4802dd04 add Adaptec RAID 3405 2011-02-18 22:52:53 +00:00
jmcneill
1c1a1efa3c add AGP v3 support to agp_generic_enable from FreeBSD 2011-02-15 08:57:01 +00:00
jmcneill
64b8c01373 print AGP mode (v3/v2compat/v2) with aprint_debug instead of aprint_normal 2011-02-15 08:56:11 +00:00
macallan
30bc81416e don't muck with the LVDS_BLON bit 2011-02-15 04:06:43 +00:00
jmcneill
6943f257c7 switch back to polling rirb, this will have to be revisited 2011-02-13 17:49:12 +00:00
jakllsch
4038145d43 Turn on detachment for ixpide(4). 2011-02-13 16:21:05 +00:00
hannken
a1f833f3ae The ServerWorks CSB5 smbus controller often times out and hangs until reboot.
Increase the delay between setting the command register and reading the
status register.  Reset the smbus controller if it has timed out.

Tested on an IBM eServer x335.
2011-02-13 11:20:12 +00:00
phx
ecc6abab99 Determine BAR type with pci_mapreg_probe() instead of pci_mapreg_type(),
to skip unimplemented BARs.
Do not probe non-BAR registers (like subsystem id). This fixes potential
panics in pci_mem_find().
2011-02-13 11:00:58 +00:00
jmcneill
9f85a3e3ee sync with bsd-hdaudio r15:
- fix an off-by-one in block size calculation
 - add register definitions from HDA034-A2, HDA035-A, HDA036-A
 - rename hdaudio_afg_* symbols to hdafg_*
 - add experimental HDMI and DisplayPort support code (needs help from DRM)
 - don't poll the RIRB unless cold
 - add support for unsolicited messages
 - 'hdaudioctl graph' works again
 - print each assoc's widget tree when boot -x
2011-02-12 15:15:34 +00:00
jmcneill
28ad83d2d7 rename hdaudio_afg.c to hdafg.c 2011-02-12 15:01:00 +00:00
hannken
61ba7ebc8c Make the SMbus Send/Receive functions work.
If cmdlen = 0 and len = 1 use the XXX_HC_CMD_BYTE protocol, send
data through XXX_SMB_HCMD or receive data from XXX_SMB_HD0.

Ok: Paul Goyette
2011-02-10 13:52:36 +00:00
jmcneill
61ccff524d pcimmap: if the requested page is marked prefetchable in a child device's
BAR, pass the BUS_SPACE_MAP_PREFETCHABLE flag down to bus_space_mmap
2011-02-10 12:37:58 +00:00
jmcneill
b94121255b add support for 64-bit BARs 2011-02-10 11:35:20 +00:00
jmcneill
36599bc7a4 Use BUS_SPACE_MAP_PREFETCHABLE when mapping the framebuffer. 2011-02-10 10:23:20 +00:00
macallan
bce37c288a this is no longer needed, register definitions for chipsfb now live in
dev/ic/ct65550reg.h
2011-02-09 21:26:55 +00:00
macallan
5c83b0f64d use the bus independent stuff from ic/ct65550* and leave only the PCI specific
bits in pci/chipsfb.c
2011-02-09 21:21:32 +00:00
jmcneill
9204517c6d switch genfb to polling mode at shutdown 2011-02-09 13:19:53 +00:00
jmcneill
5efc85b67e - add support for using compressed images as splash images
- retire SPLASHSCREEN_PROGRESS and SPLASHSCREEN_IMAGE options
2011-02-06 23:25:16 +00:00
bouyer
28f32144bc wm_gmii_reset(): restore generic reset delays to what they were before
rev 1.186. This makes the following hardware find its PHY again, and I can't
see how these larger delays could be a problem for other hardware:

wm0 at pci6 dev 7 function 0: Intel i82541GI 1000BASE-T Ethernet, rev. 5
wm0: interrupting at ioapic2 pin 0, event channel 5
wm0: 32-bit 66MHz PCI bus
wm0: 65536 word (16 address bits) SPI EEPROM
wm0: Ethernet address 00:13:72:54:ee:13
igphy0 at wm0 phy 1: Intel IGP01E1000 Gigabit PHY, rev. 0
igphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, 1000baseT, 1000baseT-FDX, auto
2011-02-06 16:23:00 +00:00
njoly
7f5841a8aa Regen for Nvidia devices addition. 2011-02-03 22:04:09 +00:00
njoly
d5d37e5239 Add a few Nvidia devices. 2011-02-03 22:03:09 +00:00
jakllsch
9f64a25fb5 Like some other TI SDHCI parts, PCI_PRODUCT_TI_PCIXX12SD also needs the SD
card moved to the SDHCI controller.
2011-02-02 04:18:14 +00:00
chuck
593ea2f26b udpate license clauses on my code to match the new-style BSD licenses.
remove no-longer-valid wustl email address for me.
based on diff that rmind@ sent me.

no functional change with this commit.
2011-02-01 19:50:03 +00:00
dyoung
fd17b28c56 During shutdown, restore the each PCI device's bus-mastering enable to
the state that we found it in before attaching a driver to it.
2011-02-01 19:37:37 +00:00
jakllsch
eaffb7f87c Make the Adaptec 1420SA entry match the Marvell 88SX6041 entry.
According to
http://lists.freebsd.org/pipermail/freebsd-current/2010-April/016973.html
the Adaptec 1420SA is a 88SX6041 (and the 1430SA is a 88SX7042).

This should fix the problem described in
http://mail-index.netbsd.org/current-users/2010/10/14/msg014526.html
2011-01-31 16:30:48 +00:00
christos
794726de70 clear register 0x41 as FreeBSD and OpenBSD do. Update copyright to the latest. 2011-01-31 00:01:07 +00:00
gsutre
877d0fbda9 Enable 36-bit addressing for chipsets that support it. While there,
factorize offset computation.  Inspired from OpenBSD and Intel docs.

Note: agp_i810_bind/unbind_page will now fail with EINVAL if the
physical address is too large for the chipset (instead of silently
truncating it).

ok jmcneill@
2011-01-30 23:43:08 +00:00
bouyer
4ca29e6bc3 Add a driver for the RDC Semiconductor RDC R6040 10/100 Ethernet controller,
as found in the vortex86 SoCs (http://www.vortex86dx.com).
Ported from freebsd.
Not added to amd64's GENERIC because this CPU is 32bit only.

thanks to DM&P Electronics, Inc for providing documentation and sample
devices for this work.
2011-01-26 18:48:11 +00:00
bouyer
24529c48cd Regen: Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:52 +00:00
bouyer
f8bfb5a7e1 Add RDC Semiconductor R6040 10/100 Ethernet 2011-01-26 18:37:06 +00:00
dyoung
703c7df20f unifdef -U__bsdi__ -U__FreeBSD__ -D__NetBSD__. No functional change
intended.
2011-01-26 00:54:35 +00:00
dyoung
c168b21fd4 Define masks for subsystem vendor and subsystem ID fields, plus a couple
of macros for extracting them.
2011-01-26 00:49:56 +00:00
msaitoh
f786db6b15 Fix MAC address check on 8257[156] and 80003 case. Some cards have non 0xffff
pointer but those don't use alternative MAC address in reality. So we check
whether the broadcast bit is set or not like Intel's e1000 driver.
Fixes PR kern/44072 reported by Jean-Yves Moulin.

Remove extra Warning for newer cards.
2011-01-26 00:25:34 +00:00
dyoung
7e230002ef Make oodles of mainly cosmetic changes that make rtw(4)'s PCI attachment
resemble its CardBus attachment very, very closely: slightly more than
24 lines are different.  Alas, I cannot commit the CardBus part of this
change, yet, because I have to finish my overhaul of CardBus resource
handling, first.
2011-01-26 00:16:52 +00:00
dyoung
e664fe9f2c Get out of the interrupt handler early if !IFF_RUNNING. 2011-01-26 00:09:27 +00:00
dyoung
84c27227f5 Improve error reporting during attachment to PCI ath(4). 2011-01-26 00:08:30 +00:00
gsutre
b1dbb239c6 Typos, fix memory binding for memory type 2, and add consistency checks.
From OpenBSD.

ok jmcneill@
2011-01-25 10:52:11 +00:00
mrg
88f188d88a fix the previous. there's no "vc" variable, nor does the local "dc"
have a "softc" member.  use sc->sc_dev instead.

compile tested only, but that's better than the previous revision.
2011-01-25 07:17:07 +00:00
tsutsui
3a5ccb056f Pull the following fix from OpenBSD:
http://www.openbsd.org/cgi-bin/cvsweb/src/sys/dev/pci/if_nfe.c#rev1.97
>> Some nfe(4)/rlphy(4) combos don't work, because the PHY responds to all
>> addresses on the mii bus.  As a countereasure, only attach the first PHY we
>> encounter.  It is very unlikely we're going to ever see nfe(4) with multiple
>> PHYs.  The same is probably true for any modern NIC.

Should suppress bogus ukphy30 noted in PR kern/42950.
No bad side effect on my nfe(4) which didn't get ghosts:
---
nfe0 at pci0 dev 5 function 0: NVIDIA nForce3 Ethernet #4 (rev. 0xa2)
 :
rlphy0 at nfe0 phy 1: RTL8201L 10/100 media interface, rev. 1
rlphy0: 10baseT, 10baseT-FDX, 100baseTX, 100baseTX-FDX, auto
2011-01-23 03:15:06 +00:00
cegger
e28cc170ed Implement new WSDISPLAYIO_GET_BUSID ioctl.
It returns the bus id and allows userland (like Xorg) to create mapping
of ttyE? and bus id. For now only PCI is implemented.

First discussed with macallan@ then public on tech-kern@ and tech-x11@
2011-01-22 15:14:27 +00:00
cegger
c970166801 Fixes from PR kern/44395 Masanori Kanaoka:
- Fix register address in ale_phy_reset(). from linux
- Fix mask value in ale_stop_mac().
- Fix multicast handling. from openbsd
- Fix phy reset handling.
2011-01-22 08:13:47 +00:00
jmcneill
f0d64b3259 hda_error->hda_debug when tracing an adc assoc fails 2011-01-14 03:16:37 +00:00
dyoung
93c928cfb9 Regen. 2011-01-11 00:14:41 +00:00
dyoung
4e03721aef Add Intel 82599 product IDs. 2011-01-11 00:13:03 +00:00
cegger
e5bfaecf68 add missing break 2011-01-10 14:19:36 +00:00
jmcneill
5263a998f9 ppb_fix_pcix changes:
- rename to ppb_fix_pcie
- support version PCI-E 2.0
- print version and device/port type information
- use constants from pcireg.h instead of magic numbers

changes:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: unsupported PCI Express version

to:

  ppb2 at pci0 dev 21 function 0: vendor 0x15ad product 0x07a0 (rev. 0x01)
  ppb2: PCI Express 2.0 <Root Port of PCI-E Root Complex>
2011-01-10 12:23:21 +00:00
jruoho
7ce8997e79 Don't use SYSCTL_SETUP in a driver. 2011-01-09 13:01:03 +00:00
kochi
90a1aa9207 Try reading MAC addr from register if it fails to read from EEPROM.
Copied from FreeBSD driver.

Without this my JMC261 doesn't get MAC address properly.

OK'ed by bouyer@
2011-01-09 00:12:45 +00:00
jmcneill
0e137f7821 fix compilation when _MODULE is not defined 2011-01-07 18:24:53 +00:00
jmcneill
4608557aab modularize hdaudio and hdafg drivers 2011-01-07 15:30:29 +00:00
jmcneill
413c4ec645 support building cas(4) as a module 2011-01-07 11:17:22 +00:00
macallan
5e7d981582 clear the screen before redrawing on reentering text mode 2011-01-06 07:43:05 +00:00
jym
6da35ef6e8 bnx(4) SERDES NICs will definitely work better with the PHY initialization
code... rather than without.

(forgot to commit it two weeks ago -- should be part of the BCM 5709S
patch)
2011-01-06 03:37:55 +00:00
jym
53a9d61cb0 Reflect 5709S support in bnx(4) (comment fix) 2011-01-06 02:02:43 +00:00
sketch
4f0bf5bf27 Use aprint_verbose_dev. 2011-01-05 14:55:10 +00:00
jruoho
9844967b1c Stop using aprint_debug(9) in an interrupt handler. 2011-01-04 10:40:17 +00:00
jruoho
b4492a071f Use "temperature" rather than "TEMP" as the sensor name. No functional change. 2010-12-30 19:27:27 +00:00
jruoho
37ec4d38de Fill out struct ifnet::if_stop, which is required for network class devices
in pmf(9). Fixes the panic reported in PR # kern/44296.
2010-12-30 18:27:01 +00:00
phx
709cd38f1c Add TI PCI1510.
Enable TI12XX PCI interrupt in MFUNC when MFUNC pin0 and pin1 are zero.
Ignore the other pins, which may be non-zero (e.g. IRQSER in pin3).
2010-12-27 19:02:32 +00:00
macallan
b5ede66651 remove some ancient, unused debug code 2010-12-25 11:51:21 +00:00
macallan
6daafbee01 there is no R128_LITTLE_ENDIAN_EN flag, just lack of R128_HOST_BIG_ENDIAN_EN
Someone(tm) needs to test this on little endian hw
2010-12-25 03:29:08 +00:00
cegger
b10a541f83 read 32bits instead of 64bits and truncate the upper 32bits 2010-12-23 21:34:02 +00:00
cegger
cc6856437c build fix: add missing initializers 2010-12-23 21:11:37 +00:00
jakllsch
b8d95ef624 Enable ETHERCAP_VLAN_MTU in vr(4). Tested on VT6105M and VT8237R+.
May or may not work on earlier chips, for now just assume it will.
Provoked by PR#44243.
2010-12-16 17:07:44 +00:00
wiz
fbde82609d regen. 2010-12-16 10:10:53 +00:00
cegger
571a11ca1c Brdige -> Bridge 2010-12-16 07:02:07 +00:00
cegger
ca7fa2468a ioctl: KNF switch-case, remove useless brackets 2010-12-16 06:45:50 +00:00
cegger
fbb25dd545 ioctl: KNF switch-case 2010-12-16 06:19:01 +00:00
dyoung
ae5edec954 Stop wm(4) from needlessly resetting when you add or delete a vlan(4):
ifconfig vlan0 create vlan 2 vlanif wm0
ifconfig vlan0 destroy

It pays to avoid a reset because after a reset it can take about 30
seconds before wm0 is back on the net.

The patch garnered no objections on tech-net@.

Sponsored by CoyotePoint Systems Inc.
2010-12-14 02:51:46 +00:00
matt
100760831a On powerpc, recognize PCI Express RC root bridges. 2010-12-11 18:25:02 +00:00
matt
13920aa54a Add code to display MSI capabilities. 2010-12-11 18:22:24 +00:00
matt
dc6c35603f Switch to kmem from malloc.
Don't actually set the PREFETCH64 base/limit registers unless they really are
in use.
2010-12-11 18:21:14 +00:00
matt
999a2b8caf arcmsr needs sysmon_envsys 2010-12-11 18:18:09 +00:00
matt
62e486810b Add some PCI Express definitions, MSI, MSIX, etc. 2010-12-11 18:17:39 +00:00
matt
3becbb1c42 Make ehci deal with pci devices that have multiple companion functions and
ehci functions.  We can't assume that there will only be one ehci per device.
The existing code could not deal with:

Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 0 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 1 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 2 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 3 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 4 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 5 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x10) at pci1 dev 0 function 6 not configured
Netmos MCS9990 Quad USB 2.0 Port (USB serial bus, interface 0x20) at pci1 dev 0 function 7 not configured
2010-12-11 17:58:41 +00:00
matt
c25d92f48d Regen 2010-12-11 17:46:58 +00:00
matt
6a4b22310d Add some more devices that I've encountered. 2010-12-11 17:45:38 +00:00
martin
6251718992 Sanitize names a bit, still could use more namespace cleanup 2010-12-11 14:28:38 +00:00
pgoyette
3670e11cda Fix a couple of name-space changes that fell through the cracks.
Hello, martin!
2010-12-11 14:19:29 +00:00
martin
2d30a8bf37 Namespace police: don't use very broad names like CTX_MASK (which accidently
collide with sparc* specific MD macros), mechanically prefix with BNX_.
2010-12-11 12:14:06 +00:00
phx
2022dcaf61 Initialize sc_iot early enough to avoid a crash when the hardware monitor
function was found disabled.
2010-12-10 21:20:09 +00:00
jym
19179df1ef Remove htolexx calls, as bnx(4) NICs are capable of swapping endianess.
The macros for PAGE_SIZE were fixed with the previous patch (if_bnxreg.h
splitting, rev 1.11).

From OpenBSD. Their commit log reads:

bnx(4) is a bit special. The chip itself is capable of swapping endianess
so there is no need for htoleXX calls. The only thing needed is the correct
layout of the DMA-ed structures. Additionally it uses PAGE_SIZE but assumed
that it is always 4k. Fix the macros that failed to respect that so that it
works on 8k PAGE_SIZE systems. This makes bnx(4) work on sparc64.
2010-12-09 23:14:06 +00:00
jym
92c8678b42 Similar to bge(4), split if_bnxreg.h in two parts:
- if_bnxreg.h: general register values, flags... for bnx(4), that can
be included in other drivers
- if_bnxvar.h: PCI or device specific code (device state data, debug
macros etc.), which should remain private to bnx(4)

No comments, no objections on current-users@.

See discussion:
http://mail-index.netbsd.org/current-users/2010/12/01/msg014926.html
2010-12-09 22:34:37 +00:00
jym
e8fab53aa6 Missing break in switch case. From OpenBSD. 2010-11-27 17:48:58 +00:00
dholland
71d00f92fa Don't test flags with &&. From Henning Petersen in PR 44151. 2010-11-26 21:59:49 +00:00
christos
9f3048f962 fix typos 2010-11-23 04:36:09 +00:00
christos
d50ed4470e split if_wi 2010-11-23 04:33:09 +00:00
dholland
a8d4826eab Extend the workaround for the 3ware 9650 full-queue bug to a full-fledged
quirk, and use it for the 9690 as well where it's also needed. Patch by me,
problem hunted down by Jiri Novotny and Zdenek Slavet and reported in
PR 44002.
2010-11-22 23:02:16 +00:00
macallan
486592ab8a add PCI_MAGIC_IO_RANGE so non-x86 machines can map the IO range belonging to
the console vga
thanks to nick for reminding me to commit this and for confirming that it works as intended
2010-11-19 13:38:17 +00:00
dholland
4c60482042 Fix build when NATA_DMA is 0. 2010-11-17 19:36:54 +00:00
macallan
8775ed09b7 explicitly set and clear the backlight on bit, just in case someone messes
with it while we're not looking
2010-11-15 23:19:33 +00:00
uebayasi
e379b4b16c tsleep needs sys/proc.h. 2010-11-15 05:57:07 +00:00
uebayasi
af8968bc24 Avoid pointless use of a sysctl definition, CTL_NAMES. Clean up whitespace. 2010-11-14 05:31:59 +00:00
uebayasi
8184d5dc03 Don't pull in the whole uvm(9) API to access only PAGE_SIZE and
some other constants.  These are provided by sys/param.h now.
2010-11-13 13:51:57 +00:00
jnemeth
512709b547 PR/39094 - Kaspar Brand -- Add et (Agere ET1310/ET1301) network driver
The et(4) driver supports PCI Express Ethernet adapters based on
the Agere/LSI ET1310/ET1301 integrated MAC/PHY.

The et(4) driver was written by Sepherosa Ziehau for DragonFlyBSD,
ported to OpenBSD by Jonathan Gray and subsequently ported to NetBSD
by Kaspar Brand.
2010-11-13 00:47:23 +00:00
cegger
b5d00ec381 regen. 2010-11-11 14:38:36 +00:00
cegger
b978acc3f7 add AMD RD880, ATI Radeon HD5600, ATI Radeon HD4200 and Atheros AR9285 2010-11-11 14:37:41 +00:00
skrll
5f5029c482 Add nside(4) - a driver for the National Semiconductor PC87415 IDE
controller as found in many HP PA-RISC machines.

From OpenBSD.

Reviewed by Manuel Bouyer.
2010-11-10 22:34:24 +00:00
shattered
3a1b5ff0fa PR/10000: disable fast scrolling on Cyrix GXLV (CS5530 chipset)
OK by wiz@
2010-11-09 21:12:19 +00:00
skrll
f2dcf75998 Update sti(4) from OpenBSD bringing across support for sti @ pci.
Thanks to Adam Hoka for testing.
2010-11-09 12:24:47 +00:00
jakllsch
31471141e4 Add Intel SCH IDE controller driver.
From OpenBSD via Tomokazu HARADA in PR#42310.
2010-11-06 14:56:12 +00:00
jakllsch
35d76c69ca regen. 2010-11-06 14:21:41 +00:00
jakllsch
116ea9758b Add Intel SCH IDE Controller, from OpenBSD via Tomokazu HARADA in PR#42310. 2010-11-06 14:20:34 +00:00
jakllsch
09d6ff1735 Enable detachment.
Tested on SiI 0680 (native mapped).
2010-11-06 01:25:32 +00:00
jakllsch
c9c419a606 Enable detachment.
Tested on nForce 4 IDE (compatiblity mapped) and SATA (native mapped).
2010-11-06 01:24:55 +00:00
jakllsch
4d3ab04c3b Rework pciide(4) detachment to take the legacy interrupt mapping into
consideration and avoid future code duplication.

Ports wanting to enable detachment of controllers with compatibility-mapped
channels will need to supply a pciide_machdep_compat_intr_disestablish()
function.
2010-11-06 00:29:09 +00:00
jakllsch
895c134195 pciide(4): Sprinkle static, add detachment support. 2010-11-05 19:50:18 +00:00
jakllsch
311896a44b Correct copy/paste error in as-of-yet-unused pciide_common_detach(). 2010-11-05 19:48:43 +00:00
jakllsch
5947ac4e8e Pave the way for detachment of pciide(4)-family ATA controllers. 2010-11-05 18:07:23 +00:00
jakllsch
689f59981c Make nfe(4) detachable. 2010-11-03 14:03:40 +00:00
nakayama
7075a3643b Add a workaround for 48-bit LBA DMA access bug on M5229 rev. <= 0xc4.
- use DMA in 28-bit LBA addressing.
- use PIO in 48-bit LBA addressing.

Idea and message are from FreeBSD, and tested on M5229 rev. 0xc3 in
my Sun Netra X1 with 160GB drive.
2010-11-03 11:46:30 +00:00
macallan
7e5689a504 pull in rasops8 for radeonfb, while there defflag a bunch of options and
make them all use the same prefix
2010-11-03 00:49:02 +00:00
jakllsch
c319f56c83 Explicitly set PCI_COMMAND_MASTER_ENABLE. 2010-11-02 16:56:47 +00:00
jakllsch
e55e8741f7 Explicitly set PCI_COMMAND_MASTER_ENABLE, in case the platform firmware didn't. 2010-11-02 16:54:29 +00:00
macallan
e8b84b908e when drawing characters by software make sure the engine is idle before
accessing video memory
2010-11-02 14:32:58 +00:00
taca
a00a1fe7ff - Change "else" + space + tab "if" to "else" + space + "if".
- A word "mechanism" was accidently separated in to "me" and "chanism"
  in comment.

No functional chanage and I found it while reading if_wm.c yesterday.
2010-10-16 06:31:49 +00:00
taca
3eda447adb Remove a variable which assigned but never used, I found while reading
if_bge.c yesterday.
2010-10-16 06:29:33 +00:00
taca
bde2398ad6 Regen. 2010-10-14 03:36:10 +00:00
taca
7587f075b4 Remove duplicate entries:
* "vendor SYBATECH" exists as vendor SYBA.
* "product INTEL 82915G_IGD" simply duplicated.
2010-10-14 03:35:23 +00:00
macallan
598ca8db3e make higher resolutions than 1024x768 work 2010-10-12 16:00:21 +00:00
christos
d0d0f54f24 restore binary compatibility for amd64; requested by joerg. 2010-10-10 21:24:34 +00:00
phx
e5dc6216e2 Missing \n after printing device type. 2010-10-09 19:46:15 +00:00
macallan
895c84f438 use WSDISPLAYIO_PARAM_BACKLIGHT as a switch and WSDISPLAYIO_PARAM_BRIGHTNESS
for backlight level instead of following radeonfb
TODO: adapt radeonfb and powerd scripts
2010-10-07 20:39:54 +00:00
macallan
4fbc897fbb finish device_t-ification 2010-10-07 07:53:53 +00:00
macallan
7ad510fcea cleanup debug code 2010-10-02 23:54:03 +00:00
macallan
7540c6ba94 fix a typo 2010-10-02 23:50:04 +00:00
jym
c833615d4e Revert christos@ fix for the i386 paddr_t change and agp_allocate.
Make 'physical' element of the struct agp_allocate an uint32_t. This
is similar to what other kernels do (at least Solaris and Linux).

This patch should make xserver work again within an i386 userland in a
64 bits paddr_t world.

Thanks to Iain Hibbert for reporting the break, and providing initial hints.

See http://mail-index.netbsd.org/current-users/2010/09/27/msg014418.html
2010-10-02 21:52:14 +00:00
macallan
672cabf514 use the drawing engine to draw characters so we don't have to sync after each
command and don't need to map the framebuffer anymore
2010-09-30 03:16:51 +00:00
macallan
9d850516d4 add a couple more register definitions, mostly from xf86-video-r128 2010-09-30 03:14:39 +00:00
christos
65e9d79b30 make this compile. 2010-09-28 20:14:11 +00:00
christos
bf1dd8baad - fixes from Jean-Yves Migeon
- handle transitional paddr_t period for i386
2010-09-28 14:02:48 +00:00
christos
dd6d336f67 move all the compat code here, and #ifdef __i386__ from mrg. 2010-09-27 22:53:46 +00:00
christos
2b8db0f1a7 backwards compat code for paddr_t being 32 bits. 2010-09-27 21:25:38 +00:00
macallan
491cb04e7e support backlight control via wsconsctl 2010-09-14 02:11:06 +00:00
jmcneill
b86abf544c Add Conexant codec IDs 2010-09-13 22:37:02 +00:00
macallan
b10b3a9713 add backlight control via PMF
TODO: support wsconsctl
2010-09-09 01:22:10 +00:00
jmcneill
4ac1609716 add a list of codec id->name mappings. they are printed at attach time
and exported via the AUDIO_GETDEV ioctl
2010-09-02 01:55:31 +00:00
christos
26a6b06d3f Don't try to hold the mutex if we are disabling the card because we can
be called from an interrupt context. While this is not strictly correct,
we are SoL anyway so this does not matter.
2010-08-29 07:00:13 +00:00
dogcow
319fe84db4 Regen for BCM43xx update. 2010-08-26 10:23:24 +00:00
dogcow
18ae5de59e Add several Broadcom BCM43xx devices. 2010-08-26 10:21:56 +00:00
macallan
57e00fd8e6 re-initialize the DAC when re-entering terminal emulation mode 2010-08-24 12:47:17 +00:00
pgoyette
f05cff10bd Update the various xxx_verbose modules to conform to the module subsystem's
new locking protocol.
2010-08-21 13:18:35 +00:00
jmcneill
d7a3ccfac9 more assoc dump fixes 2010-08-19 18:06:37 +00:00
macallan
3bc68298fb - fix 8 bit support and run the console in 8 bit for a little extra speed
- fix colour oddities seen occasionally on sparc64
- try to use firmware DAC wiring until we figure out what's wrong
TODO:
- find out why radeonfb gets the DAC wiring ass-backwards on my xvr-100
  while Xorg's radeon driver gets it right
- find out why reverse characters aren't drawn in reverse

tested on macppc and sparc64
2010-08-17 18:53:16 +00:00
jmcneill
359c089365 kern/43542: 32kHz playback sounds like hissing analog TV snow
Instead of specifying a range of supported sample rates based on the lowest
and highest available frequencies, only advertise rates that the codec reports
as working. Let aurateconv take care of the rest.
2010-08-15 22:32:02 +00:00
jmcneill
de738a3dd4 be less spammy when dumping assocs. extra details can be had with boot -x 2010-08-15 19:39:56 +00:00
jmcneill
3b73c6d5a8 properly round block and buffer sizes -- nvidia HDA controllers work now 2010-08-15 16:21:46 +00:00
joerg
9a980fa506 Increase safety of the speaker -> beep generator workaround by check
that no such widget is defined first.  On a Dell Latitude 430, widget
0x14 is the beep generator and the original version would replace the
normal speaker output, breaking head phone redirection in the process.

Discussed with jmcneill@
2010-08-10 13:47:38 +00:00
joerg
1619987e1b Reduce noise by explicitly skipping unassociated pins. 2010-08-10 11:14:30 +00:00
jmcneill
086ee7443c add support for nvidia hdaudio controllers 2010-08-07 16:59:48 +00:00
jmcneill
c0b9576b27 Reject invalid vendor IDs (say if there was a RIRB timeout while reading the
VID registers)
2010-08-07 16:24:19 +00:00
jmcneill
3c58337823 Add NVIDIA MCP77 to the quirk table, so ahcisata will attach when the
BIOS is set to 'RAID' mode.
2010-08-07 02:39:01 +00:00
jakllsch
0da82292a5 Use fewer magic constants related to the GCAP register. 2010-08-03 04:02:21 +00:00
msaitoh
45a4c8de5d Add the following cards' support from FreeBSD:
- Comtrol RocketPort 550/4, 550/8 and 550/16 series
 - Lava Computers Quatro-PCI
 - some NetMos NM9865 cards
 - VScom PCI-200Li
2010-08-01 18:50:24 +00:00
msaitoh
f5a49f6f0f regen. 2010-08-01 18:45:53 +00:00
msaitoh
cafe0a8f59 Add VScom PCI-200Li 2010-08-01 18:45:24 +00:00
kiyohara
06d4ca3757 Remove mvsata_pci_products's terminator(-1). Instead of it use __arraycount(). 2010-08-01 07:38:17 +00:00
njoly
7ca92dcdc4 Adjust for Intel ICH10 devices update. 2010-07-30 15:28:09 +00:00
njoly
d94ad60f17 Regen for ICH10 devices update. 2010-07-30 15:27:07 +00:00
njoly
6402c8c071 Update ICH10 devices, from Intel I/O Controller Hub 10 datasheet
errata.
2010-07-30 15:26:22 +00:00
njoly
dce6462ccf Regen for Intel LPC updates. 2010-07-29 18:16:33 +00:00
njoly
cd15d85b91 Adjust ICH10 watchdog timer entries which are really LPC interface
bridges. While here consistently use `xxx LPC Interface Bridge' for
Intel products.
2010-07-29 18:15:01 +00:00
njoly
997cfa70d2 Regen for Matrox MGA G200eW. 2010-07-29 17:54:14 +00:00
njoly
ce318f81d9 Add Matrox MGA G200eW. From OpenBSD. 2010-07-29 17:53:19 +00:00
msaitoh
5112be368f regen. 2010-07-28 00:00:11 +00:00
msaitoh
e595ecc12f Add Quatech, System Base, Pcre Systems and Syba Tech. 2010-07-27 23:56:29 +00:00
jakllsch
95ea24f1a1 Use use 64-bit DMA tag (where available and supported) for ahcisata.
Avoid the possible ATI SB600 64-bit DMA problem.
2010-07-27 22:27:52 +00:00