Bochs/bochs/iodev/serial_raw.h
Bryce Denney 1ae66aeeb6 - added empty stubs for serial_raw. To try it out, define USE_RAW_SERIAL
in config.h and add serial_raw.o to the makefile in the iodev directory.
2001-06-16 19:27:41 +00:00

20 lines
439 B
C++

#include <linux/serial.h>
#define P_EVEN 0
#define P_ODD 1
#define C_BREAK 201
class serial_raw : public logfunctions {
public:
serial_raw (char *ttypath, int signal);
void set_baudrate (int rate);
void set_data_bits (int );
void set_stop_bits (int);
void set_parity_mode (int, int);
void transmit (int byte);
void send_hangup ();
int ready_transmit ();
int ready_receive ();
int receive ();
};