summaryrefslogtreecommitdiffstats
path: root/sys/dev/cfe
Commit message (Collapse)AuthorAgeFilesLines
* Create the "cfecons" tty directly using tty_makedev(). It is not clear whatneel2010-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)
* Fix bug in cfe_enumenv(). The CFE API to invoke is CFE_CMD_ENV_ENUMimp2010-01-111-1/+1
| | | | | | and not CFE_CMD_ENV_SET. Submitted by: neel@
* Merge from projects/mips to head by hand:imp2010-01-111-0/+74
|\ | | | | | | copy over cfe_env.c...
| * Fix various conolse issues with cfe after MPSAFE tty.imp2009-07-042-12/+12
| | | | | | | | Fix a bug with getting env on cfe...
| * Merge in new cfe environment passing of kenv for swarm/sibyte boards.imp2009-07-041-0/+74
|/ | | | Submitted by: Neelkanth Natu
* Last minute TTY API change: remove mutex argument from tty_alloc().ed2009-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.
* Remove an unused variable to make the SENTRY5 mips kernel compilebz2008-12-271-1/+0
| | | | (though with some asm warning).
* Remove unused consdev structure fields.ed2008-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.
* Change while (cond)\n\t\t; to while (cond)\n\t\tcontinue; since theimp2008-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...
* Catch up to latest tty, kdb and SYSINIT changes. Modeled after theimp2008-09-261-115/+51
| | | | | dev/ofw changes, since this driver appears to have used that as a start years ago...
* The Ultra2 never had a CFE console or CFE boot loader. Kill obviousimp2008-09-261-1/+1
| | | | cut-n-paste leftover.
* Support for CFE boot loaders. Initially the support is for MIPS, butimp2008-09-267-0/+1544
other processors will work too. Submitted by: bms@ Obtained from: p4 mips2 branch
OpenPOWER on IntegriCloud