summaryrefslogtreecommitdiff
path: root/sys/dev/isp
diff options
context:
space:
mode:
authorMatt Jacob <mjacob@FreeBSD.org>2001-03-04 22:14:39 +0000
committerMatt Jacob <mjacob@FreeBSD.org>2001-03-04 22:14:39 +0000
commitb711ef9a909fe7d1acbd03ccf6d2a844b8303f5f (patch)
tree1851b2f695192da5df10948274afedf965a6a4aa /sys/dev/isp
parent4cee15893a2d951219df7ed062c0e9bd237330e6 (diff)
Notes
Diffstat (limited to 'sys/dev/isp')
-rw-r--r--sys/dev/isp/isp_inline.h28
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;
}
}