summaryrefslogtreecommitdiffstats
path: root/sys/dev/isp/isp_library.h
diff options
context:
space:
mode:
authormjacob <mjacob@FreeBSD.org>2006-02-15 00:31:48 +0000
committermjacob <mjacob@FreeBSD.org>2006-02-15 00:31:48 +0000
commit34ff5883ea82ceba5727de4e4eea065eae43942d (patch)
tree8262b4a7f88909345ab22742f2ba328939a48425 /sys/dev/isp/isp_library.h
parentff95a0e1eb05081ec2daf1fbb9b0f6d1012c1763 (diff)
downloadFreeBSD-src-34ff5883ea82ceba5727de4e4eea065eae43942d.zip
FreeBSD-src-34ff5883ea82ceba5727de4e4eea065eae43942d.tar.gz
a) clean up some declaration stuff (i.e., make more modern with respect
to getting rid u_int for uint and so on). b) Turn back on 64 bit DAC support. Cheeze it a bit in that we have two DMA callback functions- one when we have bus_addr_t > 4 bits in width and the other which should be normal. Even Cheezier in that we turn off setting up DMA maps to be BUS_SPACE_MAXADDR if we're in ISP_TARGET_MODE. More work on this in a week or so. c) Tested under amd64 and 1MB DFLTPHYS, sparc64, i386 (PAE, but insufficient memory to really test > 4GB). LINT check under amd64. MFC after: 1 month
Diffstat (limited to 'sys/dev/isp/isp_library.h')
-rw-r--r--sys/dev/isp/isp_library.h28
1 files changed, 17 insertions, 11 deletions
diff --git a/sys/dev/isp/isp_library.h b/sys/dev/isp/isp_library.h
index f5a3f8c..4faa320 100644
--- a/sys/dev/isp/isp_library.h
+++ b/sys/dev/isp/isp_library.h
@@ -30,13 +30,13 @@
#ifndef _ISP_LIBRARY_H
#define _ISP_LIBRARY_H
-extern int isp_save_xs(ispsoftc_t *, XS_T *, u_int16_t *);
-extern XS_T *isp_find_xs(ispsoftc_t *, u_int16_t);
-extern u_int16_t isp_find_handle(ispsoftc_t *, XS_T *);
-extern int isp_handle_index(u_int16_t);
-extern u_int16_t isp_index_handle(int);
-extern void isp_destroy_handle(ispsoftc_t *, u_int16_t);
-extern int isp_getrqentry(ispsoftc_t *, u_int16_t *, u_int16_t *, void **);
+extern int isp_save_xs(ispsoftc_t *, XS_T *, uint16_t *);
+extern XS_T *isp_find_xs(ispsoftc_t *, uint16_t);
+extern uint16_t isp_find_handle(ispsoftc_t *, XS_T *);
+extern int isp_handle_index(uint16_t);
+extern uint16_t isp_index_handle(int);
+extern void isp_destroy_handle(ispsoftc_t *, uint16_t);
+extern int isp_getrqentry(ispsoftc_t *, uint16_t *, uint16_t *, void **);
extern void isp_print_qentry (ispsoftc_t *, char *, int, void *);
extern void isp_print_bytes(ispsoftc_t *, char *, int, void *);
extern int isp_fc_runstate(ispsoftc_t *, int);
@@ -95,12 +95,18 @@ isp_get_ga_nxt_response(ispsoftc_t *, sns_ga_nxt_rsp_t *,
sns_ga_nxt_rsp_t *);
#ifdef ISP_TARGET_MODE
+#if defined(__NetBSD__) || defined(__OpenBSD__)
+#include <dev/ic/isp_target.h>
+#elif defined(__FreeBSD__)
#include <dev/isp/isp_target.h>
+#else
+#include "isp_target.h"
+#endif
-extern int isp_save_xs_tgt(ispsoftc_t *, void *, u_int16_t *);
-extern void *isp_find_xs_tgt(ispsoftc_t *, u_int16_t);
-extern u_int16_t isp_find_tgt_handle(ispsoftc_t *, void *);
-extern void isp_destroy_tgt_handle(ispsoftc_t *, u_int16_t);
+extern int isp_save_xs_tgt(ispsoftc_t *, void *, uint16_t *);
+extern void *isp_find_xs_tgt(ispsoftc_t *, uint16_t);
+extern uint16_t isp_find_tgt_handle(ispsoftc_t *, void *);
+extern void isp_destroy_tgt_handle(ispsoftc_t *, uint16_t);
extern void
isp_put_atio(ispsoftc_t *, at_entry_t *, at_entry_t *);
OpenPOWER on IntegriCloud