Commit Graph

7360 Commits

Author SHA1 Message Date
msaitoh
66284465df Add entries for Intel 6 series' devices. 2011-05-15 00:59:36 +00:00
martin
a9fb883f63 PR kern/44956: add support for Qinheng PCI cards to the puc driver 2011-05-14 22:07:38 +00:00
martin
0264248b21 Regen 2011-05-14 21:58:48 +00:00
martin
17cff40edc Add Nanjing QinHeng Electronics, from PR kern/44956. 2011-05-14 21:57:52 +00:00
msaitoh
f28852500d regen. 2011-05-13 01:34:04 +00:00
msaitoh
452427b9ae add entries for 82579LM and 82579V 2011-05-13 01:33:10 +00:00
dyoung
e778d5fdd6 Constify pci_attach_args. 2011-05-11 00:12:41 +00:00
dyoung
9316f952b3 Constify pci_attach_args. 2011-05-10 23:48:33 +00:00
dyoung
e4c26632ea Stop abuse of PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED. The flags
specifically tell a driver that bridges upstream forward PCI I/O (or
memory) transactions to the device."  Only bus drivers have any business
modifying these.
2011-05-10 18:31:33 +00:00
macallan
bcb7f01345 add support for (ancient) Mach64 CX and GX, while there make sure the visible
vram area starts at the same offset as the area we're going to draw into -
zero that is.
from David Riley
2011-05-04 23:36:21 +00:00
manu
e687bb4185 Add support for new SUNIX PCI seriel and/or parallel adapters, with new
SUNIX vendor Id 0x1fd4 and product Id 0x1999. Constants were taken from
Linux open source driver distributed by SUNIX.

The following models should be supported now:
5008 1 parallel port
5016 16 serial ports, only 8 supported right now (PUC_MAX_PORTS limit)
5027 1 serial port
5037 2 serial ports
5056 4 serial ports
5066 8 serial ports, this model is the only one that was actually tested.
5069 1 serial port and 1 parallel port
5079 2 serial ports and 1 parallel port
5099 4 serial ports and 1 parallel port
2011-05-02 14:23:24 +00:00
manu
355f39714b Don't conflict SUNIX new vendor Id with the previous one 2011-05-02 14:06:50 +00:00
manu
8b8d8da0a5 Add new PCI vendor Id for Sunix, and the corresponding device Id. 2011-05-02 14:00:09 +00:00
jym
a30b258c9c Fix BCM5709 PHY detection for ethernet PHYs (the SerDes case being already
handled):
- export bge(4) and bnx(4) CHIP ID and PHY flags to brgphy(4). Move to
"unsigned int" rather than "int", and reuse the same softc members for
chipid and phyflags (behavior controlled by the sc_isbge/isbnx boolean).
- apply bug fix for revisions A and B, so that autonegotiation can
complete (from OpenBSD).

Bug reported by Rivo Nurges via private mail, patch tested and
confirmed working by him (with thanks!)
2011-05-02 09:03:10 +00:00
bouyer
f523d760b8 - Properly count collisions
- call vte_rxfilter() after starting transmit/receive; this seems to
  fix some IPv6-related multicast issues for me
- when the MCR0_BROADCAST bit is set broadcast receive is disabled.
  Rename it to MCR0_BROADCAST_DIS to reflect its function, and fix usage.
- Fix loop over multicast addresses to not set the same address in the
  3 perfect filter slots.
2011-04-28 17:32:48 +00:00
plunky
20a9540ac8 use static inline for msk_rxvalid(), it is not referenced elsewhere
(avoids C99 vs GNU semantics for external inline functions)
2011-04-24 18:53:02 +00:00
rmind
2626d57668 Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for
consistency.  Remove some unnecessary malloc.h inclusions as well.
2011-04-24 16:26:51 +00:00
christos
d2eb905628 PR/41258: Elias Benali: Try to get the ethernet address from the BIOS before
failing.
2011-04-20 20:15:03 +00:00
buhrow
9605db34e0 Fixes for kern/40018.
Our driver initializes the Broadcom hardware to peform a tcp and udp
checksum on only the payload of the tcp or udp packet, rather than the
entire packet.  The FreeBSD, OpenBSD  and Linux drivers instruct the hardware to compute
the checksum for the entire packet.  I believe the bug is that some revisions
of the BCM hardware, under certain circumstances, revert to doing the
complete checksum calculation, as the FreeBSD, OpenBSD  and Linux drivers
request, while things are running. As
a result, when we pull the computed checksum from the hardware and pass it
up to the upper layers, we assume the checksum is the more minimal
one, and the upper layers perform the appropriate checks, which, when this
happens, cause the packet to be rejected because the resultant checksum is
decidedly incorrect.
	This patch changes the driver to instruct the hardware to perform the
