History log of /src/sys/dev/bi/bi.c |
Revision | | Date | Author | Comments |
1.27 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.26 |
| 24-Apr-2021 |
thorpej | branches: 1.26.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.25 |
| 15-Dec-2010 |
matt | branches: 1.25.76; Need to include <sys/device.h> since vax's <sys/cpu.h> doesn't.
|
1.24 |
| 11-Mar-2008 |
matt | branches: 1.24.26; Rototill the vax code. Switch to devicet/PRIV_ALLOC. Cleanup vax autoconf code. Move to prototype definitions. staticfy, constify, avoid casting. Use device_* accessors.
|
1.23 |
| 19-Oct-2007 |
ad | branches: 1.23.12; 1.23.16; machine/{bus,cpu,intr}.h -> sys/{bus,cpu,intr}.h
|
1.22 |
| 04-Mar-2007 |
christos | branches: 1.22.2; 1.22.14; 1.22.16; 1.22.20; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.21 |
| 11-Dec-2005 |
christos | branches: 1.21.26; merge ktrace-lwp.
|
1.20 |
| 27-Feb-2005 |
perry | branches: 1.20.4; nuke trailing whitespace
|
1.19 |
| 04-Feb-2005 |
perry | de-__P
|
1.18 |
| 01-Jan-2003 |
thorpej | branches: 1.18.2; 1.18.10; 1.18.12; Use aprint_normal() in cfprint routines.
|
1.17 |
| 13-Nov-2001 |
lukem | add RCSID
|
1.16 |
| 26-Jul-2000 |
ragge | branches: 1.16.2; 1.16.4; More intelligent BI vector assignment.
|
1.15 |
| 06-Jul-2000 |
ragge | Rename NODESIZE to BI_NODESIZE.
|
1.14 |
| 26-Mar-2000 |
ragge | Bus_dma'ify the KDB50 driver, and make it work.
|
1.13 |
| 04-Aug-1999 |
ragge | branches: 1.13.2; Converted to (mostly) MI code.
|
1.12 |
| 12-Jul-1999 |
ragge | Copied from ../../arch/vax/bi/bi.c,v
|
1.11 |
| 02-Feb-1999 |
ragge | Another giant change: Allocate register space dynamic instead of compiled-in. This is done on a physical page size basis, instead of virtual (as the (on vax yet non-existing) bus_* routines does). This is similar to the way uba allocation is done.
|
1.10 |
| 29-Nov-1998 |
ragge | Wall fix.
|
1.9 |
| 18-Oct-1998 |
ragge | Support for DWBUA (BI to Unibus adapter) and KLESI-B (TMSCP tape ctlr) added.
|
1.8 |
| 31-Aug-1998 |
ragge | Support for all 4 console lines on KA820. Support for this written by Sergey Svishchev (svs@ropnet.ru).
|
1.7 |
| 13-Apr-1998 |
ragge | Wall cleaning.
|
1.6 |
| 24-Jan-1998 |
ragge | Remove __BROKEN_INDIRECT_CONFIG and change all drivers to use config_search instead.
|
1.5 |
| 12-Jan-1998 |
thorpej | Update for changes to config.
|
1.4 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.3 |
| 11-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.2 |
| 27-Aug-1996 |
cgd | change cfprint_t type definition to take a const char *, rather than a char *, because that's what was really intended, and because if the print function modifies the string, various things could become unhappy (so the string should _not_ be modified).
|
1.1 |
| 19-Jul-1996 |
ragge | Support for the VAXBI bus, and KDB50 device driver (MSCP disk). Parts of this written by Chris Torek at the beginning of time.
|
1.13.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.16.4.1 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.16.2.2 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.16.2.1 |
| 14-Nov-2001 |
nathanw | Catch up to -current.
|
1.18.12.2 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.18.12.1 |
| 12-Feb-2005 |
yamt | sync with head.
|
1.18.10.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.18.2.2 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.18.2.1 |
| 04-Feb-2005 |
skrll | Sync with HEAD.
|
1.20.4.3 |
| 17-Mar-2008 |
yamt | sync with head.
|
1.20.4.2 |
| 27-Oct-2007 |
yamt | sync with head.
|
1.20.4.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.21.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.22.20.1 |
| 25-Oct-2007 |
bouyer | Sync with HEAD.
|
1.22.16.2 |
| 23-Mar-2008 |
matt | sync with HEAD
|
1.22.16.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.22.14.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.2.1 |
| 23-Oct-2007 |
ad | Sync with head.
|
1.23.16.1 |
| 03-Apr-2008 |
mjf | Sync with HEAD.
|
1.23.12.1 |
| 24-Mar-2008 |
keiichi | sync with head.
|
1.24.26.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.25.76.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.26.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|