Home | History | Annotate | Download | only in dev
History log of /src/sys/arch/amiga/dev/com_supio.c
RevisionDateAuthorComments
 1.31  08-Dec-2018  thorpej Clean up initialization of com_regs structure, in preparation for
some additional changers.
 1.30  19-Jul-2011  dyoung branches: 1.30.52; 1.30.54;
Change <machine/bus.h> to <sys/bus.h> throughout.
 1.29  22-Jan-2011  tsutsui Adjust sc_frequency in MD attachment as quirks.
It is not applicable to all 1665x variants.

XXX: It looks IOBlix board actually has 22.1184MHz OSC without clock divisor
http://amiga.resource.cx/photos/gallery/ioblix.jpg
so needs to investigate why we have to divide sc_frequency by four
to get right baud rate on IOBlix com. (firmware sets MCR_PRESCALE?)
 1.28  02-Feb-2010  phx branches: 1.28.4; 1.28.6; 1.28.8;
Fix compilation warnings and errors with amigappc.
 1.27  23-Nov-2009  rmind Use lwp_getpcb() on m68k ports, clean from struct user usage.
 1.26  28-Apr-2008  martin Remove clause 3 and 4 from TNF licenses
 1.25  14-Mar-2008  cube branches: 1.25.2; 1.25.4;
Split device_t and softc for all com(4) devices (well, everything that
uses a com_softc backend). Use proper types and ansify where appropriate.
 1.24  04-Mar-2008  he Fix reference to sc_dev so that this builds again.
 1.23  29-Feb-2008  dyoung Use pmf_device_register1() instead of shutdownhook_establish() to
register com_cleanup() as the shutdown hook.

Add a generic suspend routine. Suspend and resume com@isa.

Protect against dereferencing a NULL softc in comioctl().

Destroy both a mutex and a callout in com_detach().

Cosmetic: use aprint_*_dev(). Use PMF_FN_ARGS, PMF_FN_PROTO.
 1.22  21-Dec-2006  yamt branches: 1.22.24; 1.22.40; 1.22.44;
merge yamt-splraiseipl branch.

- finish implementing splraiseipl (and makeiplcookie).
http://mail-index.NetBSD.org/tech-kern/2006/07/01/0000.html
- complete workqueue(9) and fix its ipl problem, which is reported
to cause audio skipping.
- fix netbt (at least compilation problems) for some ports.
- fix PR/33218.
 1.21  13-Jul-2006  gdamore branches: 1.21.4; 1.21.6;
Add an option COM_REGMAP to allow com(4) to use an array of register indices.
This allows us to convert aucom to just another com attachment, and cleanup
some code in the com_arbus.c.

Additionally, we use a common com_cleanup routine rather than having a
zillion copies of it in the attachment points.

This has been tested on a number architectures, and it has been shown to get
close to comparable performance when COM_REGMAP is defined, and comparable
when it is not defined.

Approved by core@. Fixes PR port-evbmips/32362.
 1.20  11-Dec-2005  christos branches: 1.20.4; 1.20.8; 1.20.16;
merge ktrace-lwp.
 1.19  07-Aug-2003  agc branches: 1.19.16;
Move UCB-licensed code from 4-clause to 3-clause licence.

Patches provided by Joel Baker in PR 22364, verified by myself.
 1.18  06-Jan-2003  wiz branches: 1.18.2;
interrupt with two rs.
 1.17  02-Oct-2002  thorpej Use CFATTACH_DECL().
 1.16  27-Sep-2002  thorpej Declare all cfattach structures const.
 1.15  28-Jan-2002  aymeric add __KERNEL_RCSID as suggested by Luke Mewburn
 1.14  26-Jan-2002  aymeric - ANSIfy
- remove some trailing spaces/tabs
- minor style nits
 1.13  22-Jun-1999  is branches: 1.13.16; 1.13.20;
Align adresses better
 1.12  16-Sep-1998  is branches: 1.12.8;
Garbage collect unused 3rd parameter to comprobe1().
 1.11  15-Aug-1998  mycroft Assign my copyrights to TNF.
 1.10  10-Aug-1998  is Fix ommision in last backout.
 1.9  10-Aug-1998  is Back out last change --- it doesn't work this way
 1.8  09-Aug-1998  is Actually probe the hardware.
This is for HyperCom 3i slaveboards (to be done soon) that might or might not
sit on top of a HyperCom 3Z or HyperCom 4 or ISDN Blaster.
 1.7  11-Apr-1998  is amiga_ttyspl -> amiga_serialspl (and keep ttyspl constant at 4 again).
