summaryrefslogtreecommitdiffstats
path: root/sys/dev/hptmv/array.h
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2005-09-07 23:33:26 +0000
committerscottl <scottl@FreeBSD.org>2005-09-07 23:33:26 +0000
commit2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f (patch)
tree727ffd4f8e1895bfb48b086e91d000cbf2ee8fb5 /sys/dev/hptmv/array.h
parent13128dd1ca867ac057897fe125ed38b0fc0700a4 (diff)
downloadFreeBSD-src-2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f.zip
FreeBSD-src-2a42f5948924a4fb62bc2d9c7dd05b29a7d8720f.tar.gz
Import new version of the HPTMV driver from Highpoint. The major change
here is the support for amd64, as well as possible support for PAE. Many thanks to Highpoint for continuing to support FreeBSD. Obtained from: Steve Chang @ Highpoint MFC After: 3 days.
Diffstat (limited to 'sys/dev/hptmv/array.h')
-rw-r--r--sys/dev/hptmv/array.h14
1 files changed, 11 insertions, 3 deletions
diff --git a/sys/dev/hptmv/array.h b/sys/dev/hptmv/array.h
index 104eb9b..14d627a 100644
--- a/sys/dev/hptmv/array.h
+++ b/sys/dev/hptmv/array.h
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2003-2004 HighPoint Technologies, Inc.
+ * Copyright (c) 2004-2005 HighPoint Technologies, Inc.
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
@@ -62,6 +62,7 @@ typedef struct _RaidArray
UCHAR reserve1;
ULONG dArStamp; /* array ID. all disks in a array has same ID */
+ ULONG failedStamp; /* stamp for failed member */
USHORT bStripeWitch; /* = (1 << BlockSizeShift) */
USHORT rf_broken: 1;
@@ -83,7 +84,7 @@ typedef struct _RaidArray
USHORT CriticalMembers; /* tell which member is critial */
UCHAR last_read; /* for RAID 1 load banlancing */
- UCHAR pad1;
+ UCHAR PrivateFlag1;
LBA_T RebuildSectors; /* how many sectors is OK (LBA on member disk) */
@@ -151,7 +152,9 @@ typedef struct _ArrayDescript
#define ArrayDescript_3_1_size 512
UCHAR bCheckSum31; /* new check sum */
- UCHAR reserve2[2];
+ UCHAR PrivateFlag1; /* private */
+ UCHAR reserve1;
+
#ifdef __BIG_ENDIAN_BITFIELD
UCHAR df_read_ahead: 1; /* enable read ahead */
UCHAR df_read_ahead_set: 1;
@@ -178,8 +181,13 @@ typedef struct _ArrayDescript
}
levelex[2];
+ ULONG failedStamp; /* array stamp for failed memebr */
+
} ArrayDescript;
+/* report an error if ArrayDescript size exceed 512 */
+typedef char ArrayDescript_size_should_not_exceed_512[512-sizeof(ArrayDescript)];
+
#pragma pack()
/* Signature */
OpenPOWER on IntegriCloud