Home | History | Annotate | Download | only in pci
History log of /src/sys/dev/pci/if_hme_pci.c
RevisionDateAuthorComments
 1.40  24-Sep-2022  thorpej Remove unnecessary include of <sys/malloc.h>.
 1.39  02-Jul-2020  msaitoh prop_data_data_nocopy -> prop_data_value
 1.38  09-Dec-2018  jdolecek use pci_intr_establish_xname() everywhere
 1.37  29-Mar-2014  christos branches: 1.37.28; 1.37.30;
make pci_intr_string and eisa_intr_string take a buffer and a length
instead of relying in local static storage.
 1.36  10-May-2011  dyoung branches: 1.36.4; 1.36.14; 1.36.18;
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.
 1.35  23-Mar-2010  dyoung branches: 1.35.2;
In the #definition of PCI_HME_BASEADDR, use PCI_BAR(0) instead of the
anonymous constant 0x10.
 1.34  23-Mar-2010  dyoung Put back PCI_HME_BASEADDR.
 1.33  23-Mar-2010  dyoung Use the PCI BAR type to decide which I/O enables to set.

TBD: Put back the old BAR #definition, s/PCI_BAR(0)/PCI_HME_BASEADDR/.
 1.32  11-Mar-2010  mrg branches: 1.32.2;
various aprint_* fixes.
 1.31  20-Jan-2010  martin branches: 1.31.2;
Remove sparc specific code and HME_USE_LOCAL_MAC_ADDRESS hack, instead
use the "mac-address" device property if present.
 1.30  17-May-2009  tsutsui u_intNN_t -> uintNN_t
 1.29  17-May-2009  tsutsui Split device_t/softc.
Tested PCI HME on i386. Sbus HME is compile test only.
 1.28  12-May-2009  cegger use device_private().
"looks good" ad@
XXX for the device_t/softc split, please check the driver that no cases have been missed.
 1.27  06-May-2009  cegger struct device * -> device_t, no functional changes intended.
 1.26  06-May-2009  cegger struct cfdata * -> cfdata_t, no functional changes intended.
 1.25  29-May-2008  mrg branches: 1.25.12;
remove clause #3 from my license where there are no other
copyright holders involved.
 1.24  10-Apr-2008  cegger branches: 1.24.2; 1.24.4; 1.24.6;
use aprint_*_dev and device_xname
 1.23  19-Oct-2007  ad branches: 1.23.16;
machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
 1.22  16-Nov-2006  christos branches: 1.22.8; 1.22.22; 1.22.24; 1.22.28;
__unused removal on arguments; approved by core.
 1.21  12-Oct-2006  christos - sprinkle __unused on function decls.
- fix a couple of unused bugs
- no more -Wno-unused for i386
 1.20  11-Dec-2005  christos branches: 1.20.20; 1.20.22;
merge ktrace-lwp.
 1.19  26-Apr-2005  atatat branches: 1.19.2;
Reverse order of args in hmevpdoff()
 1.18  21-Apr-2005  christos simplify the mac address retrieval code.
 1.17  21-Apr-2005  christos PR/30018: Peter Eisch: Sun QFE support in non-sparc hardware
 1.16  27-Feb-2005  perry branches: 1.16.2;
nuke trailing whitespace
 1.15  04-Feb-2005  perry de-__P
 1.14  17-Mar-2004  martin branches: 1.14.6; 1.14.8; 1.14.10;
Fix hme for pci based sparcs (krups).
 1.13  26-Dec-2002  itohy branches: 1.13.2;
Lookup and use the Ethernet address in the FCode PROM,
and avoid using MD myetheraddr() function.
This makes the driver MI, and closes PR kern/13797.

The PCI HME is a PCIO chip, which is composed of two functions:
function 0: PCI-EBus2 bridge, and
function 1: HappyMeal Ethernet controller.

The Ethernet address is (expected to be) in the PCI FCode PROM connected
to the EBus bridge (function 0) of the device.
Since the HME is on function 1, some magic is used to access to the PROM.

We don't have MI EBus driver since no EBus device exists (besides the
FCode PROM) on add-on HME boards. The ``not configured'' message for
function 0 is what is expected.

The SPARC case is currently unchanged. It needs interaction with OpenBoot.
 1.12  02-Oct-2002  thorpej Add trailing ; to CFATTACH_DECL.
 1.11  30-Sep-2002  thorpej Use CFATTACH_DECL().
 1.10  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.9  13-Nov-2001  lukem add RCSID
 1.8  18-Oct-2001  thorpej Add a missing return statement in an error case, and g/c some
cruft that's not relevant in the PCI world.
 1.7  05-Oct-2001  thorpej Minor tidying up of the HME driver attach:
- Print nicer-looking message.
- Use bus_space_subregion() when appropriate, rather than arithmetic
on a bus_space_handle_t.
 1.6  26-Sep-2001  eeh getprop* -> PROM_getprop*
 1.5  27-Aug-2001  augustss branches: 1.5.2;
