Commit Graph

7354 Commits

Author SHA1 Message Date
joerg 2c0909e78c Use a format string when printing strings 2011-06-09 14:46:33 +00:00
cegger 159dac67ee the BCM5785 is a PCIe chip but does not report PCIe capabilities.
Check for this chip explicitely and enable PCIe.
Fixes 'firmware handshake timeout'. Tested with root on nfs.

patch from msaitoh@
2011-06-09 12:04:29 +00:00
cegger 047aa05ba8 regen. 2011-06-07 10:08:02 +00:00
cegger da2c0a5809 add ATI Radeon Cypress and Lucent IEEE 1394b Controller 2011-06-07 10:07:35 +00:00
msaitoh 57ac6d0bbe Add two new capabilities(PCI_CAP_SATA and PCI_CAP_PCIAF). 2011-06-06 18:27:12 +00:00
msaitoh d356bb8757 regen. 2011-06-06 14:31:51 +00:00
msaitoh acfe6f77e1 Rename 82801DB LPC Interface Bridge for consisitency. 2011-06-06 14:31:23 +00:00
pgoyette 7d8bd19e5d Update to use the new name for the sensor's private data.
XXX This driver still uses the sensor's value_min for an unrelated
XXX purpose, but changing that will have to wait for another day.
2011-06-04 13:25:56 +00:00
cegger 462a6f12c8 fix crash by NULL pointer dereferencing I get everytime
right after this message:

bge0: discarding oversize frame (len=-4)
2011-06-03 09:51:40 +00:00
macallan dd3292d9f1 move wsdisplay_accessops into the softc so multiple instances have a chance
to work without stepping on each other's toes
2011-06-01 05:06:17 +00:00
phx 9a6f7751cf The Genesis interface provides a register in the device specific config space
to automatically revert the byte order in all descriptors.
Make sure this feature is inactive. Otherwise the driver is unable to
receive or transmit any frame.
2011-05-29 13:31:30 +00:00
phx a19dce7f31 regen 2011-05-28 22:54:08 +00:00
phx d04c2d9218 Renamed VT6410 to VT6410_RAID. 2011-05-28 22:53:23 +00:00
phx b22ae29ee8 regen 2011-05-28 22:48:50 +00:00
phx ab0ab976ea Add VIA VT6410 ATA RAID controller. 2011-05-28 22:47:58 +00:00
ryo b163ca7de6 Add support for SYSTEMBASE SB16C105x 4-port/8-port serial PCI cards.
- Added initialize code for SB16C105x to puc.c, but
  It is better to add a member (*config_function)() to
  struct puc_device_description and use it
