| History log of /src/sys/arch/hpcmips/tx/txcom.c | 
    | Revision |  | Date | Author | Comments | 
|  1.53  | 
 | 23-Sep-2024  | 
andvar  | s/dicipline/discipline/ in debug message.
  | 
|  1.52  | 
 | 07-Aug-2021  | 
thorpej  | branches:  1.52.12; Merge thorpej-cfargs2.
  | 
|  1.51  | 
 | 24-Apr-2021  | 
thorpej  | branches:  1.51.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.50  | 
 | 21-Nov-2020  | 
thorpej  | branches:  1.50.2; malloc(9) -> kmem(9)
  | 
|  1.49  | 
 | 15-Nov-2014  | 
christos  | branches:  1.49.32; centralize the call unit / dialout macros
  | 
|  1.48  | 
 | 25-Jul-2014  | 
dholland  | Add d_discard to all struct cdevsw instances I could find.
  All have been set to "nodiscard"; some should get a real implementation.
  | 
|  1.47  | 
 | 16-Mar-2014  | 
dholland  | branches:  1.47.2; 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.46  | 
 | 27-Oct-2012  | 
chs  | branches:  1.46.2; split device_t/softc for all remaining drivers. replace "struct device *" with "device_t". use device_xname(), device_unit(), etc.
  | 
|  1.45  | 
 | 24-Apr-2011  | 
rmind  | branches:  1.45.4;  1.45.14; Rename ttymalloc() to tty_alloc(), and ttyfree() to tty_free() for consistency.  Remove some unnecessary malloc.h inclusions as well.
  | 
|  1.44  | 
 | 20-Jul-2010  | 
tsutsui  | branches:  1.44.2; Replace callout(9) with softint(9) which is more appropriate there. Inspired by PR port-hpcmips/43472 and tested by Risto Sainio.
  | 
|  1.43  | 
 | 16-Jul-2010  | 
tsutsui  | Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474
  | 
|  1.42  | 
 | 16-Jul-2010  | 
tsutsui  | Add missing callout_init(9) calls. PR port-hpcmips/43472
  | 
|  1.41  | 
 | 14-Mar-2009  | 
dsl  | branches:  1.41.2;  1.41.4; Change about 4500 of the K&R function definitions to ANSI ones. There are still about 1600 left, but they have ',' or /* ... */ in the actual variable definitions - which my awk script doesn't handle. There are also many that need () -> (void). (The script does handle misordered arguments.)
  | 
|  1.40  | 
 | 12-Jun-2008  | 
tsutsui  | branches:  1.40.4;  1.40.6;  1.40.10; Use device_lookup_private() to get softc.
  | 
|  1.39  | 
 | 28-Apr-2008  | 
martin  | branches:  1.39.2;  1.39.4; Remove clause 3 and 4 from TNF licenses
  | 
|  1.38  | 
 | 19-Nov-2007  | 
ad  | branches:  1.38.14;  1.38.16;  1.38.18; - Factor out too many copies of the same bit of tty code. - Fix another tty signalling/wakeup problem.
  | 
|  1.37  | 
 | 04-Mar-2007  | 
christos  | branches:  1.37.2;  1.37.18;  1.37.20;  1.37.24;  1.37.26; Kill caddr_t; there will be some MI fallout, but it will be fixed shortly.
  | 
|  1.36  | 
 | 22-Feb-2007  | 
thorpej  | TRUE -> true, FALSE -> false
  | 
|  1.35  | 
 | 21-Feb-2007  | 
thorpej  | Replace the Mach-derived boolean_t type with the C99 bool type.  A future commit will replace use of TRUE and FALSE with true and false.
  | 
|  1.34  | 
 | 01-Oct-2006  | 
elad  | branches:  1.34.4; More from Matt Fleming:
  Adapt to KAUTH_DEVICE_TTY_PRIVSET and KAUTH_DEVICE_TTY_OPEN.
  | 
|  1.33  | 
 | 01-Oct-2006  | 
elad  | Adapt MD code to KAUTH_DEVICE_TTY_OPEN, batch #2 from Matt Fleming, thanks!
  Also, add forgotten splx() calls in some places.
  | 
|  1.32  | 
 | 01-Oct-2006  | 
elad  | Adapt MD code to KAUTH_DEVICE_TTY_OPEN. Patch from Matt Fleming, thanks!
  | 
|  1.31  | 
 | 23-Jul-2006  | 
ad  | branches:  1.31.4;  1.31.6; Use the LWP cached credentials where sane.
  | 
|  1.30  | 
 | 14-May-2006  | 
elad  | integrate kauth.
  | 
|  1.29  | 
 | 28-Mar-2006  | 
thorpej  | Use device_unit().
  | 
|  1.28  | 
 | 07-Mar-2006  | 
