History log of /src/sys/arch/sparc/dev/ebus.c |
Revision | | Date | Author | Comments |
1.42 |
| 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.41 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.40 |
| 10-May-2021 |
thorpej | branches: 1.40.4; Associate the OpenBoot / OpenFirmware node with attached devices at config_found() time.
|
1.39 |
| 24-Apr-2021 |
thorpej | branches: 1.39.2; 1.39.4; 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.38 |
| 22-Nov-2020 |
thorpej | branches: 1.38.2; malloc(9) -> kmem(9) (easy, straight-forward cases only, for now)
|
1.37 |
| 10-Nov-2019 |
chs | branches: 1.37.8; in many device attach paths, allocate memory with M_WAITOK instead of M_NOWAIT and remove code to handle failures that can no longer happen.
|
1.36 |
| 18-Oct-2019 |
msaitoh | s/initalize/initialize/ in comment or printf message.
|
1.35 |
| 18-Oct-2014 |
snj | branches: 1.35.20; src is too big these days to tolerate superfluous apostrophes. It's "its", people!
|
1.34 |
| 30-Jan-2012 |
mrg | branches: 1.34.6; avoid writing 1 byte beyond the end of the string promlib.c has given us. instead of forcing a nul byte afterwards, KASSERT() that the final byte already is a nul. if there are broken proms... well, we can fix them.
this, plus one more change, allows my SS20 to boot multiuser.
|
1.33 |
| 18-Jul-2011 |
mrg | branches: 1.33.2; 1.33.6; convert the remaining sparc drivers to CFATTACH_DECL_NEW/cfdata_t/device_t. (cgsix_obio.c was only partially converted with the rest of the cgsix code when it was changed some time ago.)
|
1.32 |
| 01-Jul-2011 |
dyoung | #include <sys/bus.h> instead of <machine/bus.h>.
|
1.31 |
| 20-Sep-2009 |
tsutsui | - use device_t and cfdriver_t - use device_private() and device_xname() - use proper types or variables for device_t/softc
|
1.30 |
| 29-May-2008 |
mrg | remove clause #3 from my license where there are no other copyright holders involved.
|
1.29 |
| 17-Oct-2007 |
garbled | branches: 1.29.16; 1.29.18; 1.29.20; 1.29.22; 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.28 |
| 09-Jul-2007 |
ad | branches: 1.28.10; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.27 |
| 04-Mar-2007 |
christos | branches: 1.27.2; 1.27.4; 1.27.10; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.26 |
| 25-Feb-2007 |
uwe | G/c debugging printf (hi, macallan!).
|
1.25 |
| 02-Jul-2006 |
jdc | branches: 1.25.10; PCI device list and interrupt mapping for JavaStation Espresso. Interrupt line values from Linux sparc sources.
|
1.24 |
| 24-Nov-2005 |
he | branches: 1.24.4; 1.24.8; 1.24.16; Remove declaration of a variable which is no longer used.
|
1.23 |
| 24-Nov-2005 |
he | Make sure the file ends with a newline, so the port builds again.
|
1.22 |
| 22-Nov-2005 |
macallan | add support for options BLINK
|
1.21 |
| 16-Nov-2005 |
uwe | ANSIify. Use uint<N>_t. Drop unnecessary inlcudes. Declare as static everything we don't need to export.
|
1.20 |
| 12-Aug-2005 |
macallan | branches: 1.20.6; revert previous version, will create a device node in the boot loader instead
|
1.19 |
| 12-Aug-2005 |
macallan | For Krups only - attach audiocs at ebus even if there's no sound node in the device tree. Works only as long as the cs4231 driver doesn't attempt to use the node since we can't really supply one. Tested on a Krups with OF 3.11.10
|
1.18 |
| 10-Jul-2004 |
pk | branches: 1.18.12; Use bus_space_tag_alloc().
|
1.17 |
| 24-Apr-2004 |
kleink | Update for new pci_devinfo(9) signature.
|
1.16 |
| 17-Mar-2004 |
pk | Rename PROM_getprop*() => prom_getprop*().
|
1.15 |
| 27-Aug-2003 |
mrg | change PROM_getprop() from taking a "void **" for the storage, to a "void *", and do the extra de-reference directly in the function. this avoids having to cast dozens of different types to "void **", which sets of GCC3's strict-aliasing. testing by martin@
|
1.14 |
| 15-Jul-2003 |
lukem | __KERNEL_RCSID()
|
1.13 |
| 03-May-2003 |
wiz | branches: 1.13.2; DMA, not dma nor Dma.
|
1.12 |
| 26-Feb-2003 |
pk | Move all `ID prom' stuff into the prom library.
|
1.11 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.10 |
| 10-Dec-2002 |
pk | Remove the `flags' argument from bus_intr_establish().
|
1.9 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL.
|
1.8 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.7 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.6 |
| 11-Mar-2002 |
uwe | Do not pass bus type argument (R.I.P.) to bus_space_map2.
|
1.5 |
| 11-Mar-2002 |
pk | * `bus_type_t' is gone. * Use BUS_ADDR() where appropriate to encode I/O space and physical address offset into a `bus_addr_t' value. * Drop obio_bus_map() since it's now completely equivalent to bus_space_map() * Use bus_space_map2() to map device space at a fixed virtual address. * Remove the virtual address argument from sbus_sbus_addr()
|
1.4 |
| 18-Feb-2002 |
uwe | Convert to use shared headers in dev/ebus. Move ebus_softc definition here. Normalize bar field of EBus children PROM "reg" property to be the BAR offset in PCI config space like on sparc64 when building ebus_attach_args.
|
1.3 |
| 08-Feb-2002 |
uwe | Cosmetic changes: clean up debugging ifdefs and use consistent wording in panic messages.
|
1.2 |
| 31-Jan-2002 |
uwe | Auto-configuration output formatting nit. Don't start the attachment message on a new line.
|
1.1 |
| 11-Dec-2001 |
uwe | branches: 1.1.2; 1.1.4; EBus support for ms-IIep.
|
1.1.4.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.1.4.4 |
| 16-Mar-2002 |
jdolecek | Catch up with -current.
|
1.1.4.3 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.1.4.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.1.4.1 |
| 11-Dec-2001 |
thorpej | file ebus.c was added on branch kqueue on 2002-01-10 19:48:45 +0000
|
1.1.2.7 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
XXX ALT_SWITCH_CODE is not yet LWP'ified.
|
1.1.2.6 |
| 11-Dec-2002 |
thorpej | Sync with HEAD.
|
1.1.2.5 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.1.2.4 |
| 01-Apr-2002 |
nathanw | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
|
1.1.2.3 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.1.2.2 |
| 08-Jan-2002 |
nathanw | Catch up to -current.
|
1.1.2.1 |
| 11-Dec-2001 |
nathanw | file ebus.c was added on branch nathanw_sa on 2002-01-08 00:27:35 +0000
|
1.13.2.5 |
| 11-Dec-2005 |
christos | Sync with head.
|
1.13.2.4 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
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.18.12.4 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.18.12.3 |
| 26-Feb-2007 |
yamt | sync with head.
|
1.18.12.2 |
| 30-Dec-2006 |
yamt | sync with head.
|
1.18.12.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.20.6.2 |
| 29-Nov-2005 |
yamt | sync with head.
|
1.20.6.1 |
| 22-Nov-2005 |
yamt | sync with head.
|
1.24.16.1 |
| 13-Jul-2006 |
gdamore | Merge from HEAD.
|
1.24.8.1 |
| 11-Aug-2006 |
yamt | sync with head
|
1.24.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.25.10.2 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.25.10.1 |
| 27-Feb-2007 |
yamt | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
|
1.27.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.27.4.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.27.2.1 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.28.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.29.22.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.29.20.2 |
| 11-Mar-2010 |
yamt | sync with head
|
1.29.20.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.29.18.1 |
| 04-Jun-2008 |
yamt | sync with head
|
1.29.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.33.6.1 |
| 18-Feb-2012 |
mrg | merge to -current.
|
1.33.2.1 |
| 17-Apr-2012 |
yamt | sync with head
|
1.34.6.1 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.35.20.1 |
| 13-Apr-2020 |
martin | Mostly merge changes from HEAD upto 20200411
|
1.37.8.1 |
| 14-Dec-2020 |
thorpej | Sync w/ HEAD.
|
1.38.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.39.4.1 |
| 31-May-2021 |
cjep | sync with head
|
1.39.2.1 |
| 13-May-2021 |
thorpej | Sync with HEAD.
|
1.40.4.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|