Ignore:
Timestamp:
Nov 3, 2014, 10:53:00 AM (10 years ago)
Author:
alain
Message:

Introducing dynamic allocation of peripheral channel(TTY, NIC, TIM, CMA)
Removint the ICU driver : ICU component not supported anymore.
Removing the FBF driver.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • soft/giet_vm/giet_drivers/tty_driver.h

    r350 r437  
    55// Copyright (c) UPMC-LIP6
    66///////////////////////////////////////////////////////////////////////////////////
     7// The tty_driver.c and tty_drivers.h files are part ot the GIET-VM kernel.
     8// This driver supports the SocLib vci_multi_tty component.
     9//
     10// The total number of TTY terminals must be defined by the configuration
     11// parameter NB_TTY_CHANNELS in the hard_config.h file.
     12//
     13// The "system" terminal is TTY[0].
     14// The "user" TTYs are allocated to applications requesting it.
     15//
     16// The SEG_TTY_BASE address must be defined in the hard_config.h file.
     17//
     18// All physical accesses to device registers are done by the two
     19// _tty_get_register(), _tty_set_register() low-level functions,
     20// that are handling virtual / physical addressing.
     21///////////////////////////////////////////////////////////////////////////////////
    722
    823#ifndef _GIET_TTY_DRIVERS_H_
    924#define _GIET_TTY_DRIVERS_H_
    1025
    11 #include "utils.h"
     26#include <utils.h>
    1227
    1328///////////////////////////////////////////////////////////////////////////////////
    14 // TTY (vci_multi_tty) registers offsets
     29//                     registers offsets
    1530///////////////////////////////////////////////////////////////////////////////////
    1631
     
    2641
    2742///////////////////////////////////////////////////////////////////////////////////
    28 // TTY variables
     43//                   external variables
    2944///////////////////////////////////////////////////////////////////////////////////
    3045
     
    3651
    3752//////////////////////////////////////////////////////////////////////////////////
    38 // TTY access functions
     53//                   access functions
    3954//////////////////////////////////////////////////////////////////////////////////
    4055
    41 extern unsigned int _tty_write( const char*  buffer,
    42                                 unsigned int length,     
    43                                 unsigned int channel ); 
     56extern unsigned int _tty_get_register( unsigned int channel,
     57                                       unsigned int index );
    4458
    45 extern unsigned int _tty_read(  char*        buffer,
    46                                 unsigned int length, 
    47                                 unsigned int channel );
     59extern void _tty_set_register( unsigned int channel,
     60                               unsigned int index,
     61                               unsigned int value );
    4862
    49 extern void _tty_get_lock( unsigned int  channel,
    50                            unsigned int* save_sr_ptr );
    51 
    52 extern void _tty_release_lock( unsigned int  channel,
    53                                unsigned int* save_sr_ptr );
     63///////////////////////////////////////////////////////////////////////////////////
     64//                 Interrupt Service Routine
     65///////////////////////////////////////////////////////////////////////////////////
    5466
    5567extern void _tty_rx_isr( unsigned int irq_type,
     
    6173                         unsigned int channel );
    6274
    63 ///////////////////////////////////////////////////////////////////////////////////
    64 // low-level access functions
    65 ///////////////////////////////////////////////////////////////////////////////////
    66 
    67 extern unsigned int _tty_get_register( unsigned int channel,
    68                                        unsigned int index );
    69 
    70 extern void _tty_set_register( unsigned int channel,
    71                                unsigned int index,
    72                                unsigned int value );
    7375
    7476#endif
Note: See TracChangeset for help on using the changeset viewer.