#ifndef serial_rdc_ioctl_H
#define serial_rdc_ioctl_H

// see <asm/ioctls.h>, it is a file for tty.
#define IOCTL_PortInfo          0x5470
#define IOCTL_Goto422Mode       0x5471
#define IOCTL_Goto485Mode       0x5472
#define IOCTL_ConfigA9610       0x5473

struct ioctl_param_PortInfo {
    unsigned int        BusNumber;
    unsigned int        DeviceNumber;
    unsigned int        FunctionNumber;
    unsigned int        PortType;
    unsigned int        PortID;
    unsigned int        ClockRate;
    unsigned int        ClockDIV;
    unsigned int        DMAEnable;
};

struct ioctl_param_ConfigA9610 {
    unsigned int        UARTSpeedMode;
    unsigned int        DMAEnable;
};



#endif

