Commit Graph

60 Commits

Author SHA1 Message Date
joerg 85f9c6ce1a - device/softc split for fxp(4) 2008-07-09 17:07:28 +00:00
martin ce099b4099 Remove clause 3 and 4 from TNF licenses 2008-04-28 20:22:51 +00:00
cegger 9d57c80079 use aprint_*_dev and device_xname 2008-04-10 19:13:36 +00:00
dyoung 8ce2158b0c pci_activate() expects for its void * argument to be a device_t,
so change the type of the argument to device_t.  Update each use
of pci_activate().

Use device_t and accessors.  Use aprint_*_dev().
2008-03-21 07:47:43 +00:00
dyoung f580a3a869 Use PMF_FN_ARGS, PMF_FN_PROTO. 2008-02-29 06:13:39 +00:00
hamajima e56b5e9499 Match on board ethernet controller on VGN-TX91PS. 2007-12-24 17:07:40 +00:00
degroote 087fae3d54 Register fxp @ pci to the pmf framework
Kill reference to old powerhook framework.
2007-12-10 16:15:02 +00:00
ad a2a3828545 machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h 2007-10-19 11:59:34 +00:00
enami a51f8d642d Match on board ethernet controller on VGN-TX72PZ. 2006-11-26 01:15:39 +00:00
christos 168cd830d2 __unused removal on arguments; approved by core. 2006-11-16 01:32:37 +00:00
christos 4d595fd7b1 - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
2006-10-12 01:30:41 +00:00
cube f33f698361 Make fxp(4) support the PRO/100 VE variant just added to pcidevs.
Reported by rix on #NetBSD-code on freenode.
2006-09-27 21:46:15 +00:00
jmcneill f135e0d607 Add "name" parameter to powerhook_establish, to aid debugging. No objections
on tech-kern@
2006-09-24 03:53:07 +00:00
oster 8084d0b099 Recognize another Intel PRO/100 VM Network Controller. 2006-07-30 21:09:00 +00:00
jmcneill 052a8ad2ad Restore PCI configuration space on resume. 2006-06-19 13:56:29 +00:00
christos 63bbcb495a re-factor the pci powestate api. reviewed by gimpy 2006-06-17 23:34:26 +00:00
christos eec1348ff2 PR/32494: Dennis Chernoivanov: Intel PRO/100 VE (LOM) not detected on Sony Vaio 2006-01-10 20:31:36 +00:00
christos 95e1ffb156 merge ktrace-lwp. 2005-12-11 12:16:03 +00:00
cube ad858fce1a New Dell Day, continued: add support for the fxp(4) variant in the
802801G* family of SB.
2005-07-29 13:13:34 +00:00
riz d8dda9700a Add support for the 82801FB (ICH6) 10/100 ethernet appearing
on new Intel motherboards.  From Brian Buhrow in PR#30025.
Approved by jmcneill.
2005-05-18 20:33:46 +00:00
perry f31bd063e9 nuke trailing whitespace 2005-02-27 00:26:58 +00:00
thorpej d0fcfb4c3a Use ANSI function decls and make use of static. 2004-08-21 23:48:33 +00:00
briggs 76578c302d Add a default case to the product ID attachment to print the chip
description and revision information if a chip is matched and this
switch statement isn't updated to match.  Addresses PR kern/18019.
2004-04-28 04:12:16 +00:00
drochner 8acd734e5f deal with 82801EB/ER (ICH5) Network Controller 2004-03-12 13:22:28 +00:00
jdolecek 3a6c7eacfc fix description of Intel PRO/100 VM Network Controller with 82562ET/EZ PHY
don't activate any quirks for VM_6 variant
problem reported by Lars Heidieker on current-users

also don't activate any quirks for VM_3 - VM_5 variants, neither
VE_2 - VE_4, in anticipation that the more modern variants don't need
the quirks
2003-09-13 12:13:29 +00:00
nonaka fcfc3fe7cb Add support for another Intel Pro/100 variant. 2003-08-14 07:59:39 +00:00
bouyer ab8781bdb6 Add support for another Intel Pro/100 variant. From Quentin Garnier in
private mail.
2003-06-28 23:04:50 +00:00
jdolecek 635035691e apparently this driver works fine for Intel PRO/100 VM with 82562EM/EX PHY,
so make driver match it
while here, also make the driver match 'Intel PRO/100 VM with
  82562EM/EX (CNR) PHY', with anticipation it would work fine too
activate the resume and dynamic standby bug workaround for these; might
  not be necessary (not confirmed to be needed), but better safe than sorry

