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

Subversion Repositories or1k

[/] [or1k/] [branches/] [stable_0_2_x/] [or1ksim/] [peripheral/] [16450.h] - Diff between revs 344 and 355

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 344 Rev 355
Line 23... Line 23...
 
 
/* Definitions */
/* Definitions */
#define UART_ADDR_SPACE   (8)           /* UART memory address space size in bytes */
#define UART_ADDR_SPACE   (8)           /* UART memory address space size in bytes */
#define UART_RX_BUF       (8192)      /* VAPI should not send more that this amout of char before requesting something back */
#define UART_RX_BUF       (8192)      /* VAPI should not send more that this amout of char before requesting something back */
#define UART_MAX_FIFO_LEN (16)        /* rx FIFO for uart 16550 */
#define UART_MAX_FIFO_LEN (16)        /* rx FIFO for uart 16550 */
 
#define MAX_SKEW          (1)         /* max. clock skew in subclocks */
 
 
/* Registers */
/* Registers */
 
 
struct dev_16450 {
struct dev_16450 {
        struct {
        struct {
Line 59... Line 60...
                unsigned char thre_int;
                unsigned char thre_int;
                unsigned long txser_clks;
                unsigned long txser_clks;
                unsigned long rxser_clks;
                unsigned long rxser_clks;
        } istat;        /* Internal status */
        } istat;        /* Internal status */
 
 
 
  /* Clocks per char */
  unsigned long char_clks;
  unsigned long char_clks;
 
 
 
  /* VAPI internal registers */
 
  struct {
 
    unsigned long char_clks;
 
    int dll, dlh;
 
    int lcr;
 
    int skew;
 
  } vapi;
 
 
        /* Required by VAPI - circular buffer */
        /* Required by VAPI - circular buffer */
        unsigned long vapi_buf[UART_RX_BUF]; /* Buffer to store incoming characters to,
        unsigned long vapi_buf[UART_RX_BUF]; /* Buffer to store incoming characters to,
                                           since we cannot handle them so fast - we
                                           since we cannot handle them so fast - we
                                           are serial */
                                           are serial */
  int vapi_buf_head_ptr;               /* Where we write to */
  int vapi_buf_head_ptr;               /* Where we write to */

powered by: WebSVN 2.1.0

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