checksum over the entire packet, just as the FreeBSD, OpenBSD  and
Linux drivers do, and to notify the upper layers appropriately.

This patch appears to work on all revisions of the hardware that have been
tested.  (See the list in the bug report.)

this patch is approved by tls.
2011-04-18 22:05:39 +00:00
jakllsch
23e5cf2d9f Make previous compile. 2011-04-16 14:03:28 +00:00
jakllsch
0863915cdf Ensure PCI_COMMAND_MASTER_ENABLE. 2011-04-16 13:47:20 +00:00
dyoung
8a24781c83 Refer to bits in the PCI CSR with using PCI_COMMAND_* instead of
PCI_FLAGS_*: change PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED to
PCI_COMMAND_IO_ENABLE and PCI_COMMAND_MEM_ENABLE, respectively.
2011-04-15 21:47:39 +00:00
wiz
6a9d169632 regen (+ ATI Radeon HD4650) 2011-04-13 22:24:45 +00:00
wiz
9a1c9ae296 + ATI Radeon HD4650. 2011-04-13 22:24:12 +00:00
jakllsch
b8a6ae2e64 Fix regression introduced in 1.72.
(Attach arguments need to be copied before using the copy.)
2011-04-10 15:02:01 +00:00
sborrill
933ebb282e Revert previous couple of commits. bge_setvlan() is only called by
bge_init() and so does not get called when a vlan child is added. Calling
bge_setvlan() from bge_ifflags_cb() doesn't work either as it appears that
the callback is called before ec_capenable is updated by if_vlan.c.
2011-04-08 17:45:10 +00:00
sborrill
fef6e6696d Fix typo in previous commit that would have stopped relevant bit being set. 2011-04-08 15:49:37 +00:00
sborrill
bfaa893b9f PR kern/38871
Fix LAN on bge(4), alc(4). Flag VLAN capability in ec_capenable as used by network
card drivers.
2011-04-08 13:56:51 +00:00
dyoung
fd66c04152 Use PCI_MAPREG_START instead of the anonymous constant 0x10. 2011-04-05 23:37:46 +00:00
dyoung
ff183015a1 Bitwise-OR PCI_COMMAND_IO_ENABLE | PCI_COMMAND_MEM_ENABLE into
the PCI Command Register instead of PCI_FLAGS_IO_ENABLED |
PCI_FLAGS_MEM_ENABLED.  The latter amounts to the same value, but the
names are in the pa_flags namespace instead of the PCI Command Register
bits namespace.
2011-04-05 23:25:00 +00:00
dyoung
bd9419d824 Lightly KNF. Changes to the generated assembly language appeared to
correspond to line numbers in KASSERT() statements.
2011-04-05 23:10:52 +00:00
macallan
fdc4af2490 fix a typo 2011-04-05 23:05:06 +00:00
dyoung
2e65254f9b Deregister PMF handlers during detachment. Complete the host controller
shutdown.
2011-04-04 22:48:15 +00:00
dyoung
3c888757d8 Make rdcide_chip_map()'s pci_attach_args argument const. 2011-04-04 22:13:58 +00:00
dyoung
d3e53912d2 Neither pci_dma64_available(), pci_probe_device(), pci_mapreg_map(9),
pci_find_rom(), pci_intr_map(9), pci_enumerate_bus(), nor the match
predicate passed to pciide_compat_intr_establish() should ever modify
their pci_attach_args argument, so make their pci_attach_args arguments
const and deal with the fallout throughout the kernel.

For the most part, these changes add a 'const' where there was no
'const' before, however, some drivers and MD code used to modify
pci_attach_args.  Now those drivers either copy their pci_attach_args
and modify the copy, or refrain from modifying pci_attach_args:

Xen: according to Manuel Bouyer, writing to pci_attach_args in
    pci_intr_map() was a leftover from Xen 2.  Probably a bug.  I
    stopped writing it.  I have not tested this change.

siside(4): sis_hostbr_match() needlessly wrote to pci_attach_args.
    Probably a bug.  I use a temporary variable.  I have not tested this
    change.

slide(4): sl82c105_chip_map() overwrote the caller's pci_attach_args.
    Probably a bug.  Use a local pci_attach_args.  I have not tested
    this change.

viaide(4): via_sata_chip_map() and via_sata_chip_map_new() overwrote the
    caller's pci_attach_args.  Probably a bug.  Make a local copy of the
    caller's pci_attach_args and modify the copy.  I have not tested
    this change.

While I'm here, make pci_mapreg_submap() static.

With these changes in place, I have tested the compilation of these
kernels:

alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-eb NSLU2
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE GUMSTIX
	HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321 IXDP425 IXM1200
	KUROBOX_PRO LUBBOCK MARVELL_NAS NAPPI SHEEVAPLUG SMDK2800 TEAMASA_NPWR
	TEAMASA_NPWR_FC TS7200 TWINTAIL ZAO425
evbmips-el AP30 DBAU1500 DBAU1550 MALTA MERAKI MTX-1 OMSAL400 RB153 WGT624V3
evbmips64-el XLSATX
evbppc EV64260 MPC8536DS MPC8548CDS OPENBLOCKS200 OPENBLOCKS266
	OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sgimips GENERIC32_IP2x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC

As of Sun Apr 3 15:26:26 CDT 2011, I could not compile these kernels
with or without my patches in place:

### evbmips-el GDIUM

nbmake: nbmake: don't know how to make /home/dyoung/pristine-nbsd/src/sys/arch/mips/mips/softintr.c. Stop

### evbarm-el MPCSA_GENERIC
src/sys/arch/evbarm/conf/MPCSA_GENERIC:318: ds1672rtc*: unknown device `ds1672rtc'

### ia64 GENERIC

/tmp/genassym.28085/assym.c: In function 'f111':
/tmp/genassym.28085/assym.c:67: error: invalid application of 'sizeof' to incomplete type 'struct pcb'
/tmp/genassym.28085/assym.c:76: error: dereferencing pointer to incomplete type

### sgimips GENERIC32_IP3x

crmfb.o: In function `crmfb_attach':
crmfb.c:(.text+0x2304): undefined reference to `ddc_read_edid'
crmfb.c:(.text+0x2304): relocation truncated to fit: R_MIPS_26 against `ddc_read_edid'
crmfb.c:(.text+0x234c): undefined reference to `edid_parse'
crmfb.c:(.text+0x234c): relocation truncated to fit: R_MIPS_26 against `edid_parse'
crmfb.c:(.text+0x2354): undefined reference to `edid_print'
crmfb.c:(.text+0x2354): relocation truncated to fit: R_MIPS_26 against `edid_print'
2011-04-04 20:37:49 +00:00
bouyer
cd93091b0b Regen: Add RDC PCI-ISA bridge 2011-04-04 18:01:20 +00:00
bouyer
646e5cf82e Add RDC PCI-ISA bridge 2011-04-04 17:59:59 +00:00
dyoung
cf724f606c Regen. 2011-04-04 15:13:08 +00:00
bouyer
88db889213 Add rdcide(4), a driver for the IDE controller found in RDC's
vortex86/PMX-1000 system-on-chip.
2011-04-04 14:33:51 +00:00
dyoung
1ef7297c4c Deregister in ahci_pci_detach() the PMF hooks registered in
ahci_pci_attach().
2011-04-03 20:05:30 +00:00
mbalmer
1571556be6 Fix misplaced parenthesis. From henning.petersen@t-online.de, thanks. 2011-04-02 08:11:31 +00:00
bouyer
be340e279e Some bus_dma(9)-related and memory allocation fixes:
- always bus_dmamap_unload() before recycling a receive descriptor
- make sure to not sleep from interrupt context: call bus_dmamap_load with
  M_NOWAIT, and create dma maps BUS_DMA_ALLOCNOW.
- if a receive descriptor has a NULL mbuf try to allocate a new one, don't
  try to receive it.
2011-03-30 18:11:37 +00:00
macallan
ca8e7514cb complete the driver/bus frontend split and make sure the driver can deal with
both PCI and VLB variants of the chip
2011-03-23 04:02:43 +00:00
matt
d267d38067 regen. 2011-03-16 23:20:00 +00:00
matt
2987df4067 Add Freescale P2020/P2010 device ids 2011-03-16 23:19:32 +00:00
phx
8a34c88d70 When shutting down the network interface it is not enough to stop it. Some
boards also need to reset the chip, otherwise bad things can happen.
2011-03-12 16:52:05 +00:00
he
c5abf7f984 Add two NetMos NM9865 1-port and 2-port controllers, as found in
2x and 1x on a 4-port card sold as Sunsway/ST Lab I-430.
2011-03-11 20:22:53 +00:00
phx
d1be3375cc On the ST1023 (and compatible, like IP1000A), the mac-address can also be
passed via device properties, when the serial EEPROM is missing or empty.
2011-03-08 19:06:58 +00:00
macallan
e5f1c17a70 only try to map the framebuffer if we don't already have an address
With this radeondrm works with genfb and r6xx.
2011-03-08 03:22:29 +00:00
matt
e7a3ba5387 Regen. 2011-03-05 15:36:50 +00:00
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