summaryrefslogblamecommitdiffstats
path: root/c/src/lib/libcpu/powerpc/mpc55xx/include/esci.h
blob: 35452967869d0dcd75c65339ed4633c992bf108f (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16















                                                                             

                                                          
                                        

   
   
                                                                         
  





                                     
                  

                               



                        

                             

                                       
                                      





                                       



                                                                                         



                        
                                          
/**
 * @file
 *
 * @ingroup mpc55xx_esci
 *
 * @brief Header file for the Enhanced Serial Communication Interface (eSCI).
 */

/*
 * Copyright (c) 2008
 * Embedded Brains GmbH
 * Obere Lagerstr. 30
 * D-82178 Puchheim
 * Germany
 * rtems@embedded-brains.de
 *
 * The license and distribution terms for this file may be
 * found in the file LICENSE in this distribution or at
 * http://www.rtems.org/license/LICENSE.
 */

/**
 * @defgroup mpc55xx_esci Enhanced Serial Communication Interface (eSCI).
 *
 * @ingroup mpc55xx
 */

#ifndef LIBCPU_POWERPC_MPC55XX_ESCI_H
#define LIBCPU_POWERPC_MPC55XX_ESCI_H

#include <rtems.h>
#include <rtems/termiostypes.h>

#ifdef __cplusplus
extern "C" {
#endif /* __cplusplus */

#define MPC55XX_ESCI_NUMBER 2

typedef struct {
	volatile struct ESCI_tag *regs;
	struct rtems_termios_tty *tty;
	const char *device_name;
	rtems_vector_number irq_number;
	int transmit_nest_level;
	bool transmit_in_progress;
	bool use_termios;
	bool use_interrupts;
} mpc55xx_esci_driver_entry;

extern mpc55xx_esci_driver_entry mpc55xx_esci_driver_table [ /* MPC55XX_ESCI_NUMBER */ ];

#ifdef __cplusplus
}
#endif /* __cplusplus */

#endif /* LIBCPU_POWERPC_MPC55XX_ESCI_H */