Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/if_ex_pci.c
RevisionDateAuthorComments
 1.58  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.57  29-Mar-2014  christos branches: 1.57.28; 1.57.30;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.56  13-Sep-2013  martin Remove unused variable
 1.55  30-Mar-2013  christos branches: 1.55.4;
remove trailing whitespace
 1.54  26-Jul-2011  dyoung branches: 1.54.2; 1.54.12;
Replace anonymous constants, 0x10, 0x14, ..., with PCI_BAR(0),
PCI_BAR(1), .... There was no change in the generated assembly. I used
this semantic patch:

@ mapsit @
identifier bar;
expression pact;
@@

(
pci_mapreg_map
|
Cardbus_mapreg_map
)(pact, bar, ...)

@ depends on mapsit @
identifier mapsit.bar;
@@
(
- #define bar 0x10
+ #define bar PCI_BAR(0)
|
- #define bar 0x14
+ #define bar PCI_BAR(1)
|
- #define bar 0x18
+ #define bar PCI_BAR(2)
|
- #define bar 0x1C
+ #define bar PCI_BAR(3)
|
- #define bar 0x20
+ #define bar PCI_BAR(4)
)
 1.53  22-Mar-2010  dyoung ex_softc.ex_bustype is written but never read. Just get rid of it.
 1.52  22-Mar-2010  dyoung psc_pwrmgmt_csr_reg was never initialized to the actual offset of the
PCI PMCSR! Just delete psc_pwrmgmt_csr_reg and all uses of it. In this
way, ex_pci_disable() becomes a no-op, so delete it, too.
 1.51  26-Feb-2010  dyoung branches: 1.51.2;
Move the definitions for PCI_BAR0, PCI_BAR1, PCI_BAR2, PCI_BAR3,
PCI_BAR4, and PCI_BAR5 to pcireg.h for re-use.
 1.50  05-May-2009  cegger branches: 1.50.2;
print autoconf error message with aprint_error
 1.49  28-Apr-2008  martin branches: 1.49.14;
Remove clause 3 and 4 from TNF licenses
 1.48  14-Apr-2008  cegger branches: 1.48.2; 1.48.4;
- ansify
- use POSIX integers
 1.47  14-Apr-2008  spz pretty up if_ex: pmf'ify, device split, and improve printing a bit too.

Reviewed and function-tested on if_ex_cardbus by cube (thanks).
Function-tested on if_ex_pci by myself.
 1.46  10-Apr-2008  cegger use aprint_*_dev and device_xname
 1.45  21-Mar-2008  dyoung 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().
 1.44  19-Oct-2007  ad branches: 1.44.12; 1.44.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.43  16-Nov-2006  christos branches: 1.43.8; 1.43.22; 1.43.24; 1.43.28;
__unused removal on arguments; approved by core.
 1.42  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.41  17-Jun-2006  christos branches: 1.41.4; 1.41.6;
re-factor the pci powestate api. reviewed by gimpy
 1.40  11-Dec-2005  christos branches: 1.40.4; 1.40.8; 1.40.14; 1.40.16;
merge ktrace-lwp.
 1.39  27-Feb-2005  perry branches: 1.39.4;
nuke trailing whitespace
 1.38  24-Feb-2005  martin Fix the size of psc_regs (0x3c >> 2 is the biggest index used to access
it now, so pick 0x40 >> 2). Fixes "Bug 6", reported by Ted Unangst on
tech-kern.
 1.37  21-Aug-2004  thorpej branches: 1.37.4; 1.37.6;
Use ANSI function decls and make use of static.
 1.36  15-Jul-2004  junyoung Add support for 3Com 3c920B-EMB-WNM Integrated Fast Ethernet,
as found on Asus P4R800-VM motherboards.

