diff options
| author | Scott Long <scottl@FreeBSD.org> | 2006-02-04 08:20:23 +0000 |
|---|---|---|
| committer | Scott Long <scottl@FreeBSD.org> | 2006-02-04 08:20:23 +0000 |
| commit | b32f2b9a0847d87f27f28e2d4410b6f03b8d4485 (patch) | |
| tree | 49a9a2af4c7f43ce06cb3839331430a5118753be /sys/dev/asr | |
| parent | d68da9fe4f54dbf345e5a6f5df5b6b0e9336f21b (diff) | |
Notes
Diffstat (limited to 'sys/dev/asr')
| -rw-r--r-- | sys/dev/asr/asr.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index 12b50b5db866..2b761af8d4d4 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; /* |
