History log of /src/sys/arch/amiga/dev/drsc.c |
Revision | | Date | Author | Comments |
1.35 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.34 |
| 24-Apr-2021 |
thorpej | branches: 1.34.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.33 |
| 22-Mar-2014 |
christos | branches: 1.33.10; 1.33.20; 1.33.44; kill sprintf fix unused variables
|
1.32 |
| 27-Oct-2012 |
chs | branches: 1.32.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.31 |
| 20-Dec-2010 |
matt | branches: 1.31.8; 1.31.18; 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.30 |
| 19-May-2009 |
phx | branches: 1.30.4; Removed old Amiga-specific "sicallback" software interrupts and replaced them by MI softints. Approved by "is".
|
1.29 |
| 13-Jun-2008 |
cegger | use device_lookup_private to get softc
|
1.28 |
| 11-Dec-2005 |
christos | branches: 1.28.74; 1.28.76; 1.28.78; 1.28.80; 1.28.82; merge ktrace-lwp.
|
1.27 |
| 28-Mar-2004 |
mhitch | Remove license clauses 3 and 4 in my licenses.
|
1.26 |
| 25-Mar-2004 |
is | Only change my own license conditions.
|
1.25 |
| 25-Mar-2004 |
is | UCB no longer requires the advertising clause.
|
1.24 |
| 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.23 |
| 01-Apr-2003 |
thorpej | branches: 1.23.2; Use PAGE_SIZE rather than NBPG.
|
1.22 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.21 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.20 |
| 28-Jan-2002 |
aymeric | add __KERNEL_RCSID as suggested by Luke Mewburn
|
1.19 |
| 26-Jan-2002 |
aymeric | - ANSIfy - remove some trailing spaces/tabs - minor style nits
|
1.18 |
| 25-Apr-2001 |
bouyer | branches: 1.18.2; 1.18.8; Pull up the thorpej_scsipi branch to main branch. This is a completely rewritten scsipi_xfer execution engine, and the associated changes to HBA drivers. Overview of changes & features: - All xfers are queued in the mid-layer, rather than doing so in an ad-hoc fashion in individual adapter drivers. - Adapter/channel resource management in the mid-layer, avoids even trying to start running an xfer if the adapter/channel doesn't have the resources. - Better communication between the mid-layer and the adapters. - Asynchronous event notification mechanism from adapter to mid-layer and peripherals. - Better peripheral queue management: freeze/thaw, sorted requeueing during recovery, etc. - Clean separation of peripherals, adapters, and adapter channels (no more scsipi_link). - Kernel thread for each scsipi_channel makes error recovery much easier (no more dealing with interrupt context when recovering from an error). - Mid-layer support for tagged queueing: commands can have the tag type set explicitly, tag IDs are allocated in the mid-layer (thus eliminating the need to use buggy tag ID allocation schemes in many adapter drivers). - support for QUEUE FULL and CHECK CONDITION status in mid-layer; the command will be requeued, or a REQUEST SENSE will be sent as appropriate.
Just before the merge syssrc has been tagged with thorpej_scsipi_beforemerge
|
1.17 |
| 16-Mar-2000 |
kleink | branches: 1.17.6; Kill more broken cf_unit bogons.
|
1.16 |
| 16-Jan-2000 |
is | Yet another cpu.h.
|
1.15 |
| 05-Dec-1998 |
mjacob | branches: 1.15.10; Update HBAs to incorporate the new max_lun property.
|
1.14 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.13 |
| 10-Oct-1998 |
thorpej | Garbage-collect the open_target_lu and close_target_lu entry points from struct scsipi_adapter; they were not used.
Add a scsipi_ioctl entry point to struct scsipi_adapter. This will be used to issue ioctl commands to the host adapters.
Inspired by PR #6090, from Matt Jacob.
|
1.12 |
| 26-Jul-1998 |
is | yet more atomic operations accessing DraCo registers
|
1.11 |
| 12-Jan-1998 |
thorpej | Adjust for changes to config.
|
1.10 |
| 27-Aug-1997 |
bouyer | Merge scsipi branch in the mainline. This add support for ATAPI devices (currently only CD-ROM drives on i386). The sys/dev/scsipi system provides 2 busses to which devices can attach (scsibus and atapibus). This needed to change some include files and structure names in the low level scsi drivers.
|
1.9 |
| 23-Dec-1996 |
veego | branches: 1.9.8; 1.9.10; Get rid of __BROKEN_INDIRECT_CONFIG.
|
1.8 |
| 10-Dec-1996 |
thorpej | Fill in sc_link.max_target
|
1.7 |
| 30-Nov-1996 |
is | Make sure autoconfiguration is searching for _us_. There is more than one DraCo specific device on the DraCo mainbus.
|
1.6 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.5 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.4 |
| 28-Aug-1996 |
cgd | (1) set scsi_link channel to either the appropriate channel (if a multi-channel driver), or to SCSI_CHANNEL_ONLY_ONE if a single-channel driver. (2) use scsiprint() rather than a locally-defined autoconfig print function, and kill any locally-defined print function.
|
1.3 |
| 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.2 |
| 19-May-1996 |
is | Yet some more cleanup for missing prototypes, if DRACO is supported.
|
1.1 |
| 09-May-1996 |
is | First part of M68060 and DraCo support.
* for the M68060 part: store buffer and branch target cache aren't enabled yet (this needs cleanup of lots of locore.s code which is a maze of little passages, all a little different) (and it wasn't yet tested in an accellerated Amiga, only in the DraCo).
I've included a workaround for 2 of the CPU bugs in chips with Masks 1F43G and earlier, but didn't bother to deal with the can of worms in the [0-3]D11W chips. Be sure to get "68060 rev. 1" or more reported at kernel startup time, or at least mention it (or the mask revision, if available) when reporting problems.
* for the DraCo: only machines with a CIA timer.
I assigned machine id 32000+nn (0x7Dnn), where n is the machine readable Quicklogic custom chip revision (also printed at boot time). "Guaranteed to work" up to rev. 3, newer DraCo's aren't guaranteed to have any CIA (we don't have a driver for the new timer yet).
Supported are:
- MF-II keyboards on the native interface and A3000 keyboards via the CIA. - builtin SCSI interface (yet another instance of siop) - CIA timer. - Zorro II devices which don't do DMA (don't get mapped to Zorro II address space in the DraCo) - "local bus" devices which are autoconfigured by the boot rom (should be all); only an Altais driver is there (looks like a Retina Z3)
Not yet supported are:
- native timer of newer machines. - Real Time Clock. - serial, parallel + floppy on the SuperIO chip (that is also: no mouse)
XXX You need an enhanced boot loader, which will committed in a few days.
XXX std.draco should and will go away.
|
1.9.10.1 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.9.8.1 |
| 01-Jul-1997 |
bouyer | Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
|
1.15.10.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.
I updated the amiga SCSI drivers, but completely untested yet (may not even compile)
|
1.17.6.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.18.8.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.18.8.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.18.8.1 |
| 25-Apr-2001 |
nathanw | file drsc.c was added on branch nathanw_sa on 2002-02-28 04:06:35 +0000
|
1.18.2.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.18.2.1 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.23.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.23.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.23.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.28.82.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.28.80.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.28.78.2 |
| 20-Jun-2009 |
yamt | sync with head
|
1.28.78.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.28.76.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.28.74.1 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.30.4.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.31.18.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.31.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.31.8.2 |
| 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.31.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.32.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.33.44.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.33.20.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.33.10.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.33.10.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.34.8.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|