Lines Matching refs:serial
20 * - qemud communicates with the emulator program through a single serial
28 * emulator <==serial==> qemud <---> /dev/socket/qemud <-+--> client1
299 #define MAX_EVENTS (MAX_CHANNELS+1) /* each channel + the serial fd */
1029 /** SERIAL CONNECTION STATE
1032 ** used on the serial port connection.
1051 /* The Serial object receives data from the serial port,
1056 * the serial port.
1058 typedef struct Serial {
1059 FDHandler* fdhandler; /* used to monitor serial port fd */
1065 } Serial;
1068 /* a callback called when the serial port's fd is closed */
1070 serial_fd_close( Serial* s )
1072 fatal("unexpected serial port close !!");
1082 /* a callback called when a packet arrives from the serial port's FDHandler.
1090 serial_fd_receive( Serial* s, Packet* p )
1117 D("ignoring %s packet from serial port",
1157 /* send a packet to the serial port.
1162 serial_send( Serial* s, Packet* p )
1166 //D("sending to serial %d bytes from channel %d: '%.*s'", p->len, p->channel, p->len, p->data);
1181 /* initialize serial reader */
1183 serial_init( Serial* s,
1238 Serial serial[1];
1287 * data through the serial port
1430 /* handle control messages coming from the serial port
1491 /* a function called when an incoming packet comes from the serial port */
1514 /* a function called when the serial reader closes */
1518 fatal("unexpected close of serial reader");
1521 /* a function called to send a packet to the serial port */
1526 serial_send( mult->serial, p );
1567 serial_send(mult->serial, p);
1586 serial_send(mult->serial, p);
1622 /* open the serial port */
1631 // disable echo on serial lines
1639 /* initialize the serial reader/writer */
1644 serial_init( m->serial, fd, m->fdhandlers, &recv );
1671 /* extract the name of our serial device from the kernel