summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptrr/osm.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2008-02-06 01:02:20 +0000
committerscottl <scottl@FreeBSD.org>2008-02-06 01:02:20 +0000
commit0635509b37504b63d5eb26d757055029065f8597 (patch)
tree6cea8f320fab6eabe806a98825572d9b3bea1bb6 /sys/dev/hptrr/osm.h
parent77ea5a24c756bd86d2880b544e3ae2c4fc85de96 (diff)
downloadFreeBSD-src-0635509b37504b63d5eb26d757055029065f8597.zip
FreeBSD-src-0635509b37504b63d5eb26d757055029065f8597.tar.gz
Update the hptrr driver to version 1.2. This adds port multiplier support
for several cards. See the Highpoint website for more information. Again, many thanks to Highpoint for their continued support of FreeBSD.
Diffstat (limited to 'sys/dev/hptrr/osm.h')
-rw-r--r--sys/dev/hptrr/osm.h14
1 files changed, 8 insertions, 6 deletions
diff --git a/sys/dev/hptrr/osm.h b/sys/dev/hptrr/osm.h
index 977cef9..f991eaf 100644
--- a/sys/dev/hptrr/osm.h
+++ b/sys/dev/hptrr/osm.h
@@ -27,20 +27,22 @@
*/
#include <dev/hptrr/hptrr_config.h>
/*
- * $Id: osm.h,v 1.5 2005/08/18 05:17:43 gmm Exp $
+ * $Id: osm.h,v 1.7 2007/12/10 02:13:52 xxj Exp $
* Copyright (C) 2005 HighPoint Technologies, Inc. All rights reserved.
*/
#ifndef _HPT_OSM_H_
#define _HPT_OSM_H_
-#define VERMAGIC_OSM 5
+#define VERMAGIC_OSM 6
#define os_max_queue_comm 32
#define os_max_sg_descriptors 18
+extern int os_max_cache_size;
+
+
#define DMAPOOL_PAGE_SIZE 0x1000 /* PAGE_SIZE (i386/x86_64) */
-#define os_max_cache_size 0x800000 /* 8MB */
#define os_max_cache_pages (os_max_cache_size/DMAPOOL_PAGE_SIZE)
/* data types */
@@ -64,10 +66,10 @@ typedef unsigned long long HPT_U64;
typedef void * HPT_PTR;
typedef HPT_U64 HPT_LBA;
-typedef HPT_U32 HPT_RAW_LBA;
+typedef HPT_U64 HPT_RAW_LBA;
#define MAX_LBA_VALUE 0xffffffffffffffffull
-#define MAX_RAW_LBA_VALUE 0xfffffffful
-#define RAW_LBA(x) ((HPT_U32)(x))
+#define MAX_RAW_LBA_VALUE MAX_LBA_VALUE
+#define RAW_LBA(x) (x)
#define LO_LBA(x) ((HPT_U32)(x))
#define HI_LBA(x) (sizeof(HPT_LBA)>4? (HPT_U32)((x)>>32) : 0)
#define LBA_FORMAT_STR "0x%llX"
OpenPOWER on IntegriCloud