OpenCores
URL https://opencores.org/ocsvn/openrisc_me/openrisc_me/trunk

Subversion Repositories openrisc_me

[/] [openrisc/] [trunk/] [rtos/] [rtems/] [c/] [src/] [lib/] [libbsp/] [or1k/] [bender/] [console/] [console.h] - Rev 173

Compare with Previous | Blame | View Log

/* console.h -- console header file for the Bender board using the
 *              Or1k architecture.
 *	
 *  Copyright (C) 2001 Chris Ziomkowski, chris@asics.ws
 *
 *  This file is distributed as part of the RTEMS package from
 *  OAR Corporation, and follows the licensing and distribution
 *  terms as stated for RTEMS. 
 *
 *  COPYRIGHT (c) 1989-1999.
 *  On-Line Applications Research Corporation (OAR).
 *  Copyright assigned to U.S. Government, 1994.
 *
 *  The license and distribution terms for this file may be
 *  found in the file LICENSE in this distribution or at
 *  http://www.OARcorp.com/rtems/license.html.
 */
 
#ifndef _CONSOLE_H
#define _CONSOLE_H
 
typedef enum {
  TERM_LOCAL_ECHO,
  TERM_BIT_RATE,
} ConsoleIOCTLCommand;
 
typedef struct {
  ConsoleIOCTLCommand command;
  void*                data;
} ConsoleIOCTLRequest;
 
typedef struct {
  unsigned char RBR;
  unsigned char IER;
  unsigned char IIR;
  unsigned char LCR;
  unsigned char MCR;
  unsigned char LSR;
  unsigned char MSR;
  unsigned char SCR;
} UART_16450_Read;
 
typedef struct {
  unsigned char THR;
  unsigned char IER;
  unsigned char IIR;
  unsigned char LCR;
  unsigned char MCR;
  unsigned char LSR;
  unsigned char MSR;
  unsigned char SCR;
} UART_16450_Write;
 
typedef struct {
  unsigned char DLM;
  unsigned char DLL;
  unsigned char IIR;
  unsigned char LCR;
  unsigned char MCR;
  unsigned char LSR;
  unsigned char MSR;
  unsigned char SCR;
} UART_16450_Latch;
 
typedef union {
  UART_16450_Read   read;
  UART_16450_Write  write;
  UART_16450_Latch  latch;
} UART_16450;
 
#endif
 

Compare with Previous | Blame | View Log

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.