cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/lantiq/early_printk.c

Directory: arch/mips/lantiq
/*
 *  This program is free software; you can redistribute it and/or modify it
 *  under the terms of the GNU General Public License version 2 as published
 *  by the Free Software Foundation.
 *
 *  Copyright (C) 2010 John Crispin <john@phrozen.org>
 */

#include <linux/cpu.h>
#include <lantiq_soc.h>


#define ASC_BUF		1024

#define LTQ_ASC_FSTAT	((u32 *)(LTQ_EARLY_ASC + 0x0048))
#ifdef __BIG_ENDIAN

#define LTQ_ASC_TBUF	((u32 *)(LTQ_EARLY_ASC + 0x0020 + 3))
#else

#define LTQ_ASC_TBUF	((u32 *)(LTQ_EARLY_ASC + 0x0020))
#endif

#define TXMASK		0x3F00

#define TXOFFSET	8


void prom_putchar(char c) { unsigned long flags; local_irq_save(flags); do { } while ((ltq_r32(LTQ_ASC_FSTAT) & TXMASK) >> TXOFFSET); if (c == '\n') ltq_w8('\r', LTQ_ASC_TBUF); ltq_w8(c, LTQ_ASC_TBUF); local_irq_restore(flags); }

Contributors

PersonTokensPropCommitsCommitProp
John Crispin5696.55%150.00%
Thomas Langer23.45%150.00%
Total58100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
John Crispin8184.38%266.67%
Thomas Langer1515.62%133.33%
Total96100.00%3100.00%
Directory: arch/mips/lantiq
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.