Use #include <machine/intr.h> instead of #include <machine/cpu.h> to
improve portability.
 1.4  27-Aug-2001  augustss Remove an unneeded #include. This makes the file compilable on more
platforms.
 1.3  28-Dec-2000  sommerfeld branches: 1.3.2; 1.3.4;
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.2  25-Jun-2000  eeh branches: 1.2.2;
Get PCI HME working.
 1.1  05-Apr-2000  mrg branches: 1.1.4;
add "hme at pci" support.
 1.1.4.1  31-Jul-2000  mrg pull up 1.2 (approved by thorpej):
>Get PCI HME working.
 1.2.2.3  05-Jan-2001  bouyer Sync with HEAD
 1.2.2.2  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.2.2.1  25-Jun-2000  bouyer file if_hme_pci.c was added on branch thorpej_scsipi on 2000-11-20 11:42:22 +0000
 1.3.4.3  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.3.4.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.4.1  13-Sep-2001  thorpej Update the kqueue branch to HEAD.
 1.3.2.6  29-Dec-2002  thorpej Sync with HEAD.
 1.3.2.5  18-Oct-2002  nathanw Catch up to -current.
 1.3.2.4  14-Nov-2001  nathanw Catch up to -current.
 1.3.2.3  22-Oct-2001  nathanw Catch up to -current.
 1.3.2.2  08-Oct-2001  nathanw Catch up to -current.
 1.3.2.1  21-Sep-2001  nathanw Catch up to -current.
 1.5.2.2  11-Oct-2001  fvdl Catch up with -current. Fix some bogons in the sparc64 kbd/ms
attach code. cd18xx conversion provided by mrg.
 1.5.2.1  01-Oct-2001  fvdl Catch up with -current.
 1.13.2.6  10-Nov-2005  skrll Sync with HEAD. Here we go again...
 1.13.2.5  04-Mar-2005  skrll Sync with HEAD.

Hi Perry!
 1.13.2.4  04-Feb-2005  skrll Sync with HEAD.
 1.13.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.13.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.13.2.1  03-Aug-2004  skrll Sync with HEAD
 1.14.10.2  19-Mar-2005  yamt sync with head. xen and whitespace. xen part is not finished.
 1.14.10.1  12-Feb-2005  yamt sync with head.
 1.14.8.1  29-Apr-2005  kent sync with -current
 1.14.6.1  12-May-2005  riz Pull up revisions 1.15-1.19 (requested by christos in ticket #1444):

revision 1.19
date: 2005/04/26 13:02:06; author: atatat; state: Exp; lines: +3 -3
Reverse order of args in hmevpdoff()
 1.18  21-Apr-2005  christos simplify the mac address retrieval code.
 1.17  21-Apr-2005  christos PR/30018: Peter Eisch: Sun QFE support in non-sparc hardware
 1.16  27-Feb-2005  perry nuke trailing whitespace
 1.15  04-Feb-2005  perry de-__P
 1.16.2.3  26-Apr-2005  tron Pull up revision 1.19 (requested by atatat in ticket #208):
Reverse order of args in hmevpdoff()
 1.16.2.2  25-Apr-2005  tron Pull up revision 1.18 (requested by christos in ticket #191):
simplify the mac address retrieval code.
 1.16.2.1  25-Apr-2005  tron Pull up revision 1.17 (requested by christos in ticket #191):
PR/30018: Peter Eisch: Sun QFE support in non-sparc hardware
 1.19.2.2  27-Oct-2007  yamt sync with head.
 1.19.2.1  30-Dec-2006  yamt sync with head.
 1.20.22.2  10-Dec-2006  yamt sync with head.
 1.20.22.1  22-Oct-2006  yamt sync with head
 1.20.20.1  18-Nov-2006  ad Sync with head.
 1.22.28.1  25-Oct-2007  bouyer Sync with HEAD.
 1.22.24.1  06-Nov-2007  matt sync with HEAD
 1.22.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.22.8.1  23-Oct-2007  ad Sync with head.
 1.23.16.1  02-Jun-2008  mjf Sync with HEAD.
 1.24.6.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.24.4.5  11-Aug-2010  yamt sync with head.
 1.24.4.4  11-Mar-2010  yamt sync with head
 1.24.4.3  20-Jun-2009  yamt sync with head
 1.24.4.2  16-May-2009  yamt sync with head
 1.24.4.1  04-May-2009  yamt sync with head.
 1.24.2.1  04-Jun-2008  yamt sync with head
 1.25.12.2  23-Jul-2009  jym Sync with HEAD.
 1.25.12.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.31.2.1  30-Apr-2010  uebayasi Sync with HEAD.
 1.32.2.2  31-May-2011  rmind sync with head
 1.32.2.1  30-May-2010  rmind sync with head
 1.35.2.1  06-Jun-2011  jruoho Sync with HEAD.
 1.36.18.1  18-May-2014  rmind sync with head
 1.36.14.1  20-Aug-2014  tls Rebase to HEAD as of a few days ago.
 1.36.4.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.37.30.1  10-Jun-2019  christos Sync with HEAD
 1.37.28.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts

RSS XML Feed