he  | branches:  1.28.2; Remove another instance of the macro triplet SET/CLR/ISSET, now found in <sys/types.h>.
  | 
|  1.27  | 
 | 24-Dec-2005  | 
perry  | branches:  1.27.4;  1.27.6;  1.27.8;  1.27.10; __asm__ -> __asm __const__ -> const __inline__ -> inline __volatile__ -> volatile
  | 
|  1.26  | 
 | 11-Dec-2005  | 
christos  | merge ktrace-lwp.
  | 
|  1.25  | 
 | 06-Sep-2005  | 
kleink  | Change the driver open function's conditional for overriding exclusive tty use from checking the proc's uid to suser(9), and account for the use of privileges.  Noted by David Holland in PR kern/31126.
  | 
|  1.24  | 
 | 12-Jun-2004  | 
uch  | branches:  1.24.12; When serial console boot, don't find power supply port from config_hook. Windows CE already power on it, and config_hook is not initialized yet.
  | 
|  1.23  | 
 | 26-Dec-2003  | 
shin  | initialize variable 'err' properly. found by gcc -Wuninitialized.
  | 
|  1.22  | 
 | 15-Jul-2003  | 
lukem  | __KERNEL_RCSID()
  | 
|  1.21  | 
 | 21-Mar-2003  | 
nakayama  | branches:  1.21.2; Follow a struct consdev changes. Pointed out by Tsuyoshi AKIHO in the port-hpcmips-ja mailing list.
  | 
|  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  | Use CFATTACH_DECL().
  | 
|  1.18  | 
 | 27-Sep-2002  | 
thorpej  | Declare all cfattach structures const.
  | 
|  1.17  | 
 | 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.16  | 
 | 17-Mar-2002  | 
atatat  | branches:  1.16.4; Convert ioctl code to use EPASSTHROUGH instead of -1 or ENOTTY for indicating an unhandled "command".  ERESTART is -1, which can lead to confusion.  ERESTART has been moved to -3 and EPASSTHROUGH has been placed at -4.  No ioctl code should now return -1 anywhere.  The ioctl() system call is now properly restartable.
  | 
|  1.15  | 
 | 29-Jan-2002  | 
uch  | clean up debug print and configuration.
  | 
|  1.14  | 
 | 14-Jun-2001  | 
uch  | branches:  1.14.2;  1.14.4;  1.14.8; ANSI KNF. and change my copyright to TNF copyright.
  | 
|  1.13  | 
 | 13-Jun-2001  | 
uch  | (TX39) switch from TX local I/O manager to hpcio
  | 
|  1.12  | 
 | 02-May-2001  | 
scw  | Add `l_poll' to `struct linesw' and provide an xxxpoll() entry point in each tty driver to indirect through it.
  This allows tty line-disciplines to handle poll(2) system calls.
  | 
|  1.11  | 
 | 04-Jan-2001  | 
sato  | branches:  1.11.2; make compilable.
  | 
|  1.10  | 
 | 02-Nov-2000  | 
eeh  | branches:  1.10.2; Adapt to the new line discipline scheme.
  | 
|  1.9  | 
 | 22-Oct-2000  | 
uch  | new I/O modules framework for TX based system.
  | 
|  1.8  | 
 | 23-Mar-2000  | 
thorpej  | New callout mechanism with two major improvements over the old timeout()/untimeout() API: - Clients supply callout handle storage, thus eliminating problems of   resource allocation. - Insertion and removal of callouts is constant time, important as   this facility is used quite a lot in the kernel.
  The old timeout()/untimeout() API has been removed from the kernel.
  | 
|  1.7  | 
 | 06-Mar-2000  | 
thorpej  | - Implement cnbell() -- ring the console bell.  The cn_bell entrypoint   is optional. - Add cn_bell to statically allocated consdevs as appropriate.
  | 
|  1.6  | 
 | 16-Jan-2000  | 
uch  | add platform dependent TX39 UART module hook. remove delay from tc5165buf interrupt handler. backlight config_hook.
  | 
|  1.5  | 
 | 13-Jan-2000  | 
uch  | TX39 IR module (connected to TX39 UARTB module)
  | 
|  1.4  | 
 | 06-Jan-2000  | 
uch  | change overrun interrupt treatment.
  | 
|  1.3  | 
 | 26-Dec-1999  | 
uch  | branches:  1.3.2; totaly rewritten.
  | 
|  1.2  | 
 | 23-Dec-1999  | 
uch  | Detect overrun interrupt. and add spl.
  | 
|  1.1  | 
 | 20-Nov-1999  | 
uch  | Toshiba TX3912/3922 internal modules.
  | 
|  1.3.2.2  | 
 | 27-Dec-1999  | 
wrstuden  | Pull up to last week's -current.
  | 
|  1.3.2.1  | 
 | 26-Dec-1999  | 
