Ignore:
Timestamp:
2010-07-25T16:52:18Z (14 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b8b4efa
Parents:
ec08286
Message:

Use I/O structure to access S3C24xx UART registers.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • kernel/genarch/include/drivers/s3c24xx_uart/s3c24xx_uart.h

    rec08286 r277cf60  
    4242#include <typedefs.h>
    4343
     44/** S3C24xx UART I/O */
    4445typedef struct {
    45         ioport8_t *base;
     46        uint32_t ulcon;
     47        uint32_t ucon;
     48        uint32_t ufcon;
     49        uint32_t umcon;
     50
     51        uint32_t utrstat;
     52        uint32_t uerstat;
     53        uint32_t ufstat;
     54        uint32_t umstat;
     55
     56        uint32_t utxh;
     57        uint32_t urxh;
     58
     59        uint32_t ubrdiv;
     60} s3c24xx_uart_io_t;
     61
     62/** S3C24xx UART instance */
     63typedef struct {
     64        s3c24xx_uart_io_t *io;
    4665        indev_t *indev;
    4766        irq_t irq;
    48 } s3c24xx_uart_instance_t;
     67} s3c24xx_uart_t;
    4968
    50 extern outdev_t *s3c24xx_uart_init(ioport8_t *, inr_t inr);
    51 extern void s3c24xx_uart_input_wire(s3c24xx_uart_instance_t *,
     69extern outdev_t *s3c24xx_uart_init(s3c24xx_uart_io_t *, inr_t inr);
     70extern void s3c24xx_uart_input_wire(s3c24xx_uart_t *,
    5271    indev_t *);
    5372
Note: See TracChangeset for help on using the changeset viewer.