Adresses PR kern/20689
2003-03-14 22:04:03 +00:00
grant 72f6291506 add Intel PRO/100M.
from Quentin Garnier in PR kern/20400.
2003-02-18 00:11:53 +00:00
thorpej 7ec10e2d99 Use aprint_*(). 2003-01-31 00:07:39 +00:00
tsutsui 238efe4697 Replace magic numbers for power management control with PCI_PMCSR* macros.
XXX Should we use pci_get_powerstate() and pci_set_powerstate() in pci.c?
2002-12-23 02:58:36 +00:00
thorpej b75a007d9f Add trailing ; to CFATTACH_DECL. 2002-10-02 16:51:16 +00:00
thorpej 387fc6dc87 Use CFATTACH_DECL(). 2002-09-30 20:37:04 +00:00
thorpej f818766afe Declare all cfattach structures const. 2002-09-27 20:31:45 +00:00
itojun 1eb6ef2a80 don't go into D3 state if revision <= 82558_B0. PR 18011 2002-09-27 14:54:08 +00:00
abs 332c0b2de1 Recognise the Intel PRO/100 VM Network Controller as seen in the HP
omnibook 6100.
2002-09-18 16:45:01 +00:00
msaitoh 5e26ad6017 add support intel C-ICH's embeded Ether MACs.
Tested on RadiSys Endura CH815C (http://www.radisys.com/)
2002-07-22 08:25:45 +00:00
cjs f9218e5010 Match PCI IDs of new PRO/100 chips. 2002-06-22 08:09:06 +00:00
thorpej 769ca97e2b Address Intel 82801BA/82801BAM Specification Update, Errata #30:
The ICH on-board Ethernet and some i82559 chips have a bug which
will cause a PCI protocol violation if the chip receives a CU_RESUME
command as it is entering the IDLE state by deasserting #CLKRUN.
(This is the so-called "resume bug" that we previously had an incomplete
work-around for on ICH chipsets.)

The work-around is to disable Dynamic Standby Mode, such that the
chip will never deasert #CLKRUN.  Dynamic Standby Mode is disabled
by clearing a bit in the EEPROM and updating the EEPROM (and EEPROM
checksum).

Unfortunately, the chip will only consult the EEPROM setting after
a PCI bus reset, so a system reboot is required once the EEPROM
has been updated (the EEPROM update only needs to happen once,
and the driver usses a warning instructing the user to reboot the
system once the work-around has been applied).

Issue pointed out by David Brownlee, and code more-or-less lifted
from FreeBSD.
2002-04-04 23:15:43 +00:00
lukem 9048aaae21 add RCSID 2001-11-13 07:48:40 +00:00
itojun 9d7baa72da recognize fxp on IBM thinkpad T23. from akimichi@wide.ad.jp 2001-11-02 03:40:47 +00:00
thorpej de108bd82d Add enable/disable hooks on devices that have ACPI power management
capability, using D3 and D0 power states.  This saves me quite a bit
of battery when not using the built-in Ethernet on my IBM T-20 during
long IETF meetings.
2001-08-05 23:39:59 +00:00
thorpej 3d98de578f Remove unnecessary include files. From Onno van der Linden. 2001-07-08 17:55:50 +00:00
thorpej 9988acd41e Don't need INET or NS includes here. 2001-06-12 22:28:15 +00:00
thorpej 6e2bc5b352 Enable the PCI MWI command for memory writes on the i82558 and
higher.
2001-05-22 16:05:01 +00:00
thorpej a5a03e13dd Report 82558, 82559, etc. based on chip revision. Also, remember which
revsion we have for feature enables later.
2001-05-22 01:23:25 +00:00
thorpej afdab0cab8 The ICH3 also has the Resume Bug. 2001-05-21 22:12:08 +00:00
thorpej b4538a0165 The 82801BA built-in Ethernet has a bug which requires us to
issue a NOP before a CU_RESUME when in 10baseT mode.  Handle
this.
2001-05-21 21:47:52 +00:00
sommerfeld 851de295eb Change pci_intr_map to get interrupt source information from a "struct
pci_attach_args *" instead of from four separate parameters which in
all cases were extracted from the same "struct pci_attach_args".

This both simplifies the driver api, and allows for alternate PCI
interrupt mapping schemes, such as one using the tables described in
the Intel Multiprocessor Spec which describe interrupt wirings for
devices behind pci-pci bridges based on the device's location rather
the bridge's location.

Tested on alpha and i386; welcome to 1.5Q
2000-12-28 22:59:06 +00:00
ad 4a8619ae15 Match the i82562. 2000-09-27 10:54:55 +00:00