Commit Graph

7109 Commits

Author SHA1 Message Date
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