(Part of this change slipped in with my last machdep commit; thanks to
Matthias Scheler for pointing this out).
 1.6  10-Nov-1997  is Remove remnants from ISA com console attachment code, which caused, due
to missing variable initialization, a panic on the DraCo.
 1.5  16-Oct-1997  thorpej branches: 1.5.2;
Adjust for new home of "com" driver.
 1.4  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.3  27-Aug-1997  is branches: 1.3.2;
Yet another BROKEN removed, and another small cleanup.
 1.2  27-Aug-1997  is Rename the _probe function to _match, and remove the
#ifdef _BROKEN_INDIRECT_CONFIG which we dont need here.
Thanks to Bernd Ernesti for pointing this out.
 1.1  27-Aug-1997  is 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.3.2.4  16-Oct-1997  thorpej Sync w/ trunk.
 1.3.2.3  22-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.3.2.2  01-Sep-1997  thorpej Update marc-pcmcia branch from trunk.
 1.3.2.1  27-Aug-1997  thorpej file com_supio.c was added on branch marc-pcmcia on 1997-09-01 20:06:37 +0000
 1.5.2.1  12-Nov-1997  mellon Pull rev 1.6 up from trunk (is)
 1.12.8.1  01-Jul-1999  thorpej Sync w/ -current.
 1.13.20.3  07-Jan-2003  thorpej Sync with HEAD.
 1.13.20.2  18-Oct-2002  nathanw Catch up to -current.
 1.13.20.1  28-Feb-2002  nathanw Catch up to -current.
 1.13.16.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.13.16.1  11-Feb-2002  jdolecek Sync w/ -current.
 1.18.2.3  21-Sep-2004  skrll Fix the sync with head I botched.
 1.18.2.2  18-Sep-2004  skrll Sync with HEAD.
 1.18.2.1  03-Aug-2004  skrll Sync with HEAD
 1.19.16.2  17-Mar-2008  yamt sync with head.
 1.19.16.1  30-Dec-2006  yamt sync with head.
 1.20.16.5  13-Jul-2006  gdamore Merge from HEAD.
 1.20.16.4  17-Jun-2006  gdamore Well, tweak this some more, we are returning COM_INIT_REGS, because it
just doesn't work to have a #define for sc_iot and company. Ugh.
 1.20.16.3  17-Jun-2006  gdamore Undo COM_INIT_REGS.
 1.20.16.2  16-Jun-2006  gdamore Attempt at KNF cleanup. Not tested since m68k tools don't work for cross
building from Solaris.
 1.20.16.1  16-Jun-2006  gdamore amiga com(4) rewhack. i can't cross-compile this from Solaris due to

sh /home/garrett/netbsd/src/sys/arch/m68k/fpsp/asm2gas /home/garrett/netbsd/src
/sys/arch/m68k/fpsp/fpsp.h >fpsp.defs
sed: # format canonicalization is an unrecognized command.
sed: # operator conversion is an unrecognized command.
sed: # operand conversion is an unrecognized command.
sed: # Floating point literal conversion is an unrecognized command.

so I am not entirely sure it even compiles. YMMV.
 1.20.8.1  11-Aug-2006  yamt sync with head
 1.20.4.1  09-Sep-2006  rpaulo sync with head
 1.21.6.1  29-Sep-2006  yamt implement splraiseipl/makeiplcookie for amiga.
 1.21.4.1  12-Jan-2007  ad Sync with head.
 1.22.44.2  02-Jun-2008  mjf Sync with HEAD.
 1.22.44.1  03-Apr-2008  mjf Sync with HEAD.
 1.22.40.1  24-Mar-2008  keiichi sync with head.
 1.22.24.1  23-Mar-2008  matt sync with HEAD
 1.25.4.2  11-Mar-2010  yamt sync with head
 1.25.4.1  16-May-2008  yamt sync with head.
 1.25.2.1  18-May-2008  yamt sync with head.
 1.28.8.1  08-Feb-2011  bouyer Sync with HEAD
 1.28.6.1  06-Jun-2011  jruoho Sync with HEAD.
 1.28.4.1  05-Mar-2011  rmind sync with head
 1.30.54.1  10-Jun-2019  christos Sync with HEAD
 1.30.52.1  26-Dec-2018  pgoyette Sync with HEAD, resolve a few conflicts

RSS XML Feed