History log of /src/sys/arch/dreamcast/dev/maple/maple.c |
Revision | | Date | Author | Comments |
1.57 |
| 05-Jul-2022 |
andvar | s/retrys/retries/ in comments.
|
1.56 |
| 28-Mar-2022 |
riastradh | sys: Split struct device into a private device_impl.h.
Include this only inside autoconf itself, and a few files that abuse autoconf in ways I can't confidently make easy fixes for.
XXX kernel ABI change requires bump -- no more use of struct device internals allowed, previously done by some drivers
|
1.55 |
| 07-Aug-2021 |
thorpej | Merge thorpej-cfargs2.
|
1.54 |
| 24-Apr-2021 |
thorpej | branches: 1.54.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.53 |
| 06-May-2019 |
ryo | branches: 1.53.12; cv_init() must be done before calling maple_scanbus(). ok tsutsui@
|
1.52 |
| 06-Dec-2015 |
tsutsui | branches: 1.52.18; Convert tsleep(9)/wakeup(9) pairs to condvar(9) with mutex(9).
Briefly tested with mkbd(4).
|
1.51 |
| 25-Jul-2014 |
dholland | branches: 1.51.4; Add d_discard to all struct cdevsw instances I could find.
All have been set to "nodiscard"; some should get a real implementation.
|
1.50 |
| 27-Mar-2014 |
christos | branches: 1.50.2; correct/add protection against snprintf overflow.
|
1.49 |
| 26-Mar-2014 |
christos | kill sprintf
|
1.48 |
| 16-Mar-2014 |
dholland | Change (mostly mechanically) every cdevsw/bdevsw I can find to use designated initializers.
I have not built every extant kernel so I have probably broken at least one build; however I've also found and fixed some wrong cdevsw/bdevsw entries so even if so I think we come out ahead.
|
1.47 |
| 14-Mar-2014 |
martin | Remove unused variables
|
1.46 |
| 13-Oct-2013 |
riz | Catch up to recent changes in config_pending_{incr,decr}().
|
1.45 |
| 27-Oct-2012 |
chs | branches: 1.45.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
|
1.44 |
| 19-Jul-2011 |
dyoung | branches: 1.44.2; 1.44.12; Change <machine/bus.h> to <sys/bus.h> throughout.
Split bus.h -> bus_{defs,funcs}.h.
Mark dreamcast/bus.h obsolete.
|
1.43 |
| 12-Nov-2010 |
uebayasi | Pull in uvm/uvm.h where UVM's page level interface is used.
|
1.42 |
| 17-Oct-2010 |
tsutsui | Include "ioconf.h" for struct cfdriver.
|
1.41 |
| 17-Oct-2010 |
tsutsui | Split device_t/softc.
|
1.40 |
| 19-Oct-2008 |
mjf | branches: 1.40.14; 1.40.16; Fix debug code that had bitrotted. This allows the maple(4) driver to be compiled with MAPLE_DEBUG defined.
o line 798: variable buf shadows previous local o line 1425: event_thread is no longer a struct proc but now is a lwp_t. Use the correct p_pid member.
|
1.39 |
| 01-Aug-2008 |
marcus | sysasic_intr_string() takes an IRL, not an IPL.
|
1.38 |
| 08-Jun-2008 |
tsutsui | branches: 1.38.4; Use device_lookup_private() to get softc.
|
1.37 |
| 04-Jun-2008 |
ad | vm_page: put TAILQ_ENTRY into a union with LIST_ENTRY, so we can use both.
|
1.36 |
| 28-Apr-2008 |
martin | branches: 1.36.2; Remove clause 3 and 4 from TNF licenses
|
1.35 |
| 17-Oct-2007 |
garbled | branches: 1.35.16; 1.35.18; 1.35.20; 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.34 |
| 09-Jul-2007 |
ad | branches: 1.34.10; Merge some of the less invasive changes from the vmlocking branch:
- kthread, callout, devsw API changes - select()/poll() improvements - miscellaneous MT safety improvements
|
1.33 |
| 12-Mar-2007 |
tsutsui | branches: 1.33.2; 1.33.8; IRL line connected to each device on sysasic is not always corresponding with MI IPL_* definitions, so add an independent arg to pass IRL lines to sysasic_intr_establish() and use appropriate macro for them.
|
1.32 |
| 04-Mar-2007 |
christos | branches: 1.32.2; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.31 |
| 11-Dec-2005 |
christos | branches: 1.31.26; merge ktrace-lwp.
|
1.30 |
| 26-Aug-2005 |
drochner | s/locdesc_t/int/g
|
1.29 |
| 03-Jul-2005 |
he | branches: 1.29.2; Make the prototype declaration of maplesubmatch() match the function decl.
|
1.28 |
| 28-Jun-2005 |
drochner | convert remaining autoconf bus "submatch" functions to use the new signature (passing locators), and remove some which obviously don't serve any purpose (untested, sorry)
|
1.27 |
| 19-Feb-2005 |
tsutsui | - u_intNN_t -> uintNN_t - ANSI function decls - ntohl -> be32toh, htonl -> htobe32, htons -> htobe16 - bcopy -> memcpy, bcmp -> memcmp, bzero -> memset - some KNF
|
1.26 |
| 15-Jul-2003 |
lukem | branches: 1.26.8; 1.26.10; __KERNEL_RCSID()
|
1.25 |
| 15-Feb-2003 |
itohy | branches: 1.25.2; constify command buffer
|
1.24 |
| 11-Feb-2003 |
itohy | Tweak unit ping (removal detect) code to work around problems with some 3rd party memory cards.
|
1.23 |
| 01-Jan-2003 |
thorpej | Use aprint_normal() for cfprint routines.
|
1.22 |
| 06-Dec-2002 |
itohy | Pass devinfo of the base device (subunit == 0 of the same port) to sub-drivers.
|
1.21 |
| 15-Nov-2002 |
itohy | New Maple Bus driver - interrupt driven - support hot swapping - sub-drivers can send commands
|
1.20 |
| 23-Oct-2002 |
jdolecek | merge kqueue branch into -current
kqueue provides a stateful and efficient event notification framework currently supported events include socket, file, directory, fifo, pipe, tty and device changes, and monitoring of processes and signals
kqueue is supported by all writable filesystems in NetBSD tree (with exception of Coda) and all device drivers supporting poll(2)
based on work done by Jonathan Lemon for FreeBSD initial NetBSD port done by Luke Mewburn and Jason Thorpe
|
1.19 |
| 02-Oct-2002 |
thorpej | Add trailing ; to CFATTACH_DECL
|
1.18 |
| 01-Oct-2002 |
thorpej | Use CFATTACH_DECL().
|
1.17 |
| 27-Sep-2002 |
thorpej | Declare all cfattach structures const.
|
1.16 |
| 27-Sep-2002 |
thorpej | Introduce a new routine, config_match(), which invokes the cfattach->ca_match function in behalf of the caller. Use it rather than invoking cfattach->ca_match directly.
|
1.15 |
| 27-Sep-2002 |
thorpej | When in a match routine, the cfdata we're passed always references our own cfdriver, so don't bother comparing the names, since they will always match.
|
1.14 |
| 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.13 |
| 02-Jun-2002 |
drochner | branches: 1.13.2; move initialization of the "struct pglist" returned by uvm_pglistalloc() from the calling code into uvm_pglistalloc() itself for consistency and easier error handling
|
1.12 |
| 25-Mar-2002 |
uch | branches: 1.12.2; ANSIfy, KNF
|
1.11 |
| 24-Mar-2002 |
uch | adapted to new interrupt code and shb changes.
|
1.10 |
| 04-Dec-2001 |
atatat | Fixes to eliminate some compiler complaints, such as:
suggest explicit braces to avoid ambiguous `else' suggest parentheses around assignment used as truth value
|
1.9 |
| 22-Jul-2001 |
wiz | branches: 1.9.2; bcopy -> memcpy, bzero -> memset
|
1.8 |
| 26-May-2001 |
chs | branches: 1.8.2; replace vm_page_t with struct vm_page *.
|
1.7 |
| 26-May-2001 |
marcus | Changed maple device to attach per function instead of per unit. Raw maple unit access is now possible through /dev/maple*.
|
1.6 |
| 16-Mar-2001 |
marcus | sc_port_units was set incorrectly at probe time.
|
1.5 |
| 03-Feb-2001 |
marcus | branches: 1.5.2; 1.5.4; Added subunit scan.
|
1.4 |
| 31-Jan-2001 |
thorpej | Make the "maple" bus a direct config bus. Now, when a device is not configured into the kernel, you know about it, e.g.:
Dreamcast Controller at maple0 port 0 not configured
|
1.3 |
| 21-Jan-2001 |
marcus | Corrected license text.
|
1.2 |
| 19-Jan-2001 |
marcus | Better DMA allocator (thanks to Jason R. Thorpe).
|
1.1 |
| 16-Jan-2001 |
marcus | Maple bus driver.
|
1.5.4.2 |
| 21-Jun-2001 |
nathanw | Catch up to -current.
|
1.5.4.1 |
| 09-Apr-2001 |
nathanw | Catch up with -current.
|
1.5.2.2 |
| 27-Mar-2001 |
bouyer | Sync with HEAD.
|
1.5.2.1 |
| 03-Feb-2001 |
bouyer | file maple.c was added on branch thorpej_scsipi on 2001-03-27 15:30:39 +0000
|
1.8.2.4 |
| 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.2.3 |
| 23-Jun-2002 |
jdolecek | catch up with -current on kqueue branch
|
1.8.2.2 |
| 10-Jan-2002 |
thorpej | Sync kqueue branch with -current.
|
1.8.2.1 |
| 03-Aug-2001 |
lukem | update to -current
|
1.9.2.1 |
| 10-Oct-2001 |
fvdl | Convert all remaining devices.
|
1.12.2.2 |
| 14-Jul-2002 |
gehenna | catch up with -current.
|
1.12.2.1 |
| 17-May-2002 |
gehenna | Add device switch.
|
1.13.2.6 |
| 03-Jan-2003 |
thorpej | Sync with HEAD.
|
1.13.2.5 |
| 11-Dec-2002 |
thorpej | Sync with HEAD.
|
1.13.2.4 |
| 11-Nov-2002 |
nathanw | Catch up to -current
|
1.13.2.3 |
| 18-Oct-2002 |
nathanw | Catch up to -current.
|
1.13.2.2 |
| 17-Sep-2002 |
nathanw | Catch up to -current.
|
1.13.2.1 |
| 02-Jun-2002 |
nathanw | file maple.c was added on branch nathanw_sa on 2002-09-17 21:14:12 +0000
|
1.25.2.6 |
| 10-Nov-2005 |
skrll | Sync with HEAD. Here we go again...
|
1.25.2.5 |
| 04-Mar-2005 |
skrll | Sync with HEAD.
Hi Perry!
|
1.25.2.4 |
| 17-Jan-2005 |
skrll | Adapt to branch.
|
1.25.2.3 |
| 21-Sep-2004 |
skrll | Fix the sync with head I botched.
|
1.25.2.2 |
| 18-Sep-2004 |
skrll | Sync with HEAD.
|
1.25.2.1 |
| 03-Aug-2004 |
skrll | Sync with HEAD
|
1.26.10.1 |
| 19-Mar-2005 |
yamt | sync with head. xen and whitespace. xen part is not finished.
|
1.26.8.1 |
| 29-Apr-2005 |
kent | sync with -current
|
1.29.2.2 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.29.2.1 |
| 21-Jun-2006 |
yamt | sync with head.
|
1.31.26.2 |
| 24-Mar-2007 |
yamt | sync with head.
|
1.31.26.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.32.2.2 |
| 15-Jul-2007 |
ad | Sync with head.
|
1.32.2.1 |
| 13-Mar-2007 |
ad | Sync with head.
|
1.33.8.1 |
| 03-Oct-2007 |
garbled | Sync with HEAD
|
1.33.2.1 |
| 11-Jul-2007 |
mjf | Sync with head.
|
1.34.10.1 |
| 06-Nov-2007 |
matt | sync with HEAD
|
1.35.20.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.35.20.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.35.18.2 |
| 17-Jun-2008 |
yamt | sync with head.
|
1.35.18.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.35.16.5 |
| 17-Jan-2009 |
mjf | Sync with HEAD.
|
1.35.16.4 |
| 28-Sep-2008 |
mjf | Sync with HEAD.
|
1.35.16.3 |
| 29-Jun-2008 |
mjf | Sync with HEAD.
|
1.35.16.2 |
| 05-Jun-2008 |
mjf | Sync with HEAD.
Also fix build.
|
1.35.16.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.36.2.2 |
| 18-Sep-2008 |
wrstuden | Sync with wrstuden-revivesa-base-2.
|
1.36.2.1 |
| 23-Jun-2008 |
wrstuden | Sync w/ -current. 34 merge conflicts to follow.
|
1.38.4.2 |
| 13-Dec-2008 |
haad | Update haad-dm branch to haad-dm-base2.
|
1.38.4.1 |
| 19-Oct-2008 |
haad | Sync with HEAD.
|
1.40.16.1 |
| 05-Mar-2011 |
rmind | sync with head
|
1.40.14.1 |
| 22-Oct-2010 |
uebayasi | Sync with HEAD (-D20101022).
|
1.44.12.3 |
| 03-Dec-2017 |
jdolecek | update from HEAD
|
1.44.12.2 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.44.12.1 |
| 20-Nov-2012 |
tls | Resync to 2012-11-19 00:00:00 UTC
|
1.44.2.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.44.2.1 |
| 30-Oct-2012 |
yamt | sync with head
|
1.45.2.1 |
| 18-May-2014 |
rmind | sync with head
|
1.50.2.1 |
| 10-Aug-2014 |
tls | Rebase.
|
1.51.4.1 |
| 27-Dec-2015 |
skrll | Sync with HEAD (as of 26th Dec)
|
1.52.18.1 |
| 10-Jun-2019 |
christos | Sync with HEAD
|
1.53.12.2 |
| 22-Mar-2021 |
thorpej | Audit CFARG_IATTR in config_found() calls, and remove it in situations where the interface attribute is not ambiguous.
|
1.53.12.1 |
| 22-Mar-2021 |
thorpej | Mechanical conversion of config_found_sm_loc() -> config_found(). CFARG_IATTR usage needs to be audited.
|
1.54.8.1 |
| 04-Aug-2021 |
thorpej | Adapt to CFARGS().
|