Bochs/bochs/iodev/serial_raw.h
Bryce Denney daf2a9fb55 - add RCS Id to header of every file. This makes it easier to know what's
going on when someone sends in a modified file.
2001-10-03 13:10:38 +00:00

24 lines
651 B
C++

/////////////////////////////////////////////////////////////////////////
// $Id: serial_raw.h,v 1.2 2001-10-03 13:10:38 bdenney Exp $
/////////////////////////////////////////////////////////////////////////
//
#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 ();
};