Release 4.14 arch/powerpc/boot/ofconsole.c
/*
* OF console routines
*
* Copyright (C) Paul Mackerras 1997.
*
* This program is free software; you can redistribute it and/or
* modify it under the terms of the GNU General Public License
* as published by the Free Software Foundation; either version
* 2 of the License, or (at your option) any later version.
*/
#include <stddef.h>
#include "types.h"
#include "elf.h"
#include "string.h"
#include "stdio.h"
#include "page.h"
#include "ops.h"
#include "of.h"
static unsigned int of_stdout_handle;
static int of_console_open(void)
{
void *devp;
if (((devp = of_finddevice("/chosen")) != NULL)
&& (of_getprop(devp, "stdout", &of_stdout_handle,
sizeof(of_stdout_handle))
== sizeof(of_stdout_handle))) {
of_stdout_handle = be32_to_cpu(of_stdout_handle);
return 0;
}
return -1;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Gibson | 56 | 86.15% | 2 | 66.67% |
Cédric Le Goater | 9 | 13.85% | 1 | 33.33% |
Total | 65 | 100.00% | 3 | 100.00% |
static void of_console_write(const char *buf, int len)
{
of_call_prom("write", 3, 1, of_stdout_handle, buf, len);
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Gibson | 28 | 96.55% | 1 | 50.00% |
Geoff Levand | 1 | 3.45% | 1 | 50.00% |
Total | 29 | 100.00% | 2 | 100.00% |
void of_console_init(void)
{
console_ops.open = of_console_open;
console_ops.write = of_console_write;
}
Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Gibson | 19 | 100.00% | 1 | 100.00% |
Total | 19 | 100.00% | 1 | 100.00% |
Overall Contributors
Person | Tokens | Prop | Commits | CommitProp |
David Gibson | 131 | 91.61% | 2 | 50.00% |
Cédric Le Goater | 11 | 7.69% | 1 | 25.00% |
Geoff Levand | 1 | 0.70% | 1 | 25.00% |
Total | 143 | 100.00% | 4 | 100.00% |
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.