Ticket #22867: patch-serial.h.diff
File patch-serial.h.diff, 1012 bytes (added by ranauei@…, 15 years ago) |
---|
-
serial.h
old new 17 17 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA 18 18 */ 19 19 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 $ */ 21 21 22 22 /* This is the API for the generic serial interface. The implementations are 23 23 actually provided by the target dependant files: … … 52 52 int (*recv)(union filedescriptor *fd, unsigned char * buf, size_t buflen); 53 53 int (*drain)(union filedescriptor *fd, int display); 54 54 55 int (*set_dtr_rts)(union filedescriptor *fd, int is_on); 56 55 57 int flags; 56 58 #define SERDEV_FL_NONE 0x0000 /* no flags */ 57 59 #define SERDEV_FL_CANSETSPEED 0x0001 /* device can change speed */ … … 69 71 #define serial_send (serdev->send) 70 72 #define serial_recv (serdev->recv) 71 73 #define serial_drain (serdev->drain) 74 #define serial_set_dtr_rts (serdev->set_dtr_rts) 72 75 73 76 #endif /* serial_h */