History log of /src/sys/arch/amiga/dev/drsupio.c |
Revision | | Date | Author | Comments |
1.23 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.22 |
| 24-Apr-2021 |
thorpej | branches: 1.22.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.21 |
| 27-Oct-2012 |
chs | branches: 1.21.52; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.20 |
| 19-Jul-2011 |
dyoung | branches: 1.20.2; 1.20.12; Change <machine/bus.h> to <sys/bus.h> throughout.
|
1.19 |
| 20-Dec-2010 |
matt | 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.18 |
| 28-Apr-2008 |
martin | branches: 1.18.22; Remove clause 3 and 4 from TNF licenses
|
1.17 |
| 11-Dec-2005 |
christos | branches: 1.17.74; 1.17.76; 1.17.78; merge ktrace-lwp.
|
1.16 |
| 13-Jun-2005 |
jmc | Fix a ton of const/volatile issues shown with new warning flags
|
1.15 |
| 01-Apr-2003 |
thorpej | branches: 1.15.2; Use PAGE_SIZE rather than NBPG.
|
1.14 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.13 |
| 02-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.12 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.11 |
| 06-Sep-2002 |
gehenna | Merge the gehenna-devsw branch into the trunk.
This merge changes the device switch tables from static array to dynamically generated by config(8).
- All device switches is defined as a constant structure in device drivers.
- The new grammer ``device-major'' is introduced to ``files''.
device-major <prefix> char <num> [block <num>] [<rules>]
- All device major numbers must be listed up in port dependent majors.<arch> by using this grammer.
- Added the new naming convention. The name of the device switch must be <prefix>_[bc]devsw for auto-generation of device switch tables.
- The backward compatibility of loading block/character device switch by LKM framework is broken. This is necessary to convert from block/character device major to device name in runtime and vice versa.
- The restriction to assign device major by LKM is completely removed. We don't need to reserve LKM entries for dynamic loading of device switch.
- In compile time, device major numbers list is packed into the kernel and the LKM framework will refer it to assign device major number dynamically.
|
1.10 |
| 28-Jan-2002 |
aymeric | branches: 1.10.8; add __KERNEL_RCSID as suggested by Luke Mewburn
|
1.9 |
| 26-Jan-2002 |
aymeric | - ANSIfy - remove some trailing spaces/tabs - minor style nits
|
1.8 |
| 16-Mar-2000 |
kleink | branches: 1.8.8; 1.8.12; Kill more broken cf_unit bogons.
|
1.7 |
| 30-Dec-1999 |
is | Rewrite of the Amiga bus_space machinery to prepare for the support of the generic IDE driver and the PCMCIA slots.
|
1.6 |
| 16-Feb-1999 |
is | branches: 1.6.8; Fix Copyright dates
|
1.5 |
| 16-Feb-1999 |
is | Assign my files to The NetBSD Foundation, Inc.
|
1.4 |
| 12-Jan-1998 |
thorpej | Adjust for changes to config.
|
1.3 |
| 27-Sep-1997 |
is | First part of splitting lpt.c, and the NetBSD/Amiga "supio" frontend. Needs a bit more work to allow an ISA frontend.
|
1.2 |
| 16-Sep-1997 |
is | Support for the upcoming NetBSD/Amiga Hypercom driver family: * support chip clocks != COM_FREQ, by introducing sc_frequency (for the mainline code) and adding a frequency parameter right after the rate parameter to comcnattach() and com_kgdb_attach(). - Make com_isa and com_multi initialize sc_frequency to COM_FREQ. - Make i386/machdep.c and alpha/dec_xxx.c call com*attach() with the freq. parameter. * supio_attach_args get two more fields: a sc_ipl and a sc_arg, both ints. - com_supio uses the first for interupt establishment (all childs will, as soon as they exist) and the 2nd for sc_frequency. - drsupio passes sc_ipl alway as 5, and for the "com"s, sc_arg as 16*115200 - hyper will pass sc_ipl as 6, and sc_arg as 16 * 460800
|
1.1 |
| 27-Aug-1997 |
is | branches: 1.1.2; Define supio, a direct bus with a single locator, the port number. This is for "standard PC i/o stuff" at known and constant locations, e.g. when multi-io chips are used on non-ISA mainboards. Implement drsupio.c, the DraCo version of this. Attach the generic com.c to this bus. Remove the old drcom hack.
|
1.1.2.4 |
| 14-Oct-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.1.2.3 |
| 22-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.1.2.2 |
| 01-Sep-1997 |
thorpej | Update marc-pcmcia branch from trunk.
|
1.1.2.1 |
| 27-Aug-1997 |
thorpej | file drsupio.c was added on branch marc-pcmcia on 1997-09-01 20:06:41 +0000
|
1.6.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.8.12.4 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.8.12.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.8.12.2 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.8.12.1 |
| 28-Feb-2002 |
nathanw | Catch up to -current.
|
1.8.8.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.8.8.1 |
| 11-Feb-2002 |
jdolecek | Sync w/ -current.
|
1.10.8.1 |
| 16-May-2002 |
gehenna | Include sys/conf.h directly.
|
1.15.2.1 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.17.78.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.17.76.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.17.74.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.18.22.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.20.12.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.20.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.21.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.22.8.1 |
| 03-Aug-2021 |
thorpej | Adapt to CFARGS().
|