History log of /src/sys/arch/luna68k/dev/siovar.h |
Revision | | Date | Author | Comments |
1.9 |
| 25-Sep-2021 |
tsutsui | Refactor and cleanup sio (uPD7201) drivers.
- remove confusing syscn*() functions (and its header) and prepare explicit siottycninit(), siottycnget() and siottycnput() functions - use exported struct consdev and cn_tab to initialize siotty console - enable and handle E/S interrupts to make BREAK signal detected properly - make CSR (status regsiters) access functions inline static - make single byte read/write (i.e. cnputc() and cngetc()) functions static inline and take struct sio_register rather than sio channel - use proper integer type (uint16_t) for getsiocsr() as siotty.c - handle channel dependent CR2A and CR2B registers properly - use more explicit definitions for RR_* macro used by getsiocsr() - define and use proper RR0 (read register) values (there is no isStatusReg(r) macro used on 4.4BSD/luna68k)
Tested on LUNA with both wscons console and serial console.
|
1.8 |
| 02-Feb-2014 |
tsutsui | Misc cleanup of sio drivers.
- register softc of child devices as an argument of the sio interrupt handler to avoid device_lookup_private() calls on every interrupt - change type of sc_reg from (void *) to (struct sioreg *) to avoid weird address offset calculations with redundant casts - rename struct sio_softc members for consistency - use a channel number passed via sio_attach_args in lunaws_attach()
No functional chnages. Tested on LUNA.
|
1.7 |
| 31-Dec-2013 |
tsutsui | Use softint(9) properly to process TX/RX data between tty(4) layer.
It could cause possible locking issue to call tty(4) layer functions from IPL_SERIAL interrupt handlers.
Changes details (mostly similar to com(4) and z8530tty(4)): - allocate RX buffer and put data and status into it in the interrupt handler - call t_linesw->l_rint from the software interrupt handler - set the only first byte in siottystart() and use t_outq buffer to send multiple TX data - call the next t_linesw->l_start on TX complete in the software interrupt handler
Also put more changes: - handle cnmagic(9) properly (now entering ddb(4) by console BREAK works) - allocate tty in the attach function as other drivers rather than first open - use proper variable types
|
1.6 |
| 27-Jul-2011 |
tsutsui | branches: 1.6.2; 1.6.8; 1.6.12; 1.6.16; KNF, use uintNN_t, tab/space cosmetics etc.
|
1.5 |
| 27-Jul-2011 |
tsutsui | - split device_t/softc and use device_t and cfdata_t etc. - use aprint_normal(9) - include "ioconf.h" for struct cfdriver decls No crash on LUNA.
|
1.4 |
| 14-Mar-2009 |
dsl | Remove all the __P() from sys (excluding sys/dist) Diff checked with grep and MK1 eyeball. i386 and amd64 GENERIC and sys still build.
|
1.3 |
| 28-Apr-2008 |
martin | branches: 1.3.8; 1.3.14; Remove clause 3 and 4 from TNF licenses
|
1.2 |
| 04-Mar-2007 |
christos | branches: 1.2.40; 1.2.42; 1.2.44; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
|
1.1 |
| 05-Jan-2000 |
nisimura | branches: 1.1.6; 1.1.46; 1.1.84; Introduce NetBSD/luna68k port into CVS repository.
|
1.1.84.1 |
| 12-Mar-2007 |
rmind | Sync with HEAD.
|
1.1.46.1 |
| 03-Sep-2007 |
yamt | sync with head.
|
1.1.6.2 |
| 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.
|
1.1.6.1 |
| 05-Jan-2000 |
bouyer | file siovar.h was added on branch thorpej_scsipi on 2000-11-20 20:10:26 +0000
|
1.2.44.2 |
| 04-May-2009 |
yamt | sync with head.
|
1.2.44.1 |
| 16-May-2008 |
yamt | sync with head.
|
1.2.42.1 |
| 18-May-2008 |
yamt | sync with head.
|
1.2.40.1 |
| 02-Jun-2008 |
mjf | Sync with HEAD.
|
1.3.14.1 |
| 13-May-2009 |
jym | Sync with HEAD.
Commit is split, to avoid a "too many arguments" protocol error.
|
1.3.8.1 |
| 28-Apr-2009 |
skrll | Sync with HEAD.
|
1.6.16.1 |
| 18-May-2014 |
rmind | sync with head
|
1.6.12.1 |
| 20-Aug-2014 |
tls | Rebase to HEAD as of a few days ago.
|
1.6.8.1 |
| 12-Jan-2014 |
bouyer | Pull up following revision(s) (requested by tsutsui in ticket #1004): sys/arch/luna68k/dev/siotty.c: revision 1.35 sys/arch/luna68k/dev/siotty.c: revision 1.36 sys/arch/luna68k/dev/siotty.c: revision 1.37 sys/arch/luna68k/dev/siotty.c: revision 1.38 sys/arch/luna68k/dev/lunaws.c: revision 1.25 sys/arch/luna68k/dev/lunaws.c: revision 1.26 sys/arch/luna68k/dev/lunaws.c: revision 1.27 sys/arch/luna68k/dev/siovar.h: revision 1.7 sys/arch/luna68k/dev/siotty.c: revision 1.34 struct device * -> device_t, use device_xname() (from chs@) Whitespace cleanup. Use softint(9) to pass received data into wskbd(9) and wsmouse(9) layers. It might be problematic to call them from an interrupt handler at IPL_SERIAL. Tab/space cleanup. Use softint(9) properly to process TX/RX data between tty(4) layer. It could cause possible locking issue to call tty(4) layer functions from IPL_SERIAL interrupt handlers. Changes details (mostly similar to com(4) and z8530tty(4)): - allocate RX buffer and put data and status into it in the interrupt handler - call t_linesw->l_rint from the software interrupt handler - set the only first byte in siottystart() and use t_outq buffer to send multiple TX data - call the next t_linesw->l_start on TX complete in the software interrupt handler Also put more changes: - handle cnmagic(9) properly (now entering ddb(4) by console BREAK works) - allocate tty in the attach function as other drivers rather than first open - use proper variable types Remove initialization of unused t_softc in struct tty (to make pullup easier).
|
1.6.2.1 |
| 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")
|