diff options
| author | Matt Jacob <mjacob@FreeBSD.org> | 2001-03-02 06:28:55 +0000 |
|---|---|---|
| committer | Matt Jacob <mjacob@FreeBSD.org> | 2001-03-02 06:28:55 +0000 |
| commit | 5f5aafe1fcdeb8cd06e03569f45f947d3a75b040 (patch) | |
| tree | ec9c1d41dbb6dd6b09c3acaa0c06b674028a2297 /sys/dev/isp/isp_inline.h | |
| parent | 003fb9ec2fc013c77e9ba2372d15f3c03f978d39 (diff) | |
Notes
Diffstat (limited to 'sys/dev/isp/isp_inline.h')
| -rw-r--r-- | sys/dev/isp/isp_inline.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/sys/dev/isp/isp_inline.h b/sys/dev/isp/isp_inline.h index cd7bd3d07bc3..4417d3665e44 100644 --- a/sys/dev/isp/isp_inline.h +++ b/sys/dev/isp/isp_inline.h @@ -2,7 +2,7 @@ /* * Qlogic Host Adapter Inline Functions * - * Copyright (c) 1999, 2000 by Matthew Jacob + * Copyright (c) 1999, 2000, 2001 by Matthew Jacob * Feral Software * All rights reserved. * mjacob@feral.com @@ -40,19 +40,19 @@ */ static INLINE int -isp_save_xs __P((struct ispsoftc *, XS_T *, u_int32_t *)); +isp_save_xs __P((struct ispsoftc *, XS_T *, u_int16_t *)); static INLINE XS_T * -isp_find_xs __P((struct ispsoftc *, u_int32_t)); +isp_find_xs __P((struct ispsoftc *, u_int16_t)); -static INLINE u_int32_t +static INLINE u_int16_t isp_find_handle __P((struct ispsoftc *, XS_T *)); static INLINE int -isp_handle_index __P((u_int32_t)); +isp_handle_index __P((u_int16_t)); static INLINE void -isp_destroy_handle __P((struct ispsoftc *, u_int32_t)); +isp_destroy_handle __P((struct ispsoftc *, u_int16_t)); static INLINE void isp_remove_handle __P((struct ispsoftc *, XS_T *)); @@ -61,7 +61,7 @@ static INLINE int isp_save_xs(isp, xs, handlep) struct ispsoftc *isp; XS_T *xs; - u_int32_t *handlep; + u_int16_t *handlep; { int i, j; @@ -87,16 +87,16 @@ isp_save_xs(isp, xs, handlep) static INLINE XS_T * isp_find_xs(isp, handle) struct ispsoftc *isp; - u_int32_t handle; + u_int16_t handle; { - if (handle < 1 || handle > (u_int32_t) isp->isp_maxcmds) { + if (handle < 1 || handle > (u_int16_t) isp->isp_maxcmds) { return (NULL); } else { return (isp->isp_xflist[handle - 1]); } } -static INLINE u_int32_t +static INLINE u_int16_t isp_find_handle(isp, xs) struct ispsoftc *isp; XS_T *xs; @@ -105,7 +105,7 @@ isp_find_handle(isp, xs) if (xs != NULL) { for (i = 0; i < isp->isp_maxcmds; i++) { if (isp->isp_xflist[i] == xs) { - return ((u_int32_t) i+1); + return ((u_int16_t) i+1); } } } @@ -114,7 +114,7 @@ isp_find_handle(isp, xs) static INLINE int isp_handle_index(handle) - u_int32_t handle; + u_int16_t handle; { return (handle-1); } @@ -122,9 +122,9 @@ isp_handle_index(handle) static INLINE void isp_destroy_handle(isp, handle) struct ispsoftc *isp; - u_int32_t handle; + u_int16_t handle; { - if (handle > 0 && handle <= (u_int32_t) isp->isp_maxcmds) { + if (handle > 0 && handle <= (u_int16_t) isp->isp_maxcmds) { isp->isp_xflist[isp_handle_index(handle)] = NULL; } } |