From BL on Korea BSD User Forum (sorry but I don't know his real name).
 1.35  05-Jun-2003  dogcow branches: 1.35.2; 1.35.4;
Some models of the 556B don't turn on the transmitter without magic
values getting written. Fix from FreeBSD; cf sys/pci/if_xl.c, rev 1.110
 1.34  19-Apr-2003  christos Put back bits of pr 9286 that got lost. Thanks to Onno van der Linden for
pointing this.
 1.33  12-Apr-2003  christos PR/9286: Steven Grunza: Win98 warm boot puts 3c905B in state D3 and causes
ex driver failure
 1.32  31-Jan-2003  thorpej Use aprint_*().
 1.31  16-Jan-2003  gendalia Add support for 3com 3c905CX-TX found on nForce2 MCP-T.
 1.30  23-Dec-2002  tsutsui Set PCI_PMCSR more properly.
 1.29  23-Dec-2002  tsutsui Save PCI_PMCSR value correctly.
 1.28  23-Dec-2002  tsutsui 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?
 1.27  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.26  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.25  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.24  01-Jul-2002  thorpej Also save/restore the PCI_INTERRUPT_REG.
 1.23  20-Jun-2002  itojun more proper fix to ex_disable.
 1.22  20-Jun-2002  itojun make it compile (ex_disable).
not sure if it is 100% right.
 1.21  20-Jun-2002  thorpej If the chip supports ACPI power management:
* Go to D3 if IFF_UP == 0.
* Go to D0 if IFF_UP == 1.

Saves battery life on my T21, mmm.
 1.20  07-Feb-2002  christos branches: 1.20.8;
Turn on mii on 3C980CTXM
 1.19  13-Nov-2001  lukem add RCSID
 1.18  18-Aug-2001  kanaoka Improve intr_ack code to support for 3c556,3c556B.
Some cards don't have an interrupt acknowledge
register in PCI config space, so we map and write
it, such as CardBus driver does.
 1.17  08-Jul-2001  thorpej branches: 1.17.2;
Remove unnecessary include files. From Onno van der Linden.
 1.16  12-Jun-2001  thorpej Don't need INET or NS includes here.
 1.15  28-Dec-2000  sommerfeld branches: 1.15.2;
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
 1.14  19-Sep-2000  fvdl Add support for the 3c555, 556 and 556B MiniPCI cards. Based on the
cardbus code and the FreeBSD xl driver.
 1.13  07-Aug-2000  billc Added PCI IDs for 3Com's Home Connect (3c450) and Office Connect (3cSOHO100).
They both are register compat with later versions of the 3c905 (tornado/
vortex) series.
 1.12  12-May-2000  thorpej branches: 1.12.4;
Treat the 3c980C-TXM like the 3c980 Server Adapter. From Paul J. Lavoie,
kern/10037.
 1.11  23-Mar-2000  mycroft Rather than guessing at the location of the PMCSR, use the pointer returned by
pci_get_capability(). (This is, after all, a standardized interface...)
 1.10  13-Jan-2000  mycroft Remove EX_CONF_MII for the 3c980. At least 2 people need this for the card
to work.
 1.9  30-Nov-1999  drochner -support 3c905B-COMBO - somewhat preliminary: the chip has both an internal
MII PHY capable of NWAY (according to the Linux driver) and plain BNC/
transceiver connectors. The shared code can't handle this yet, so leave
out MII/NWAY for now.
-print out revision number from PCI config header, this has been useful to
identify buggy chips
 1.8  01-Sep-1999  fvdl branches: 1.8.2; 1.8.8;
Don't assume that an -FX card has MII (because it doesn't).
 1.7  15-Jul-1999  ross Recognize 3c905C.
 1.6  29-May-1999  fvdl Recognize 900B-TPC. From Robert Elz.
 1.5  20-Feb-1999  ross branches: 1.5.2; 1.5.4; 1.5.6;
Fix typo.
 1.4  19-Feb-1999  thorpej Improve product descriptions, and add 3c905-FX and 3c980 Server Adapter
products.
 1.3  09-Nov-1998  thorpej Make the device lookup table-driven, like if_ep_pci.c.
 1.2  07-Nov-1998  drochner use common code for extended capability (power management)
let "match" return 2 (> ep_pci)
 1.1  04-Nov-1998  fvdl Add the 'ex' driver, a DMA driver for 3Com 90x and 90xB cards. Rename
constants from EP_ to ELINK_ since they're now used in the ex driver as well.
 1.5.6.1  30-Nov-1999  itojun bring in latest KAME (as of 19991130, KAME/NetBSD141) into kame branch
just for reference purposes.
This commit includes 1.4 -> 1.4.1 sync for kame branch.

The branch does not compile at all (due to the lack of ALTQ and some other
source code). Please do not try to modify the branch, this is just for
referenre purposes.

synchronization to latest KAME will take place on HEAD branch soon.
 1.5.4.2  02-Aug-1999  thorpej Update from trunk.
 1.5.4.1  21-Jun-1999  thorpej Sync w/ -current.
 1.5.2.4  11-Sep-2000  he Pull up revision 1.13 (requested by billc):
Recognize 3Com's Home Connect (3c450) and Office Connect (3cSOHO100)
Ethernet cards.
 1.5.2.3  15-Jan-2000  he Pull up revision 1.10 (requested by mycroft):
Make the 3c980 actually work.
 1.5.2.2  29-Aug-1999  he Pull up revision 1.7:
Recognize 3c905C-TX card. (bouyer)
 1.5.2.1  22-Jun-1999  perry pullup 1.5->1.6 (fvdl): recognize another 390xB card
 1.8.8.1  27-Dec-1999  wrstuden Pull up to last week's -current.
 1.8.2.2  05-Jan-2001  bouyer Sync with HEAD
 1.8.2.1  20-Nov-2000  bouyer Update thorpej_scsipi to -current as of a month ago
