Quellcodebibliothek Statistik Leitseite products/sources/formale Sprachen/C/Linux/arch/mips/sgi-ip27/   (Open Source Betriebssystem Version 6.17.9©)  Datei vom 24.10.2025 mit Größe 933 B image not shown  

Quelle  ip27-console.c   Sprache: 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/setup.h>
#include <asm/sn/addrs.h>
#include <asm/sn/agent.h>
#include <asm/sn/klconfig.h>
#include <asm/sn/ioc3.h>

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

#include "ip27-common.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;
}

void prom_putchar(char c)
{
 struct ioc3_uartregs *uart = console_uart();

 while ((readb(&uart->iu_lsr) & 0x20) == 0)
  ;
 writeb(c, &uart->iu_thr);
}

Messung V0.5
C=94 H=91 G=92

¤ Dauer der Verarbeitung: 0.3 Sekunden  ¤

*© Formatika GbR, Deutschland






Wurzel

Suchen

Beweissystem der NASA

Beweissystem Isabelle

NIST Cobol Testsuite

Cephes Mathematical Library

Wiener Entwicklungsmethode

Haftungshinweis

Die Informationen auf dieser Webseite wurden nach bestem Wissen sorgfältig zusammengestellt. Es wird jedoch weder Vollständigkeit, noch Richtigkeit, noch Qualität der bereit gestellten Informationen zugesichert.

Bemerkung:

Die farbliche Syntaxdarstellung und die Messung sind noch experimentell.