summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2006-02-04 08:20:23 +0000
committerscottl <scottl@FreeBSD.org>2006-02-04 08:20:23 +0000
commit9f216f68227ee1018bb1532b8ead15db564f9b0b (patch)
tree49a9a2af4c7f43ce06cb3839331430a5118753be
parent9fc122768df39f23fbfd9539296c963ed3baf4d3 (diff)
downloadFreeBSD-src-9f216f68227ee1018bb1532b8ead15db564f9b0b.zip
FreeBSD-src-9f216f68227ee1018bb1532b8ead15db564f9b0b.tar.gz
Now that the U32 type is a really 32-bits wide, eliminate a bunch of other
bad assumptions and long values.
-rw-r--r--sys/dev/asr/asr.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c
index 12b50b5..2b761af 100644
--- a/sys/dev/asr/asr.c
+++ b/sys/dev/asr/asr.c
@@ -506,7 +506,7 @@ ASR_fillMessage(void *Message, u_int16_t size)
return (Message_Ptr);
} /* ASR_fillMessage */
-#define EMPTY_QUEUE (-1L)
+#define EMPTY_QUEUE (0xffffffff)
static __inline U32
ASR_getMessage(Asr_softc_t *sc)
@@ -580,8 +580,8 @@ ASR_resetIOP(Asr_softc_t *sc)
/*
* Send the Message out
*/
- if ((Old = ASR_initiateCp(sc,
- (PI2O_MESSAGE_FRAME)Message_Ptr)) != -1L) {
+ if ((Old = ASR_initiateCp(sc, (PI2O_MESSAGE_FRAME)Message_Ptr)) !=
+ 0xffffffff) {
/*
* Wait for a response (Poll), timeouts are dangerous if
* the card is truly responsive. We assume response in 2s.
@@ -631,8 +631,8 @@ ASR_getStatus(Asr_softc_t *sc, PI2O_EXEC_STATUS_GET_REPLY buffer)
/*
* Send the Message out
*/
- if ((Old = ASR_initiateCp(sc,
- (PI2O_MESSAGE_FRAME)Message_Ptr)) != -1L) {
+ if ((Old = ASR_initiateCp(sc, (PI2O_MESSAGE_FRAME)Message_Ptr)) !=
+ 0xffffffff) {
/*
* Wait for a response (Poll), timeouts are dangerous if
* the card is truly responsive. We assume response in 50ms.
@@ -1896,8 +1896,8 @@ ASR_initOutBound(Asr_softc_t *sc)
/*
* Send the Message out
*/
- if ((Old = ASR_initiateCp(sc,
- (PI2O_MESSAGE_FRAME)Message_Ptr)) != -1L) {
+ if ((Old = ASR_initiateCp(sc, (PI2O_MESSAGE_FRAME)Message_Ptr)) !=
+ 0xffffffff) {
u_long size, addr;
/*
OpenPOWER on IntegriCloud