History log of /src/sys/arch/x68k/dev/mfp.c |
Revision | | Date | Author | Comments |
1.32 |
| 06-Jan-2024 |
isaki | x68k: Make _delay() argument to microseconds. '<< 8' is just a magnification factor and should not be visible from the outside.
|
1.31 |
| 06-Jan-2024 |
isaki | Remove a duplicated extern declaration.
|
1.30 |
| 20-Dec-2023 |
thorpej | Remove unnecessary <sys/malloc.h> include.
|
1.29 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.28 |
| 24-Apr-2021 |
thorpej | branches: 1.28.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.27 |
| 15-Dec-2019 |
tsutsui | branches: 1.27.10; Remove clause 3 and 4 leftovers from TNF licenses in more sources.
Confirmed by martin@ in PR/54760.
|
1.26 |
| 26-Mar-2014 |
christos | branches: 1.26.30; 1.26.34; kill sprintf, fix unused.
|
1.25 |
| 05-May-2011 |
tsutsui | branches: 1.25.4; 1.25.14; 1.25.18; Add a comment for the previous change.
|
1.24 |
| 04-May-2011 |
tsutsui | Don't call mfp_init() in mfp_attach(). It's already called from early mfp_config_console() via config_console() and reinitializing MFP could sometimes cause silent hang.
|
1.23 |
| 17-Jan-2009 |
isaki | branches: 1.23.6; 1.23.8; Split device_t/softc, use aprint*().
|
1.22 |
| 17-Jan-2009 |
isaki | Purge x68k_config_found() to simplify consinit routine. config_console() calls initialization of grf, ite, mfp directly, instead of tracing special device tree with an emulated 'struct device'.
|
1.21 |
| 31-Dec-2008 |
isaki | Search all of mfp(4)'s children automatically, instead of attaching hard-coded children. mfp(4) was trying to attach pow(4) though pow(4) was a pseudo-device for a long time.
|
1.20 |
| 18-Dec-2008 |
isaki | Remove intr_reset(), which has disabled device interrupt just after start in locore.s. Initializing interrupt should be done by each device driver.
|
1.19 |
| 11-Mar-2007 |
isaki | branches: 1.19.38; 1.19.42; 1.19.50; white space, indent and KNF.
|
1.18 |
| 11-Mar-2007 |
isaki | Remove an extra white space.
|
1.17 |
| 24-Dec-2005 |
perry | branches: 1.17.26; 1.17.30; bare asm -> __asm
|
1.16 |
| 11-Dec-2005 |
christos | merge ktrace-lwp.
|
1.15 |
| 13-Jun-2005 |
he | branches: 1.15.2; Make this compile by adding __UNCONST() when calling config_found() or similar functions with a text constant as the second argument.
|
1.14 |
| 18-Jan-2005 |
chs | de-__P, remove register, ansify.
|
1.13 |
| 17-Jan-2005 |
minoura | mfp_attach() is called twice (console init & real config).
|
1.12 |
| 13-Dec-2004 |
chs | branches: 1.12.2; for drivers that support only one instance, use a global variable to ensure that only one instance is configured rather than requiring that its unit number be zero.
|
1.11 |
| 04-Jan-2004 |
wiz | Spell controller with two ls. Inspired by miod@openbsd.
|
1.10 |
| 15-Jul-2003 |
lukem | rcsid
|
1.9 |
| 02-Oct-2002 |
thorpej | branches: 1.9.6; 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 |
| 12-Jun-2001 |
wiz | branches: 1.6.2; 1.6.8; receive, not recieve
|
1.5 |
| 16-Jan-2000 |
minoura | branches: 1.5.6; Minor cleanups & corrections.
|
1.4 |
| 05-May-1999 |
minoura | branches: 1.4.2; Use mvme68k-derived delay routine. Now that we support various models, the old constant-loop delay routine may cause problems.
|
1.3 |
| 18-Mar-1999 |
minoura | branches: 1.3.2; 1.3.4; 1.3.6; G/C.
|
1.2 |
| 16-Mar-1999 |
minoura | Merged minoura_x68k_bus_h branch.
|
1.1 |
| 23-Dec-1998 |
minoura | branches: 1.1.2; file mfp.c was initially added on branch minoura_x68k_bus_h.
|
1.1.2.4 |
| 13-Feb-1999 |
minoura | Handle INTIOCF_ADDR_DEFAULT case.
|
1.1.2.3 |
| 27-Dec-1998 |
minoura | Better address map handling.
|
1.1.2.2 |
| 27-Dec-1998 |
minoura | Match device names.
|
1.1.2.1 |
| 23-Dec-1998 |
minoura | First import of bus_space implementation for x68k port.
|
1.3.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.3.4.1 |
| 21-Jun-1999 |
thorpej | Sync w/ -current.
|
1.3.2.1 |
| 24-Jun-1999 |
perry | pullup 1.3->1.4 (minoura): Use mvme68k-derived delay() routine
|
1.4.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.5.6.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.6.8.2 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.6.8.1 |
| 12-Jun-2001 |
nathanw | file mfp.c was added on branch nathanw_sa on 2002-10-18 02:40:46 +0000
|
1.6.2.1 |
| 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.9.6.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.9.6.5 |
| 24-Jan-2005 |
skrll | Sync with HEAD.
|
1.9.6.4 |
| 18-Dec-2004 |
skrll | Sync with HEAD.
|
1.9.6.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.9.6.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.9.6.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.12.2.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.15.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.15.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.17.30.1 |
| 13-Mar-2007 |
ad | Sync with head.
|
1.17.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.19.50.1 |
| 19-Jan-2009 |
skrll | Sync with HEAD.
|
1.19.42.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.19.38.1 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.23.8.1 |
| 06-Jun-2011 |
jruoho | Sync with HEAD.
|
1.23.6.1 |
| 31-May-2011 |
rmind | sync with head
|
1.25.18.1 |
| 18-May-2014 |
rmind | sync with head
|
1.25.14.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.25.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.26.34.1 |
| 18-Dec-2019 |
martin | Pull up following revision(s) (requested by tsutsui in ticket #570):
sys/compat/netbsd32/netbsd32_compat_50_sysv.c: revision 1.3 sys/dev/raidframe/rf_compat50.h: revision 1.6 sys/arch/emips/emips/bus_space.c: revision 1.3 sys/compat/net/if.h: revision 1.5 sys/arch/emips/stand/common/bootinfo.c: revision 1.2 sys/compat/common/sysv_msg_50.c: revision 1.5 sys/compat/common/kern_time_30.c: revision 1.8 sys/arch/emips/stand/common/bootinfo.h: revision 1.2 sys/arch/ia64/include/bus.h: revision 1.4 sys/arch/ia64/ia64/bus_space.c: revision 1.2 sys/compat/common/sysv_shm_50.c: revision 1.5 sys/dev/ic/adw.h: revision 1.15 sys/compat/common/uipc_syscalls_50.c: revision 1.10 sys/arch/emips/ebus/flash_ebus.c: revision 1.22 sys/dev/ic/adv.h: revision 1.15 sys/dev/ic/adwmcode.c: revision 1.18 sys/dev/ic/advlib.c: revision 1.29 sys/arch/hpcarm/include/kloader.h: revision 1.3 sys/dev/usb/uberry.c: revision 1.16 sys/compat/common/sysv_sem_50.c: revision 1.5 sys/compat/netbsd32/netbsd32_compat_50.c: revision 1.43 sys/dev/ic/advlib.h: revision 1.21 sys/dev/ic/adv.c: revision 1.50 sys/compat/netinet6/in6_var.h: revision 1.5 sys/arch/hpc/stand/hpcboot/arm/arm_sa1100_asm.asm: revision 1.2 sys/arch/emips/include/loadfile_machdep.h: revision 1.3 sys/arch/emips/stand/common/prom_iface.c: revision 1.7 sys/dev/ic/adw.c: revision 1.56 sys/dev/ic/adwmcode.h: revision 1.12 sys/dev/ic/advmcode.c: revision 1.10 sys/arch/emips/ebus/ace_ebus.c: revision 1.22 sys/compat/netbsd32/netbsd32_compat_60.c: revision 1.5 sys/dev/raidframe/rf_compat50.c: revision 1.13 sys/arch/x68k/dev/intiovar.h: revision 1.15 sys/dev/usb/uipad.c: revision 1.8 sys/arch/zaurus/include/kloader.h: revision 1.3 sys/arch/emips/stand/common/bootxx.c: revision 1.2 sys/dev/ic/adwlib.h: revision 1.23 sys/dev/ic/adwlib.c: revision 1.44 sys/compat/netbsd32/netbsd32_compat_16.c: revision 1.3 sys/arch/amigappc/include/intr.h: revision 1.27 sys/arch/x68k/dev/mfp.c: revision 1.27 sys/arch/arm/at91/at91dbgu.c: revision 1.17 sys/dev/ic/advmcode.h: revision 1.7 sys/compat/ultrix/ultrix_exec.h: revision 1.7 sys/compat/common/vfs_syscalls_50.c: revision 1.24 sys/arch/mips/cavium/octeon_dma.c: revision 1.3 sys/arch/hpc/stand/hpcboot/arm/arm_pxa2x0_asm.asm: revision 1.2
Remove clause 3 and 4 from TNF licenses. Ok'ed by martin@ in PR/54760.
Remove clause 3 and 4 leftovers from TNF licenses in more sources. Confirmed by martin@ in PR/54760.
|
1.26.30.1 |
| 08-Apr-2020 |
martin | Merge changes from current as of 20200406
|
1.27.10.6 |
| 05-Apr-2021 |
thorpej | Treat config_probe() as if it were a boolean function; don't compare return value > 0... except for the odd balls, which are now really easy to spot.
|
1.27.10.5 |
| 05-Apr-2021 |
thorpej | config_match() -> config_probe() for the straight-forward indirect config cases. There are still a few odd balls using config_match() which should be sorted out later.
|
1.27.10.4 |
| 04-Apr-2021 |
thorpej | CFARG_SUBMATCH -> CFARG_SEARCH for the indirect configuration uses.
|
1.27.10.3 |
| 03-Apr-2021 |
thorpej | Give config_attach() the tagged variadic argument treatment and mechanically convert all call sites.
|
1.27.10.2 |
| 21-Mar-2021 |
thorpej | CFARG_IATTR usage audit:
If a device carries only one interface attribute, there is no need to specify it when calling config_search(); that specification is meant only to disambiguate which interface attribute (which is a proxy for "what kind of attach args are being used") is having children attached. cfparent_match() will take care of ensuring that any potential children can attach to one of the parent's iterface attributes, and if the parent only carries one, no disambiguation is necessary.
|
1.27.10.1 |
| 20-Mar-2021 |
thorpej | The proliferation if config_search_*() and config_found_*() combinations is a little absurd, so begin to tidy this up:
- Introduce a new cfarg_t enumerated type, that defines the types of tag-value variadic arguments that can be passed to the various config_*() functions (CFARG_SUBMATCH, CFARG_IATTR, and CFARG_LOCATORS, for now, plus a CFARG_EOL sentinel). - Collapse config_search_*() into config_search() that takes these variadic arguments. - Convert all call sites of config_search_*() to the new signature. Noticed several incorrect usages along the way, which will be audited in a future commit.
|
1.28.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|