- It seems SB16C1054 *rev 0x91* has different BAR layout, but not supported yet.
2011-05-28 10:48:50 +00:00
ryo 1924fdd283 Regen. 2011-05-28 10:45:08 +00:00
ryo c1dc84bf44 add SystemBase SB16C1058 8 port serial cards 2011-05-28 10:44:43 +00:00
matt 12a7a4f889 Add quirk for ALI M5228 2011-05-27 15:11:59 +00:00
matt 642d39aa88 Regen. 2011-05-27 15:11:17 +00:00
matt 69cd0fdb34 Add ALI M5288 SATA/Raid Controller 2011-05-27 15:09:44 +00:00
msaitoh 41e7900055 Fix invalid PBA setting on ICH{9,10}. This bug was introduced in the last
commit. I noticed this problem via mail from spz.
2011-05-24 22:46:42 +00:00
joerg dd579972c6 Explicitly get rid of constness. 2011-05-24 18:28:01 +00:00
joerg b345e8d051 Use proper format string 2011-05-24 18:17:24 +00:00
joerg ee2f528836 Properly use format string 2011-05-24 16:42:10 +00:00
drochner 4bd7f95161 -remove references to crypto/arc4/arc4.* -- the code isn't used
anywhere afaics
 (The confusion comes probably from use of arc4random() at various places,
  but this lives in libkern and doesn't share code with the former.)
-g/c non-implementation of arc4 encryption in swcrypto(4)
-remove special casing of ARC4 in crypto(4) -- the point is that it
 doesn't use an IV, and this fact is made explicit by the new "ivsize"
 property of xforms
2011-05-23 15:37:35 +00:00
mrg de5a910070 match some fujitsu bge interfaces seen on PRIMEPOWER 250/450 systems.
from Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.
2011-05-22 08:15:20 +00:00
mrg cdcd8bddc9 regenerate. 2011-05-22 08:13:56 +00:00
mrg 8e96c9415e add some fujitsu ethernet id's and a new vendor id. partly from
Michael Moll <kvedulv@kvedulv.de>, taken from openbsd.

XXX: move the #if 0'd usage of PCI_VENDOR_CITICORP inside the #if 0 code
XXX: region, as this id conflits with the (4th) fijutsi id.
2011-05-22 08:13:17 +00:00
msaitoh ab5c26c930 Add newer Wireless WiFi Link 4965 devices, Centrino Wireless-N 1030
and Centrino Advanced-N 6230
2011-05-21 12:51:47 +00:00
msaitoh 939f31d12a regen 2011-05-21 12:49:50 +00:00
msaitoh 7d7e944c06 Add some iwn(4) devices. 2011-05-21 12:48:59 +00:00
msaitoh 56f5ce9baa Add support for 6050(6250 and 6150) and 6005(6205).
TODO: update iwn.4 manpage.
2011-05-20 01:59:14 +00:00
msaitoh 40d6eb691f Add PCH2 support. 2011-05-20 01:51:36 +00:00
msaitoh f3a272623e - Add PCH2 support.
- Add 82579 support.
  - Change PBA size for PCH from 10K to 26K as FreeBSD's em-7.1.7
- Add yet another 82567V support.
- Add ICH10+HANKSVILL support.
- Add 82580 quad-1000BaseX support.
2011-05-20 00:57:42 +00:00
msaitoh 4ea65b9c4a regen. 2011-05-20 00:50:47 +00:00
msaitoh 2ecc0b2cf4 Add Intel 82567V, 82580 Quad-1000BaseX and Hanksvill with ICH10. 2011-05-20 00:50:19 +00:00
dyoung b11777e520 #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:02:43 +00:00
dyoung 399cdcdfe9 MI code must #include <sys/bus.h>, not <machine/bus.h>. 2011-05-18 01:01:59 +00:00
dyoung a6b2b8396b PCI_FLAGS_IO_ENABLED and PCI_FLAGS_MEM_ENABLED changed their functional
role in NetBSD (drivers are no longer supposed to write these to
pa_flags) without changing name.  Correct that.

Rename PCI_FLAGS_IO_ENABLED to PCI_FLAGS_IO_OKAY and
PCI_FLAGS_MEM_ENABLED to PCI_FLAGS_MEM_OKAY, thus making their names
consistent with the other PCI flags and poisoning 3rd-party driver
sources that use the flags in the old bad way.

This patch produces no binary changes in this set of PCI kernels when
they are compiled w/o 'options DIAGNOSTIC' and w/ -V MKREPRO=yes:

algor P4032 P5064 P6032
alpha GENERIC
amd64 GENERIC XEN3_DOM0
arc GENERIC
atari HADES MILAN-PCIIDE
bebox GENERIC
cats GENERIC
cobalt GENERIC
evbarm-el ADI_BRH ARMADILLO9 CP3100 GEMINI GEMINI_MASTER GEMINI_SLAVE
evbarm-el GUMSTIX HDL_G IMX31LITE INTEGRATOR IQ31244 IQ80310 IQ80321
evbarm-el IXDP425 IXM1200 KUROBOX_PRO
evbarm-el LUBBOCK MARVELL_NAS NAPPI NSLU2 SHEEVAPLUG SMDK2800 TEAMASA_NPWR
evbarm-el 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
evbppc OPENBLOCKS266_OPT P2020RDB PMPPC RB800 WALNUT
hp700 GENERIC
i386 ALL XEN3_DOM0 XEN3_DOMU
ibmnws GENERIC
iyonix GENERIC
landisk GENERIC
macppc GENERIC
mvmeppc GENERIC
netwinder GENERIC
ofppc GENERIC
prep GENERIC
sandpoint GENERIC
sbmips-el GENERIC
sgimips GENERIC32_IP2x GENERIC32_IP3x
sparc GENERIC_SUN4U KRUPS
sparc64 GENERIC
2011-05-17 17:34:47 +00:00
macallan a37153870a don't leave a mess on screen when attaching, while there use VCONS_DONT_READ
if VCONS_DRAW_INTR is set
2011-05-16 00:59:37 +00:00
christos 97a122a2f7 update from OpenBSD by msaitoh. Tested on amd64. 2011-05-15 13:56:20 +00:00
msaitoh 22c389a767 Add support for Intel 6 series. 2011-05-15 01:00:52 +00:00
msaitoh 720f669b3d regen. 2011-05-15 01:00:07 +00:00
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