cregit-Linux how code gets into the kernel

Release 4.14 arch/mips/sgi-ip27/ip27-console.c

/*
 * This file is subject to the terms and conditions of the GNU General Public
 * License.  See the file "COPYING" in the main directory of this archive
 * for more details.
 *
 * Copyright (C) 2001, 2002 Ralf Baechle
 */

#include <asm/page.h>
#include <asm/sn/addrs.h>
#include <asm/sn/sn0/hub.h>
#include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h>
#include <asm/sn/sn_private.h>

#include <linux/serial.h>
#include <linux/serial_core.h>


#define IOC3_CLK	(22000000 / 3)

#define IOC3_FLAGS	(0)


static inline struct ioc3_uartregs *console_uart(void) { struct ioc3 *ioc3; nasid_t nasid; nasid = (master_nasid == INVALID_NASID) ? get_nasid() : master_nasid; ioc3 = (struct ioc3 *)KL_CONFIG_CH_CONS_INFO(nasid)->memory_base; return &ioc3->sregs.uarta; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2750.00%133.33%
Ralf Bächle2750.00%266.67%
Total54100.00%3100.00%


void prom_putchar(char c) { struct ioc3_uartregs *uart = console_uart(); while ((uart->iu_lsr & 0x20) == 0); uart->iu_thr = c; }

Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)2057.14%150.00%
Ralf Bächle1542.86%150.00%
Total35100.00%2100.00%


Overall Contributors

PersonTokensPropCommitsCommitProp
Linus Torvalds (pre-git)6250.82%125.00%
Ralf Bächle5040.98%250.00%
Andrew Morton108.20%125.00%
Total122100.00%4100.00%
Information contained on this website is for historical information purposes only and does not indicate or represent copyright ownership.
Created with cregit.