RTEMS  5.0.0
Data Structures | Macros | Functions
exar17d15x.c File Reference

Driver for Exar XR17D15x Multiport UARTs. More...

#include <bsp.h>
#include <termios.h>
#include <stdio.h>
#include <stdlib.h>
#include <rtems/termiostypes.h>
#include <libchip/serial.h>
#include <libchip/ns16550.h>
#include <rtems/bspIo.h>
#include <rtems/pci.h>
#include <bsp/exar17d15x.h>
#include "../../shared/dev/serial/legacy-console.h"

Data Structures

struct  exar_parts_t
 
struct  exar17d15x_conf_t
 

Macros

#define MAX_BOARDS   4
 
#define EXAR_CLOCK_RATE   (921600*16)
 
#define PCI_VENDOR_ID_EXAR   0x13A8
 
#define PCI_VENDOR_ID_EXAR_XR17D158   0x0158
 
#define PCI_VENDOR_ID_EXAR_XR17D154   0x0154
 
#define PCI_VENDOR_ID_EXAR_XR17D152   0x0152
 

Functions

rtems_device_driver exar17d15x_initialize (rtems_device_major_number major, rtems_device_minor_number minor_arg, void *arg)
 Exar 17D15x Initialization Entry Point. More...
 

Detailed Description

Driver for Exar XR17D15x Multiport UARTs.

This driver supports 2, 4 or 8 port Exar parts which are NS16550 compatible.

Function Documentation

◆ exar17d15x_initialize()

rtems_device_driver exar17d15x_initialize ( rtems_device_major_number  major,
rtems_device_minor_number  minor,
void *  arg 
)

Exar 17D15x Initialization Entry Point.

This method initializes the Exar XR17D15x device driver.

Parameters
[in]majoris the device driver major number
[in]minoris the device driver minor number
[in]argis the parameters to this call
Returns
This method returns RTEMS_SUCCESSFUL when the device driver is successfully initialized.