Bochs/bochs/iodev/serial_raw.h

34 lines
773 B
C
Raw Normal View History

/////////////////////////////////////////////////////////////////////////
// $Id: serial_raw.h,v 1.5 2004-02-28 13:10:57 vruppert Exp $
/////////////////////////////////////////////////////////////////////////
//
#if USE_RAW_SERIAL
#ifdef __linux__
#include <linux/serial.h>
#endif
#define P_NONE 0
#define P_ODD 1
#define P_EVEN 2
#define P_HIGH 3
#define P_LOW 4
#define C_BREAK 201
class serial_raw : public logfunctions {
public:
serial_raw (char *devname);
~serial_raw (void);
void set_baudrate (int rate);
void set_data_bits (int );
void set_stop_bits (int);
void set_parity_mode (int mode);
void transmit (int byte);
void send_hangup ();
int ready_transmit ();
int ready_receive ();
int receive ();
};
#endif