wrstuden  | file txcom.c was added on branch wrstuden-devbsize on 1999-12-27 18:32:13 +0000
  | 
|  1.10.2.4  | 
 | 05-Jan-2001  | 
bouyer  | Sync with HEAD
  | 
|  1.10.2.3  | 
 | 22-Nov-2000  | 
bouyer  | Sync with HEAD.
  | 
|  1.10.2.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.10.2.1  | 
 | 02-Nov-2000  | 
bouyer  | file txcom.c was added on branch thorpej_scsipi on 2000-11-20 20:47:38 +0000
  | 
|  1.11.2.1  | 
 | 21-Jun-2001  | 
nathanw  | Catch up to -current.
  | 
|  1.14.8.6  | 
 | 11-Nov-2002  | 
nathanw  | Catch up to -current
  | 
|  1.14.8.5  | 
 | 18-Oct-2002  | 
nathanw  | Catch up to -current.
  | 
|  1.14.8.4  | 
 | 17-Sep-2002  | 
nathanw  | Catch up to -current.
  | 
|  1.14.8.3  | 
 | 01-Apr-2002  | 
nathanw  | Catch up to -current. (CVS: It's not just a program. It's an adventure!)
  | 
|  1.14.8.2  | 
 | 28-Feb-2002  | 
nathanw  | Catch up to -current.
  | 
|  1.14.8.1  | 
 | 14-Jun-2001  | 
nathanw  | file txcom.c was added on branch nathanw_sa on 2002-02-28 04:10:02 +0000
  | 
|  1.14.4.2  | 
 | 13-Oct-2001  | 
fvdl  | Revert the t_dev -> t_devvp change in struct tty. The way that tty structs are currently used (especially by console ttys) aren't ready for it, and this will require quite a few changes.
  | 
|  1.14.4.1  | 
 | 10-Oct-2001  | 
fvdl  | Convert all remaining devices.
  | 
|  1.14.2.3  | 
 | 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.14.2.2  | 
 | 23-Jun-2002  | 
jdolecek  | catch up with -current on kqueue branch
  | 
|  1.14.2.1  | 
 | 11-Feb-2002  | 
jdolecek  | Sync w/ -current.
  | 
|  1.16.4.1  | 
 | 19-May-2002  | 
gehenna  | Add device switch. Replace the access to devsw table and the hard-coded majors with devsw API.
  | 
|  1.21.2.5  | 
 | 10-Nov-2005  | 
skrll  | Sync with HEAD. Here we go again...
  | 
|  1.21.2.4  | 
 | 24-Jan-2005  | 
skrll  | Adapt to branch.
  | 
|  1.21.2.3  | 
 | 21-Sep-2004  | 
skrll  | Fix the sync with head I botched.
  | 
|  1.21.2.2  | 
 | 18-Sep-2004  | 
skrll  | Sync with HEAD.
  | 
|  1.21.2.1  | 
 | 03-Aug-2004  | 
skrll  | Sync with HEAD
  | 
|  1.24.12.5  | 
 | 07-Dec-2007  | 
yamt  | sync with head
  | 
|  1.24.12.4  | 
 | 03-Sep-2007  | 
yamt  | sync with head.
  | 
|  1.24.12.3  | 
 | 26-Feb-2007  | 
yamt  | sync with head.
  | 
|  1.24.12.2  | 
 | 30-Dec-2006  | 
yamt  | sync with head.
  | 
|  1.24.12.1  | 
 | 21-Jun-2006  | 
yamt  | sync with head.
  | 
|  1.27.10.4  | 
 | 13-May-2006  | 
elad  | sprinkle some #include <sys/kauth.h> in files that use kauth kpi but don't include it yet. hopefully this will prevent some fallout.
  | 
|  1.27.10.3  | 
 | 19-Apr-2006  | 
elad  | sync with head - hopefully this will work
  | 
|  1.27.10.2  | 
 | 10-Mar-2006  | 
elad  | generic_authorize() -> kauth_authorize_generic().
  | 
|  1.27.10.1  | 
 | 08-Mar-2006  | 
elad  | Adapt to kernel authorization KPI.
  I expect *some* lossage here...
  | 
|  1.27.8.4  | 
 | 11-Aug-2006  | 
yamt  | sync with head
  | 
|  1.27.8.3  | 
 | 24-May-2006  | 
yamt  | sync with head.
  | 
|  1.27.8.2  | 
 | 01-Apr-2006  | 
yamt  | sync with head.
  | 
|  1.27.8.1  | 
 | 13-Mar-2006  | 
yamt  | sync with head.
  | 
|  1.27.6.2  | 
 | 01-Jun-2006  | 
kardel  | Sync with head.
  | 
|  1.27.6.1  | 
 | 22-Apr-2006  | 
simonb  | Sync with head.
  | 
|  1.27.4.1  | 
 | 09-Sep-2006  | 
