Ticket #22867: patch-serial.h.diff

File patch-serial.h.diff, 1012 bytes (added by ranauei@…, 15 years ago)
  • serial.h

    old new  
    1717 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
    1818 */
    1919
    20 /* $Id: serial.h 768 2008-03-14 13:00:08Z joerg_wunsch $ */
     20/* $Id: serial.h 845 2009-10-10 01:41:40Z mludvig $ */
    2121
    2222/* This is the API for the generic serial interface. The implementations are
    2323   actually provided by the target dependant files:
     
    5252  int (*recv)(union filedescriptor *fd, unsigned char * buf, size_t buflen);
    5353  int (*drain)(union filedescriptor *fd, int display);
    5454
     55  int (*set_dtr_rts)(union filedescriptor *fd, int is_on);
     56
    5557  int flags;
    5658#define SERDEV_FL_NONE         0x0000 /* no flags */
    5759#define SERDEV_FL_CANSETSPEED  0x0001 /* device can change speed */
     
    6971#define serial_send (serdev->send)
    7072#define serial_recv (serdev->recv)
    7173#define serial_drain (serdev->drain)
     74#define serial_set_dtr_rts (serdev->set_dtr_rts)
    7275
    7376#endif /* serial_h */