From 367ab2d5313fc9d5d07a9c7c654772e47a5c3339 Mon Sep 17 00:00:00 2001 From: Christian Groessler Date: Fri, 6 Dec 2013 20:10:27 +0100 Subject: [PATCH] add SER_ERR_NOT_OPEN status code --- asminc/ser-error.inc | 1 + include/serial.h | 1 + 2 files changed, 2 insertions(+) diff --git a/asminc/ser-error.inc b/asminc/ser-error.inc index f1592876b..ff4e2b448 100644 --- a/asminc/ser-error.inc +++ b/asminc/ser-error.inc @@ -48,6 +48,7 @@ SER_ERR_INIT_FAILED ; Initialization failed SER_ERR_INV_IOCTL ; IOCTL not supported SER_ERR_INSTALLED ; A driver is already installed + SER_ERR_NOT_OPEN ; Driver not open SER_ERR_COUNT ; Special: Number of error codes .endenum diff --git a/include/serial.h b/include/serial.h index f88ab114e..a3099893b 100644 --- a/include/serial.h +++ b/include/serial.h @@ -111,6 +111,7 @@ #define SER_ERR_INIT_FAILED 0x08 /* Initialization failed */ #define SER_ERR_INV_IOCTL 0x09 /* IOCTL not supported */ #define SER_ERR_INSTALLED 0x0A /* A driver is already installed */ +#define SER_ERR_NOT_OPEN 0x0B /* Driver is not open */ /* Struct containing parameters for the serial port */ struct ser_params { -- 2.39.5