aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cfe
Commit message (Collapse)AuthorAgeFilesLines
* MFC r257334, r257336, r257337, r257338, r257341, r257342, r257343, r257370,Ian Lepore2014-05-141-1/+1
| | | | | | | | | | r257368, r257416 Hints-only devices should return BUS_PROBE_NOWILDCARD from their probe methods. Notes: svn path=/stable/10/; revision=265999
* kern cons: introduce infrastructure for console grabbing by kernelAndriy Gapon2011-12-171-0/+14
| | | | | | | | | | | | | | | At the moment grab and ungrab methods of all console drivers are no-ops. Current intended meaning of the calls is that the kernel takes control of console input. In the future the semantics may be extended to mean that the calling thread takes full ownership of the console (e.g. console output from other threads could be suspended). Inspired by: bde MFC after: 2 months Notes: svn path=/head/; revision=228631
* Follow up to r225203 refining break-to-debugger run-time configurationRobert Watson2011-08-271-2/+0
| | | | | | | | | | | | | | | improvements: (1) Implement new model in previously missed at91 UART driver (2) Move BREAK_TO_DEBUGGER and ALT_BREAK_TO_DEBUGGER from opt_comconsole.h to opt_kdb.h (spotted by np) (3) Garbage collect now-unused opt_comconsole.h MFC after: 3 weeks Approved by: re (bz) Notes: svn path=/head/; revision=225214
* Attempt to make break-to-debugger and alternative break-to-debugger moreRobert Watson2011-08-261-19/+3
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | accessible: (1) Always compile in support for breaking into the debugger if options KDB is present in the kernel. (2) Disable both by default, but allow them to be enabled via tunables and sysctls debug.kdb.break_to_debugger and debug.kdb.alt_break_to_debugger. (3) options BREAK_TO_DEBUGGER and options ALT_BREAK_TO_DEBUGGER continue to behave as before -- only now instead of compiling in break-to-debugger support, they change the default values of the above sysctls to enable those features by default. Current kernel configurations should, therefore, continue to behave as expected. (4) Migrate alternative break-to-debugger state machine logic out of individual device drivers into centralised KDB code. This has a number of upsides, but also one downside: it's now tricky to release sio spin locks when entering the debugger, so we don't. However, similar logic does not exist in other device drivers, including uart. (5) dcons requires some special handling; unlike other console types, it allows overriding KDB's own debugger selection, so we need a new interface to KDB to allow that to work. GENERIC kernels in -CURRENT will now support break-to-debugger as long as appropriate boot/run-time options are set, which should improve the debuggability of BETA kernels significantly. MFC after: 3 weeks Reviewed by: kib, nwhitehorn Approved by: re (bz) Notes: svn path=/head/; revision=225203
* Start using the 'init_static_kenv()' API provided by r198561 to initializeNeel Natu2010-08-111-19/+6
| | | | | | | CFE environment variables. Notes: svn path=/head/; revision=211158
* Create the "cfecons" tty directly using tty_makedev(). It is not clear whatNeel Natu2010-01-261-11/+11
| | | | | | | | | | | | | | | | | | | the intention of having two ttys pointing to the same cfe console device was. Also we were not initializing the output[] array passed in as input to tty_makedev() so one name of the ttys was garbage. Fix the code that calls cfe_write() to deal with the case where only a partial buffer is written out. cfe_cngetc() needs to return if there is no character available as input. If we don't do this then the cfe_timeout() function will spin forever because cfe_cngetc() will only ever return if there is valid input. Approved by: imp (mentor) Notes: svn path=/head/; revision=203001
* Fix bug in cfe_enumenv(). The CFE API to invoke is CFE_CMD_ENV_ENUMWarner Losh2010-01-111-1/+1
| | | | | | | | | and not CFE_CMD_ENV_SET. Submitted by: neel@ Notes: svn path=/head/; revision=202091
* Merge from projects/mips to head by hand:Warner Losh2010-01-111-0/+74
|\ | | | | | | | | | | | | copy over cfe_env.c... Notes: svn path=/head/; revision=202061
| * Fix various conolse issues with cfe after MPSAFE tty.Warner Losh2009-07-042-12/+12
| | | | | | | | | | | | | | Fix a bug with getting env on cfe... Notes: svn path=/projects/mips/; revision=195332
| * Merge in new cfe environment passing of kenv for swarm/sibyte boards.Warner Losh2009-07-041-0/+74
|/ | | | | | | Submitted by: Neelkanth Natu Notes: svn path=/projects/mips/; revision=195331
* Last minute TTY API change: remove mutex argument from tty_alloc().Ed Schouten2009-05-291-1/+1
| | | | | | | | | | | | | I don't want people to override the mutex when allocating a TTY. It has to be there, to keep drivers like syscons happy. So I'm creating a tty_alloc_mutex() which can be used in those cases. tty_alloc_mutex() should eventually be removed. The advantage of this approach, is that we can just remove a function, without breaking the regular API in the future. Notes: svn path=/head/; revision=193018
* Remove an unused variable to make the SENTRY5 mips kernel compileBjoern A. Zeeb2008-12-271-1/+0
| | | | | | | (though with some asm warning). Notes: svn path=/head/; revision=186513
* Remove unused consdev structure fields.Ed Schouten2008-10-271-2/+1
| | | | | | | | | The cn_unit and cn_tp fields don't seem to be used anywhere. Some drivers set them, while others don't. Just remove them, in an attempt to make our consdev code a little easier to understand. Notes: svn path=/head/; revision=184329
* Change while (cond)\n\t\t; to while (cond)\n\t\tcontinue; since theWarner Losh2008-09-281-3/+3
| | | | | | | | | | | former more explicitly tells the compiler that you want an empty loop. There are some lint programs that use this hint to avoid generating warnings. No functional change... Notes: svn path=/head/; revision=183424
* Catch up to latest tty, kdb and SYSINIT changes. Modeled after theWarner Losh2008-09-261-115/+51
| | | | | | | | dev/ofw changes, since this driver appears to have used that as a start years ago... Notes: svn path=/head/; revision=183376
* The Ultra2 never had a CFE console or CFE boot loader. Kill obviousWarner Losh2008-09-261-1/+1
| | | | | | | cut-n-paste leftover. Notes: svn path=/head/; revision=183374
* Support for CFE boot loaders. Initially the support is for MIPS, butWarner Losh2008-09-267-0/+1544
other processors will work too. Submitted by: bms@ Obtained from: p4 mips2 branch Notes: svn path=/head/; revision=183370