History log of /src/sys/arch/macppc/dev/mediabay.c |
Revision | | Date | Author | Comments |
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 |
| 22-Jan-2022 |
thorpej | Change the devhandle_from_*() functions to also take a "super handle", from which the newly created handle will inherit it's implementation. The root implementation for a new handle type is used if an invalid "super handle" is passed.
|
1.26 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.25 |
| 24-Apr-2021 |
thorpej | branches: 1.25.8; Merge thorpej-cfargs branch:
Simplify and make extensible the config_search() / config_found() / config_attach() interfaces: rather than having different variants for which arguments you want pass along, just have a single call that takes a variadic list of tag-value arguments.
Adjust all call sites: - Simplify wherever possible; don't pass along arguments that aren't actually needed. - Don't be explicit about what interface attribute is attaching if the device only has one. (More simplification.) - Add a config_probe() function to be used in indirect configuiration situations, making is visibly easier to see when indirect config is in play, and allowing for future change in semantics. (As of now, this is just a wrapper around config_match(), but that is an implementation detail.)
Remove unnecessary or redundant interface attributes where they're not needed.
There are currently 5 "cfargs" defined: - CFARG_SUBMATCH (submatch function for direct config) - CFARG_SEARCH (search function for indirect config) - CFARG_IATTR (interface attribte) - CFARG_LOCATORS (locators array) - CFARG_DEVHANDLE (devhandle_t - wraps OFW, ACPI, etc. handles)
...and a sentinel value CFARG_EOL.
Add some extra sanity checking to ensure that interface attributes aren't ambiguous.
Use CFARG_DEVHANDLE in MI FDT, OFW, and ACPI code, and macppc and shark ports to associate those device handles with device_t instance. This will trickle trough to more places over time (need back-end for pre-OFW Sun OBP; any others?).
|
1.24 |
| 05-Mar-2021 |
rin | branches: 1.24.2; Convert to intr_establish_xname().
|
1.23 |
| 26-Jan-2021 |
thorpej | There is not much point in of_compatible() returning -1 for "no match" and >= 0 for "match". Just make it return 0 for "no match" and >0 for "match" so it can be treated like a boolean expression.
As such of_match_compatible() (a wrapper around of_compatible()) is now obsolete, and will be removed once all call sites are converted to an appropriate replacement.
|
1.22 |
| 26-Jul-2011 |
macallan | branches: 1.22.66; finish device_t-ification
|
1.21 |
| 30-Jun-2011 |
matt | Modify mapiodev to take a third argument indicating whether the space should be prefetchable (true) or not (false).
|
1.20 |
| 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.19 |
| 20-Dec-2010 |
matt | branches: 1.19.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.18 |
| 14-Mar-2009 |
dsl | branches: 1.18.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.17 |
| 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.16 |
| 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.15 |
| 28-Aug-2008 |
jmcneill | branches: 1.15.2; 1.15.8; Add support for keylargo-style mediabays, as found in eg. PowerBook3,1
|
1.14 |
| 17-Oct-2007 |
garbled | branches: 1.14.16; 1.14.20; 1.14.22; 1.14.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.13 |
| 09-Jul-2007 |
ad | branches: 1.13.8; 1.13.10; 1.13.12; 1.13.14; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.12 |
| 10-Dec-2006 |
macallan | branches: 1.12.6; 1.12.8; 1.12.14; when powering up the mediabay wait two seconds before looking for devices Without this CDROM drives wouldn't be found when hotplugged.
|
1.11 |
| 11-Dec-2005 |
christos | branches: 1.11.20; 1.11.22; 1.11.24; merge ktrace-lwp.
|
1.10 |
| 08-Jan-2005 |
briggs | branches: 1.10.10; cosmetic changes.
|
1.9 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.8 |
| 02-Apr-2003 |
thorpej | branches: 1.8.2; Use PAGE_SIZE rather than NBPG.
|
1.7 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.6 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.5 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.4 |
| 22-Jul-2001 |
wiz | branches: 1.4.6; bcopy -> memcpy, bzero -> memset, bcmp -> memcmp. Reviewed by Matt Thomas, ok'd by Tsubai Masanari.
|
1.3 |
| 23-Aug-2000 |
tsubai | branches: 1.3.4; New PowerBook (firewire) seems to use edge-triggered interrupt. XXX cannot hot-plug yet
|
1.2 |
| 04-Oct-1999 |
tsubai | branches: 1.2.2; 1.2.12; Make media-bay CD detachable.
|
1.1 |
| 21-Jul-1999 |
tsubai | branches: 1.1.2; media-bay CD support.
|
1.1.2.2 |
| 02-Aug-1999 |
thorpej | Update from trunk.
|
1.1.2.1 |
| 21-Jul-1999 |
thorpej | file mediabay.c was added on branch chs-ubc2 on 1999-08-02 19:55:12 +0000
|
1.2.12.1 |
| 01-Nov-2000 |
tv | Pullup 1.3 [tsubai, mycroft]: New PowerBook (firewire) seems to use edge-triggered interrupt. XXX cannot hot-plug yet
|
1.2.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.3.4.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.3.4.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.4.6.3 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.4.6.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.4.6.1 |
| 22-Jul-2001 |
nathanw | file mediabay.c was added on branch nathanw_sa on 2002-10-18 02:38:35 +0000
|
1.8.2.4 |
| 17-Jan-2005 |
skrll | Sync with HEAD.
|
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.10.10.3 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.10.10.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.10.10.1 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.11.24.1 |
| 12-Jan-2007 |
bouyer | Pull up following revision(s) (requested by macallan in ticket #352): sys/arch/macppc/dev/mediabay.c: revision 1.12 when powering up the mediabay wait two seconds before looking for devices Without this CDROM drives wouldn't be found when hotplugged.
|
1.11.22.1 |
| 10-Dec-2006 |
yamt | sync with head.
|
1.11.20.1 |
| 12-Jan-2007 |
ad | Sync with head.
|
1.12.14.4 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.12.14.3 |
| 02-Aug-2007 |
macallan | sync with HEAD
|
1.12.14.2 |
| 20-Jun-2007 |
macallan | pass ca_tag to child devices
|
1.12.14.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.8.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.12.6.2 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.12.6.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.13.14.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.13.12.1 |
| 18-Oct-2007 |
yamt | sync with head.
|
1.13.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.13.8.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.14.26.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.14.22.1 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.14.20.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.14.16.1 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.15.8.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.15.2.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.18.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.19.6.1 |
| 23-Jun-2011 |
cherry | Catchup with rmind-uvmplock merge.
|
1.22.66.1 |
| 03-Apr-2021 |
thorpej | Sync with HEAD.
|
1.24.2.2 |
| 04-Apr-2021 |
thorpej | Associate the OpenFirmware phandle associated with a found device (including PCI bus instances) by using CFARG_DEVHANDLE.
|
1.24.2.1 |
| 21-Mar-2021 |
thorpej | Give config_found() the same variadic arguments treatment as config_search(). This commit only adds the CFARG_EOL sentinel to the existing config_found() calls. Conversion of config_found_sm_loc() and config_found_ia() call sites will be in subsequent commits.
|
1.25.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|