diff options
author | emoore <emoore@FreeBSD.org> | 2002-10-18 21:29:14 +0000 |
---|---|---|
committer | emoore <emoore@FreeBSD.org> | 2002-10-18 21:29:14 +0000 |
commit | b9279f6877f2b6973359a4c2620abacf9fe78d21 (patch) | |
tree | 543c9d9de1e427dae274d7e5fe5e9624906f7c6f /sys/dev/amr/amr_compat.h | |
parent | ab9568ccbf846a052b4e3a0e94b346bfccd80d71 (diff) | |
download | FreeBSD-src-b9279f6877f2b6973359a4c2620abacf9fe78d21.zip FreeBSD-src-b9279f6877f2b6973359a4c2620abacf9fe78d21.tar.gz |
(1) added LSI Logic copyright, and legal line 3 in license, and string
changes for "LSILogic"
(2) enabled non-disk support through CAM interface
(3) HA_INQ (a) enabled tagged queuing (b) disable reset during
driver loading (b) renamed BSDi string to LSI
(4) disabled detecting disk devices during SCSI INQUIRY
(5) changed dcdb single element sglist to send one entire buffer chunk
(6) nsgelem not set in sglist
(7) ap_data_transfer_length not set for dcdb
(8) changed "struct thread" to "d_thread_t" for compatibliity { xxx_open,
xxx_close, xxx_ioctl }
(9) miscellaneous compatiblity fixes
(10) bug fix for 0x0409/0x1000 card
(11) added compiling amr_cam.c in sys/conf/files
(12) added compiling amr_cam.c in sys/modules/amr/Makefile
Reviewed by:ps
MFC after:1 week
1 week
Diffstat (limited to 'sys/dev/amr/amr_compat.h')
-rw-r--r-- | sys/dev/amr/amr_compat.h | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/sys/dev/amr/amr_compat.h b/sys/dev/amr/amr_compat.h index ff517b3..be53867 100644 --- a/sys/dev/amr/amr_compat.h +++ b/sys/dev/amr/amr_compat.h @@ -24,6 +24,13 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * + * 3. The party using or redistributing the source code and binary forms + * agrees to the above disclaimer and the terms and conditions set forth + * herein. + * + * Additional Copyright (c) 2002 by Eric Moore under same license. + * Additional Copyright (c) 2002 LSI Logic Corporation + * * $FreeBSD$ */ /* @@ -33,6 +40,7 @@ #if __FreeBSD_version < 500003 /* old buf style */ # include <sys/buf.h> # include <machine/clock.h> +# define INTR_ENTROPY 0 # define FREEBSD_4 # define bio buf @@ -55,8 +63,24 @@ # define BIO_ERROR B_ERROR # define devstat_end_transaction_bio(x, y) devstat_end_transaction_buf(x, y) # define BIO_IS_READ(x) ((x)->b_flags & B_READ) +# define AMR_BIO_FINISH(x) devstat_end_transaction_bio(&sc->amrd_stats, x);\ + biodone(x) #else # include <sys/bio.h> # define BIO_IS_READ(x) ((x)->bio_cmd == BIO_READ) +# define AMR_BIO_FINISH(x) biofinish(x, &sc->amrd_stats, 0) +#endif + +/************************************************************************ + * Compatibility with older versions of FreeBSD + */ +#if __FreeBSD_version < 440001 +typedef struct proc d_thread_t; +#define M_ZERO 0x0008 /* bzero the allocation */ +#endif + + +#ifndef __packed +#define __packed __attribute__ ((packed)) #endif |