mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-12-03 14:48:57 +00:00
Now that the U32 type is a really 32-bits wide, eliminate a bunch of other
bad assumptions and long values.
This commit is contained in:
parent
d68da9fe4f
commit
b32f2b9a08
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=155284
@ -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;
|
||||
|
||||
/*
|
||||
|
Loading…
Reference in New Issue
Block a user