From: cuz Date: Mon, 28 Apr 2003 06:42:50 +0000 (+0000) Subject: Added ser_ioctl X-Git-Tag: V2.12.0~1614 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4a62730565b24a3d2a5d57a47c1324664d1f8c1;p=cc65 Added ser_ioctl git-svn-id: svn://svn.cc65.org/cc65/trunk@2096 b7a2c559-68d2-44c3-8de9-860c34a00d81 --- diff --git a/include/serial.h b/include/serial.h index 8ccb5ac38..4c649eb69 100644 --- a/include/serial.h +++ b/include/serial.h @@ -103,6 +103,7 @@ #define SER_ERR_NO_DATA 0x06 /* Nothing to read */ #define SER_ERR_OVERFLOW 0x07 /* No room in send buffer */ #define SER_ERR_INIT_FAILED 0x08 /* Initialization failed */ +#define SER_ERR_INV_IOCTL 0x09 /* IOCTL not supported */ /* Struct containing parameters for the serial port */ struct ser_params { @@ -157,6 +158,9 @@ unsigned char __fastcall__ ser_unpause (void); unsigned char __fastcall__ ser_status (unsigned char* status); /* Return the serial port status. */ +unsigned char __fastcall__ ser_ioctl (unsigned char code, void* data); +/* Driver specific entry. */ + /* End of serial.h */