Home | History | Annotate | Download | only in podulebus
History log of /src/sys/arch/acorn32/podulebus/asc.c
RevisionDateAuthorComments
 1.22  07-Aug-2021  thorpej Merge thorpej-cfargs2.
 1.21  24-Apr-2021  thorpej branches: 1.21.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.20  25-Oct-2014  skrll branches: 1.20.4; 1.20.10; 1.20.34;
Remove katelib.h and references to it.

{Read,Write}{Word,Byte} macros are provided in the files that still use
them. Someone(tm) should convert them to bus_space(9)
 1.19  27-Oct-2012  chs split device_t/softc for all remaining drivers.
replace "struct device *" with "device_t".
use device_xname(), device_unit(), etc.
 1.18  19-Jul-2011  dyoung branches: 1.18.2; 1.18.12;
Change <machine/bus.h> to <sys/bus.h> throughout.

Split bus.h -> bus_{defs,funcs}.h.

Mark acorn32/bus.h obsolete.
 1.17  03-Jun-2011  matt device_t, cfdata_t, device_private, device_xname cleanup
CFATTACH_DECL_NEW for struct device only devices
bump SYMTAB_SPACE for EB7500ATX
 1.16  12-May-2009  cegger branches: 1.16.4; 1.16.6; 1.16.10;
use device_xname()
 1.15  12-Jun-2008  cegger branches: 1.15.10;
use device_lookup_private to get softc
 1.14  11-Dec-2005  christos branches: 1.14.76; 1.14.78; 1.14.80; 1.14.82; 1.14.84;
merge ktrace-lwp.
 1.13  07-Aug-2003  agc Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.12  03-May-2003  wiz branches: 1.12.2;
DMA, not dma nor Dma.
 1.11  02-Oct-2002  thorpej Fix script-o's in previous.
 1.10  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.9  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.8  27-Sep-2002  provos remove trailing \n in panic(). approved perry.
 1.7  05-Aug-2002  bjh21 Rather than forcing on XS_POLL in SCSI transfers ourselves, set
SCSIPI_ADAPT_POLL_ONLY to tell the MI scsipi layer to do it for us. This,
plus G/Cing some debugging code, removes the card-specific scsi_request
wrappers.
 1.6  22-May-2002  bjh21 Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.

This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5  10-Mar-2002  bjh21 branches: 1.5.4; 1.5.6;
__RCSID -> __KERNEL_RCSID
 1.4  18-Feb-2002  bjh21 Add a prototype for asc_dump().
Delete asc_dmaintr(): it's unused.
__RCSID().
 1.3  27-Nov-2001  thorpej branches: 1.3.2;
Use <machine/intr.h>, not <machine/irqhandler.h>
 1.2  22-Nov-2001  thorpej Kill <machine/katelib.h>. Any place that still uses it should just
reference <arm/arm32/katelib.h> until such time as all use of this
file has been purged from the face of the earth.
 1.1  05-Oct-2001  reinoud branches: 1.1.4;
Initial commit of the splitting off of arch/acorn32 from arch/arm32.

The IOMD/VIDC combination is now moved to arch/arm/iomd together. These
files still need a lot of cleaning up :( .... esp. the RC7500 support that
is still dormant in it; this needs either to be removed or split out for
RC7500's ``VIDC'' video/audio variant.

Apart from the RC7500 support wich is still in arch/arm32 the
iomd,vidc,riscpc and podulebus subdirectories of arch/arm32 can be removed.

This split still uses some small parts of arch/arm32 .... those are the MI
parts that haven't been moved yet.

RiscPC/A7000 have been tested and confirmed to build as should NC.
 1.1.4.7  18-Oct-2002  nathanw Catch up to -current.
 1.1.4.6  13-Aug-2002  nathanw Catch up to -current.
 1.1.4.5  20-Jun-2002  nathanw Catch up to -current.
 1.1.4.4  01-Apr-2002  nathanw Catch up to -current.
(CVS: It's not just a program. It's an adventure!)
 1.1.4.3  28-Feb-2002  nathanw Catch up to -current.
 1.1.4.2  08-Jan-2002  nathanw Catch up to -current.
 1.1.4.1  05-Oct-2001  nathanw file asc.c was added on branch nathanw_sa on 2002-01-08 00:22:46 +0000
 1.3.2.6  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.2.5  06-Sep-2002  jdolecek sync kqueue branch with HEAD
 1.3.2.4  23-Jun-2002  jdolecek catch up with -current on kqueue branch
 1.3.2.3  16-Mar-2002  jdolecek Catch up with -current.
 1.3.2.2  10-Jan-2002  thorpej Sync kqueue branch with -current.
 1.3.2.1  27-Nov-2001  thorpej file asc.c was added on branch kqueue on 2002-01-10 19:36:30 +0000
 1.5.6.1  01-Nov-2002  tron Pull up revision 1.6 (requested by chris in ticket #120):
Substantial overhaul of podule IDs. Unlike on PCI or USB, podule IDs are
assigned by RISCOS Ltd (and were assigned by Acorn) to be unique across all
manufacturers. This means that associating each one with a manufacturer (and
checking the manufacturer when attaching) is bogus. Thus, we don't do that
any more.
This should have the pleasant side-effect of getting APDL IDE interfaces
working, since they're just ICS ones with a different manufacturer ID.
 1.5.4.2  30-Aug-2002  gehenna catch up with -current.
 1.5.4.1  30-May-2002  gehenna Catch up with -current.
 1.12.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.12.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.12.2.1  03-Aug-2004  skrll Sync with HEAD
 1.14.84.1  18-Jun-2008  simonb Sync with head.
 1.14.82.1  23-Jun-2008  wrstuden Sync w/ -current. 34 merge conflicts to follow.
 1.14.80.2  16-May-2009  yamt sync with head
 1.14.80.1  04-May-2009  yamt sync with head.
 1.14.78.1  17-Jun-2008  yamt sync with head.
 1.14.76.1  29-Jun-2008  mjf Sync with HEAD.
 1.15.10.1  13-May-2009  jym Sync with HEAD.

Commit is split, to avoid a "too many arguments" protocol error.
 1.16.10.1  23-Jun-2011  cherry Catchup with rmind-uvmplock merge.
 1.16.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.16.4.1  12-Jun-2011  rmind sync with head
 1.18.12.2  03-Dec-2017  jdolecek update from HEAD
 1.18.12.1  20-Nov-2012  tls Resync to 2012-11-19 00:00:00 UTC
 1.18.2.1  30-Oct-2012  yamt sync with head
 1.20.34.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.20.10.1  27-Apr-2017  pgoyette Restore all work from the former pgoyette-localcount branch (which is
now abandoned doe to cvs merge botch).

The branch now builds, and installs via anita. There are still some
problems (cgd is non-functional and all atf tests time-out) but they
will get resolved soon.
 1.20.4.2  20-Jul-2016  pgoyette Redo previous. Rather than separately extracting the device_t, we can
rely on sc->sc_dev when we need to call device_release().
 1.20.4.1  19-Jul-2016  pgoyette Instead of repeatedly typing the conditional initialization of the
.d_localcount members in the various {b,c}devsw, define an initializer
macro and use it. This also removes the need for defining new symbols
for each 'struct localcount'.

As suggested by riastradh@
 1.21.8.1  03-Aug-2021  thorpej Adapt to CFARGS().

RSS XML Feed