diff options
author | vkashyap <vkashyap@FreeBSD.org> | 2004-03-25 19:30:35 +0000 |
---|---|---|
committer | vkashyap <vkashyap@FreeBSD.org> | 2004-03-25 19:30:35 +0000 |
commit | 20e39e00cb881a3c050df018f0c30d889e884482 (patch) | |
tree | f61551683f11336020b11cdef8dddb2390bc2dc1 /sys/dev/twe/twevar.h | |
parent | efe93d08ec417090d9c8d14bdcbd3c1474c684cd (diff) | |
download | FreeBSD-src-20e39e00cb881a3c050df018f0c30d889e884482.zip FreeBSD-src-20e39e00cb881a3c050df018f0c30d889e884482.tar.gz |
1. Better handle a return value of EINPROGRESS from bus_dmamap_load.
2. Check for bad return value from twe_map_request in places where there
was no checking.
Reviewed by: ps
Diffstat (limited to 'sys/dev/twe/twevar.h')
-rw-r--r-- | sys/dev/twe/twevar.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/twe/twevar.h b/sys/dev/twe/twevar.h index e39c88e..9b8aa7a 100644 --- a/sys/dev/twe/twevar.h +++ b/sys/dev/twe/twevar.h @@ -31,7 +31,7 @@ * The scheme for the driver version is: * <major change>.<external release>.<3ware internal release>.<development release> */ -#define TWE_DRIVER_VERSION_STRING "1.50.00.000" +#define TWE_DRIVER_VERSION_STRING "1.50.01.000" #ifdef TWE_DEBUG #define debug(level, fmt, args...) \ @@ -89,6 +89,7 @@ struct twe_request #define TWE_CMD_SETUP 0 /* being assembled */ #define TWE_CMD_BUSY 1 /* submitted to controller */ #define TWE_CMD_COMPLETE 2 /* completed by controller (maybe with error) */ +#define TWE_CMD_ERROR 3 /* encountered error, even before submission to controller */ int tr_flags; #define TWE_CMD_DATAIN (1<<0) #define TWE_CMD_DATAOUT (1<<1) @@ -96,6 +97,7 @@ struct twe_request #define TWE_CMD_SLEEPER (1<<3) /* owner is sleeping on this command */ #define TWE_CMD_IMMEDIATE (1<<4) /* immediate request */ #define TWE_CMD_MAPPED (1<<5) +#define TWE_CMD_IN_PROGRESS (1<<6) /* bus_dmamap_load returned EINPROGRESS */ void (* tr_complete)(struct twe_request *tr); /* completion handler */ void *tr_private; /* submitter-private data or wait channel */ |