History log of /src/sys/arch/amiga/dev/afsc.c |
Revision | | Date | Author | Comments |
1.47 |
| 27-Aug-2023 |
andvar | remove empty #ifdef DEBUG block.
|
1.46 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.45 |
| 24-Apr-2021 |
thorpej | branches: 1.45.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.44 |
| 27-Oct-2012 |
chs | branches: 1.44.18; 1.44.28; 1.44.52; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.43 |
| 20-Dec-2010 |
matt | branches: 1.43.8; 1.43.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.42 |
| 13-Jun-2008 |
cegger | branches: 1.42.18; use device_lookup_private to get softc
|
1.41 |
| 17-Oct-2007 |
garbled | branches: 1.41.16; 1.41.18; 1.41.20; 1.41.22; 1.41.24; 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.40 |
| 20-Aug-2007 |
is | branches: 1.40.2; First part of amigappc support patches by Frank Wille.
|
1.39 |
| 05-Mar-2007 |
he | branches: 1.39.2; 1.39.10; 1.39.14; 1.39.18; Use char*, not void* for pointer arithmetic.
|
1.38 |
| 04-Mar-2007 |
christos | Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.37 |
| 08-Mar-2006 |
lukem | branches: 1.37.16; Use the SI capitalization for "Hz", "kHz", and "MHz" in comments and strings. Add a space between numbers and Hz unit.
|
1.36 |
| 11-Dec-2005 |
christos | branches: 1.36.4; 1.36.6; 1.36.8; 1.36.10; merge ktrace-lwp.
|
1.35 |
| 13-Jun-2005 |
jmc | branches: 1.35.2; Fix a ton of const/volatile issues shown with new warning flags
|
1.34 |
| 28-Mar-2004 |
mhitch | Remove license clauses 3 and 4 in my licenses.
|
1.33 |
| 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.32 |
| 09-Apr-2003 |
thorpej | branches: 1.32.2; Use PAGE_SIZE rather than NBPG.
|
1.31 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.30 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.29 |
| 28-Jan-2002 |
aymeric | add __KERNEL_RCSID as suggested by Luke Mewburn
|
1.28 |
| 26-Jan-2002 |
aymeric | - ANSIfy - remove some trailing spaces/tabs - minor style nits
|
1.27 |
| 25-Apr-2001 |
bouyer | branches: 1.27.2; 1.27.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.26 |
| 10-Jan-1999 |
tron | branches: 1.26.8; 1.26.20; Don't use void pointer for arithmetic.
|
1.25 |
| 05-Dec-1998 |
mjacob | Update HBAs to incorporate the new max_lun property.
|
1.24 |
| 19-Nov-1998 |
thorpej | Adapt to the new scsipi_adapter interface.
|
1.23 |
| 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.22 |
| 12-Jan-1998 |
thorpej | Adjust for changes to config.
|
1.21 |
| 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.20 |
| 23-Dec-1996 |
veego | branches: 1.20.8; 1.20.10; Get rid of __BROKEN_INDIRECT_CONFIG.
|
1.19 |
| 10-Dec-1996 |
thorpej | Fill in sc_link.max_target
|
1.18 |
| 13-Oct-1996 |
christos | backout previous kprintf change
|
1.17 |
| 10-Oct-1996 |
christos | printf -> kprintf, sprintf -> ksprintf
|
1.16 |
| 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.15 |
| 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.14 |
| 21-Apr-1996 |
veego | - Cleanup for -Wall and -Wstrict-prototypes - Added support for multiple floppy drives - CyberVision64: - has now a real console mode - another bugfix for boards with the new S3 chip - Ariadne: - fixed crashes with aeput (mbuf failure)
|
1.13 |
| 18-Mar-1996 |
mhitch | A couple more misses from the device attachment changes: afcd_cd --> afsc_cd atzsccd --> atzsc_cd
|
1.12 |
| 17-Mar-1996 |
thorpej | New device attachment scheme:
- split softc size and match/attach out from cfdriver into a new struct cfattach.
- new "attach" directive for files.*. May specify the name of the cfattach structure, so that devices may be easily attached to parents with different autoconfiguration semantics.
|
1.11 |
| 15-Mar-1996 |
mhitch | Correct 53c710 initialization for the A4000T. Remove the A4000T probe debugging output.
|
1.10 |
| 28-Jan-1996 |
chopps | fix typo closes 1978
|
1.9 |
| 05-Oct-1995 |
chopps | first attempt at A4000T support, remove GRF_AGA's dependence on GRF_ECS. page 0 is now invalid, other minor cleanup. from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.8 |
| 16-Sep-1995 |
chopps | Add minimal dumpfile support. Fix a bug in pt_enter_ptpage which caused MMU faults on low-mem conditions. Change siop drivers to better handle sync. Remove diag. done for ide -- its redundant as the ROM does similar. fixed ite_filter to not panic if typing before the device is fully setup All thanks to osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.7 |
| 18-Aug-1995 |
chopps | SCSI disconnects: siop from osymh@gemini.oscs.montana.edu (Michael L. Hitch) and sbic from "Eduardo E. Horvath eeh@btr.com" <eeh@btr.btr.com>
Other cleanup (remove cpu040) and enabling IVS A500 support from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.6 |
| 12-Feb-1995 |
chopps | Many changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch) Now use amiga HW for soft interrupts, non-contig options (2 or many chunks), interrupt handler lists, 4066 ethernet, 1291 scsi, option to defer level 6 interrupts to level 4 (deal with icky built-in serial port)
|
1.5 |
| 05-Jan-1995 |
chopps | catchup with scsi changes from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.4 |
| 28-Dec-1994 |
chopps | consolidate the zbusses. le support for multiple tx buffs and full use of 32k RAM. AGA dbl PAL mode added for console. Many changes to siop--most not yet done. All from osymh@gemini.oscs.montana.edu (Michael L. Hitch)
|
1.3 |
| 01-Dec-1994 |
chopps | bring up to current. change sun to sunos. handle changes in device open params and autoconf match function params.
|
1.2 |
| 26-Oct-1994 |
cgd | new RCS ID format.
|
1.1 |
| 06-Oct-1994 |
chopps | branches: 1.1.2; fix a thinko in gvp diag. Add 4091 driver from Michael Hitch (osymh@gemini.oscs.montana.edu)
|
1.1.2.2 |
| 06-Oct-1994 |
chopps | fix a thinko in gvp diag. Add 4091 driver from Michael Hitch (osymh@gemini.oscs.montana.edu)
|
1.1.2.1 |
| 06-Oct-1994 |
chopps | file afsc.c was added on branch netbsd-1-0 on 1994-10-06 19:06:41 +0000
|
1.20.10.1 |
| 27-Aug-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.20.8.1 |
| 01-Jul-1997 |
bouyer | Updates for new scsipi subsystem. Actally known to work on i386 and sparc.
|
1.26.20.1 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.26.8.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.27.8.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.27.8.2 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.27.8.1 |
| 25-Apr-2001 |
nathanw | file afsc.c was added on branch nathanw_sa on 2002-02-28 04:06:30 +0000
|
1.27.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.27.2.1 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.32.2.4 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.32.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.32.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.32.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.35.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.35.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.36.10.1 |
| 19-Apr-2006 |
elad | sync with head - hopefully this will work
|
1.36.8.1 |
| 13-Mar-2006 |
yamt | sync with head.
|
1.36.6.1 |
| 22-Apr-2006 |
simonb | Sync with head.
|
1.36.4.1 |
| 09-Sep-2006 |
rpaulo | sync with head
|
1.37.16.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.39.18.1 |
| 03-Sep-2007 |
jmcneill | Sync with HEAD.
|
1.39.14.1 |
| 03-Sep-2007 |
skrll | Sync with HEAD.
|
1.39.10.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.39.2.1 |
| 09-Oct-2007 |
ad | Sync with head.
|
1.40.2.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.41.24.1 |
| 18-Jun-2008 |
simonb | Sync with head.
|
1.41.22.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.41.20.1 |
| 04-May-2009 |
yamt | sync with head.
|
1.41.18.1 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.41.16.1 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.42.18.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.43.18.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.43.8.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.44.52.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.44.28.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.44.18.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.44.18.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.45.8.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|