Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/macppc/dev/if_mc.c
RevisionDateAuthorComments
 1.29  04-Oct-2025  thorpej Add a shared function to query the common properties used for configuring
an Ethernet address.
 1.28  16-Feb-2022  riastradh powerpc: Sprinkle "memory" clobbers on eieio and nearby asm blocks.

Otherwise the compiler may reorder these around loads and stores,
which mostly defeats the purpose. `asm volatile' just ensures the
instruction isn't _deleted_; it may still move around.
 1.27  05-Mar-2021  rin Convert to intr_establish_xname().
 1.26  05-Dec-2019  msaitoh branches: 1.26.8;
Revert if_mc.c rev. 1.25. It's not required to check ifm->ifm_cur->ifm_media
instead of ifm->ifm_media.
 1.25  04-Dec-2019  msaitoh Fix macppc/dev/if_mc.c::mc_mediachange(). Not tested.

ifmedia_change() is used to change the device's media setting from
user-selected media. The user-selected media is not sc->sc_media.ifm_media but
sc->sc_media.ifm_cur->ifm_media. Note that mc_mediachange() is not called from
anywhere because it's disabled with #ifdef NOTYET.
 1.24  25-Apr-2019  msaitoh No functional change:
- Use __arraycount().
- u_int_{8,16,32}_t -> uint_{8,16,32}_t
- KNF.
- Tabify.
- Remove extra space.
 1.23  15-Jul-2016  macallan branches: 1.23.16;
adjust to dbdma changes
 1.22  26-Jul-2011  macallan branches: 1.22.12; 1.22.30; 1.22.34;
finish device_t-ification
 1.21  01-Jul-2011  dyoung #include <sys/bus.h> instead of <machine/bus.h>.
 1.20  30-Jun-2011  matt Modify mapiodev to take a third argument indicating whether the space
should be prefetchable (true) or not (false).
 1.19  18-Jun-2011  matt struct device * -> device_t
struct cfdata * -> cfdata_t
use device accessors, use device_private.
some softc/device_t splits (macppc needs a bunch more)
aprint*_dev used considerably more
 1.18  20-Dec-2010  matt branches: 1.18.6;
Move counting of faults, traps, intrs, soft[intr]s, syscalls, and nswtch
from uvmexp to per-cpu cpu_data and move them to 64bits. Remove unneeded
includes of <uvm/uvm_extern.h> and/or <uvm/uvm.h>.
 1.17  14-Mar-2009  dsl branches: 1.17.4;
ANSIfy another 1261 function definitions.
The only ones left in sys are beyond by sed script!
(or in sys/dist or sys/external)
Mostly they have function pointer parameters.
 1.16  14-Mar-2009  dsl Change about 4500 of the K&R function definitions to ANSI ones.
There are still about 1600 left, but they have ',' or /* ... */
in the actual variable definitions - which my awk script doesn't handle.
There are also many that need () -> (void).
(The script does handle misordered arguments.)
 1.15  14-Mar-2009  dsl Remove all the __P() from sys (excluding sys/dist)
Diff checked with grep and MK1 eyeball.
i386 and amd64 GENERIC and sys still build.
 1.14  05-Oct-2008  macallan branches: 1.14.2; 1.14.8;
fix bus_spacification botch
from Marco Trillo in PR39696
 1.13  17-Oct-2007  garbled branches: 1.13.16; 1.13.20; 1.13.22; 1.13.26;
Merge the ppcoea-renovation branch to HEAD.

This branch was a major cleanup and rototill of many of the various OEA
cpu based PPC ports that focused on sharing as much code as possible
between the various ports to eliminate near-identical copies of files in
every tree. Additionally there is a new PIC system that unifies the
interface to interrupt code for all different OEA ppc arches. The work
for this branch was done by a variety of people, too long to list here.

TODO:
bebox still needs work to complete the transition to -renovation.
ofppc still needs a bunch of work, which I will be looking at.
ev64260 still needs to be renovated
amigappc was not attempted.

NOTES:
pmppc was removed as an arch, and moved to a evbppc target.
 1.12  04-Mar-2007  christos branches: 1.12.2; 1.12.10; 1.12.18; 1.12.20; 1.12.22; 1.12.24;
Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
 1.11  24-Dec-2005  perry branches: 1.11.26;
Remove leading __ from __(const|inline|signed|volatile) -- it is obsolete.
 1.10  11-Dec-2005  christos merge ktrace-lwp.
 1.9  15-Jul-2003  lukem branches: 1.9.16;
__KERNEL_RCSID()
 1.8  02-Apr-2003  thorpej branches: 1.8.2;
Use PAGE_SIZE rather than NBPG.
 1.7  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.6  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.5  22-Jul-2001  wiz branches: 1.5.6;
bcopy -> memcpy, bzero -> memset, bcmp -> memcmp.
Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
 1.4  08-Jun-2001  matt branches: 1.4.2;
Make macppc compile by default with -Wall -Wmissing-prototype in addition
to its currently enabled warnings. For the lack of a better place, most
global function prototype wound up in <machine/autoconf.h> unless there
was a better place for them. ofb_* structs renamed to offb_* to avoid
conflict with ofb_softc in <dev/ofw/openfirm.h>
 1.3  29-Jun-2000  mrg branches: 1.3.2;
remove include of <vm/vm.h>. <vm/vm.h> -> <uvm/uvm_extern.h>
 1.2  30-May-1998  tsubai branches: 1.2.14;
Remove unnecessary cache flush.
 1.1  15-May-1998  tsubai Initial import of macppc port.
 1.2.14.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.3.2.1  21-Jun-2001  nathanw Catch up to -current.
 1.4.2.2  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.4.2.1  03-Aug-2001  lukem update to -current
 1.5.6.2  18-Oct-2002  nathanw Catch up to -current.
 1.5.6.1  22-Jul-2001  nathanw file if_mc.c was added on branch nathanw_sa on 2002-10-18 02:38:35 +0000
 1.8.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.8.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.8.2.1  03-Aug-2004  skrll Sync with HEAD
 1.9.16.3  27-Oct-2007  yamt sync with head.
 1.9.16.2  03-Sep-2007  yamt sync with head.
 1.9.16.1  21-Jun-2006  yamt sync with head.
 1.11.26.1  12-Mar-2007  rmind Sync with HEAD.
 1.12.24.1  25-Oct-2007  bouyer Sync with HEAD.
 1.12.22.1  18-Oct-2007  yamt sync with head.
 1.12.20.1  06-Nov-2007  matt sync with HEAD
 1.12.18.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.12.10.2  07-Jun-2007  garbled Convert macppc to powerpc bus_space. Lots of work here from Matt Thomas,
as well as the common ofwoea code from myself. Compile tested only,
still probably needs some fine tuning.

Also in this commit:
Convert macppc to new shared ofwoea routines.
Lots of KNF.
 1.12.10.1  11-May-2007  macallan request the correct interrupt type in a couple drivers - necessary since
these days we actually do something with the type argument
 1.12.2.1  23-Oct-2007  ad Sync with head.
 1.13.26.1  19-Oct-2008  haad Sync with HEAD.
 1.13.22.1  10-Oct-2008  skrll Sync with HEAD.
 1.13.20.1  04-May-2009  yamt sync with head.
 1.13.16.1  05-Oct-2008  mjf Sync with HEAD.
 1.14.8.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.14.2.1  28-Apr-2009  skrll Sync with HEAD.
 1.17.4.1  05-Mar-2011  rmind sync with head
 1.18.6.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.22.34.1  26-Jul-2016  pgoyette Sync with HEAD
 1.22.30.1  05-Oct-2016  skrll Sync with HEAD
 1.22.12.1  03-Dec-2017  jdolecek update from HEAD
 1.23.16.1  10-Jun-2019  christos Sync with HEAD
 1.26.8.1  03-Apr-2021  thorpej Sync with HEAD.

RSS XML Feed