rpaulo  | sync with head
  | 
|  1.28.2.2  | 
 | 24-May-2006  | 
tron  | Merge 2006-05-24 NetBSD-current into the "peter-altq" branch.
  | 
|  1.28.2.1  | 
 | 31-Mar-2006  | 
tron  | Merge 2006-03-31 NetBSD-current into the "peter-altq" branch.
  | 
|  1.31.6.1  | 
 | 22-Oct-2006  | 
yamt  | sync with head
  | 
|  1.31.4.1  | 
 | 18-Nov-2006  | 
ad  | Sync with head.
  | 
|  1.34.4.2  | 
 | 12-Mar-2007  | 
rmind  | Sync with HEAD.
  | 
|  1.34.4.1  | 
 | 27-Feb-2007  | 
yamt  | - sync with head. - move sched_changepri back to kern_synch.c as it doesn't know PPQ anymore.
  | 
|  1.37.26.1  | 
 | 08-Dec-2007  | 
mjf  | Sync with HEAD.
  | 
|  1.37.24.1  | 
 | 21-Nov-2007  | 
bouyer  | Sync with HEAD
  | 
|  1.37.20.1  | 
 | 09-Jan-2008  | 
matt  | sync with HEAD
  | 
|  1.37.18.1  | 
 | 21-Nov-2007  | 
joerg  | Sync with HEAD.
  | 
|  1.37.2.1  | 
 | 03-Dec-2007  | 
ad  | Sync with HEAD.
  | 
|  1.38.18.3  | 
 | 11-Aug-2010  | 
yamt  | sync with head.
  | 
|  1.38.18.2  | 
 | 04-May-2009  | 
yamt  | sync with head.
  | 
|  1.38.18.1  | 
 | 16-May-2008  | 
yamt  | sync with head.
  | 
|  1.38.16.2  | 
 | 17-Jun-2008  | 
yamt  | sync with head.
  | 
|  1.38.16.1  | 
 | 18-May-2008  | 
yamt  | sync with head.
  | 
|  1.38.14.2  | 
 | 29-Jun-2008  | 
mjf  | Sync with HEAD.
  | 
|  1.38.14.1  | 
 | 02-Jun-2008  | 
mjf  | Sync with HEAD.
  | 
|  1.39.4.1  | 
 | 18-Jun-2008  | 
simonb  | Sync with head.
  | 
|  1.39.2.1  | 
 | 23-Jun-2008  | 
wrstuden  | Sync w/ -current. 34 merge conflicts to follow.
  | 
|  1.40.10.1  | 
 | 13-May-2009  | 
jym  | Sync with HEAD.
  Commit is split, to avoid a "too many arguments" protocol error.
  | 
|  1.40.6.1  | 
 | 26-Nov-2010  | 
riz  | Pull up following revision(s) (requested by tsutsui in ticket #1485): 	sys/arch/hpcmips/tx/txcom.c: revision 1.42 	sys/arch/hpcmips/tx/txcom.c: revision 1.43 Add missing callout_init(9) calls. PR port-hpcmips/43472 Fix a wrong arg for callout_reset(9) in txcom_txintr(). PR port-hpcmips/43474
  | 
|  1.40.4.1  | 
 | 28-Apr-2009  | 
skrll  | Sync with HEAD.
  | 
|  1.41.4.2  | 
 | 31-May-2011  | 
rmind  | sync with head
  | 
|  1.41.4.1  | 
 | 05-Mar-2011  | 
rmind  | sync with head
  | 
|  1.41.2.1  | 
 | 17-Aug-2010  | 
uebayasi  | Sync with HEAD.
  | 
|  1.44.2.1  | 
 | 06-Jun-2011  | 
jruoho  | Sync with HEAD.
  | 
|  1.45.14.3  | 
 | 03-Dec-2017  | 
jdolecek  | update from HEAD
  | 
|  1.45.14.2  | 
 | 20-Aug-2014  | 
tls  | Rebase to HEAD as of a few days ago.
  | 
|  1.45.14.1  | 
 | 20-Nov-2012  | 
tls  | Resync to 2012-11-19 00:00:00 UTC
  | 
|  1.45.4.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.45.4.1  | 
 | 30-Oct-2012  | 
yamt  | sync with head
  | 
|  1.46.2.1  | 
 | 18-May-2014  | 
rmind  | sync with head
  | 
|  1.47.2.1  | 
 | 10-Aug-2014  | 
tls  | Rebase.
  | 
|  1.49.32.1  | 
 | 14-Dec-2020  | 
thorpej  | Sync w/ HEAD.
  | 
|  1.50.2.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.51.8.1  | 
 | 04-Aug-2021  | 
thorpej  | Adapt to CFARGS().
  | 
|  1.52.12.1  | 
 | 02-Aug-2025  | 
perseant  | Sync with HEAD
  |