A i386 GENERIC kernel compiles without the siop, ahc and bha drivers
(will be updated later). i386 IDE/ATAPI and ncr work, as well as
sparc/esp_sbus. alpha should work as well (untested yet).
siop, ahc and bha will be updated once I've updated the branch to current
-current, as well as machine-dependant code.
 1.12.4.3  01-Jan-2002  he Pull up revision 1.18 (requested by kanaoka):
Improve intr_ack code to support 3c556 and 3c556B.
 1.12.4.2  20-Mar-2001  he Pull up revision 1.14 (requested by chuck):
Add support for the 3Com 3c555, 3c556 and 3c556B MiniPCI Ethernet
cards.
 1.12.4.1  19-Oct-2000  he Pull up revision 1.13 (requested by billc):
Add PCI IDs for 3Com Home Connect (3c450) and Office Connect
(3cSOHO100), register compatible with later versions of 3c905.
 1.15.2.8  17-Jan-2003  thorpej Sync with HEAD.
 1.15.2.7  29-Dec-2002  thorpej Sync with HEAD.
 1.15.2.6  18-Oct-2002  nathanw Catch up to -current.
 1.15.2.5  01-Aug-2002  nathanw Catch up to -current.
 1.15.2.4  28-Feb-2002  nathanw Catch up to -current.
 1.15.2.3  14-Nov-2001  nathanw Catch up to -current.
 1.15.2.2  24-Aug-2001  nathanw Catch up with -current.
 1.15.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.17.2.5  10-Oct-2002  jdolecek sync kqueue with -current; this includes merge of gehenna-devsw branch,
merge of i386 MP branch, and part of autoconf rototil work
 1.17.2.4  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.17.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.17.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.17.2.1  25-Aug-2001  thorpej Merge Aug 24 -current into the kqueue branch.
 1.20.8.1  15-Jul-2002  gehenna catch up with -current.
 1.35.4.1  22-Aug-2004  tron Pull up revision 1.36 (requested by junyoung in ticket #781):
Add support for 3Com 3c920B-EMB-WNM Integrated Fast Ethernet,
as found on Asus P4R800-VM motherboards.
From BL on Korea BSD User Forum (sorry but I don't know his real name).
 1.35.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.35.2.4  21-Sep-2004  skrll Fix the sync with head I botched.
 1.35.2.3  18-Sep-2004  skrll Sync with HEAD.
 1.35.2.2  25-Aug-2004  skrll Sync with HEAD.
 1.35.2.1  03-Aug-2004  skrll Sync with HEAD
 1.37.6.1  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.37.4.1  29-Apr-2005  kent sync with -current
 1.39.4.4  24-Mar-2008  yamt sync with head.
 1.39.4.3  27-Oct-2007  yamt sync with head.
 1.39.4.2  30-Dec-2006  yamt sync with head.
 1.39.4.1  21-Jun-2006  yamt sync with head.
 1.40.16.1  13-Jul-2006  gdamore Merge from HEAD.
 1.40.14.1  19-Jun-2006  chap Sync with head.
 1.40.8.1  26-Jun-2006  yamt sync with head.
 1.40.4.1  09-Sep-2006  rpaulo sync with head
 1.41.6.2  10-Dec-2006  yamt sync with head.
 1.41.6.1  22-Oct-2006  yamt sync with head
 1.41.4.1  18-Nov-2006  ad Sync with head.
 1.43.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.43.24.2  23-Mar-2008  matt sync with HEAD
 1.43.24.1  06-Nov-2007  matt sync with HEAD
 1.43.22.1  26-Oct-2007  joerg Sync with HEAD.

Follow the merge of pmap.c on i386 and amd64 and move
pmap_init_tmp_pgtbl into arch/x86/x86/pmap.c. Modify the ACPI wakeup
code to restore CR4 before jumping back into kernel space as the large
page option might cover that.
 1.43.8.1  23-Oct-2007  ad Sync with head.
 1.44.16.2  02-Jun-2008  mjf Sync with HEAD.
 1.44.16.1  03-Apr-2008  mjf Sync with HEAD.
 1.44.12.1  24-Mar-2008  keiichi sync with head.
 1.48.4.4  11-Aug-2010  yamt sync with head.
 1.48.4.3  11-Mar-2010  yamt sync with head
 1.48.4.2  16-May-2009  yamt sync with head
 1.48.4.1  16-May-2008  yamt sync with head.
 1.48.2.1  18-May-2008  yamt sync with head.
 1.49.14.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.50.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.51.2.1  30-May-2010  rmind sync with head
 1.54.12.2  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.54.12.1  23-Jun-2013  tls resync from head
 1.54.2.1  22-May-2014  yamt sync with head.

for a reference, the tree before this commit was tagged
as yamt-pagecache-tag8.

this commit was splitted into small chunks to avoid
a limitation of cvs. ("Protocol error: too many arguments")
 1.55.4.1  18-May-2014  rmind sync with head
 1.57.30.1  10-Jun-2019  christos Sync with HEAD
 1.57.28.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts

RSS XML Feed