From bb35713304a039edd9695529bcd10cb036804a99 Mon Sep 17 00:00:00 2001 From: Marco Peereboom Date: Thu, 25 May 2006 03:01:39 +0000 Subject: add LD progress strucutre. Fix ld_details to now use the correct structure. --- sys/dev/ic/mfireg.h | 17 +++++++++++++++-- 1 file changed, 15 insertions(+), 2 deletions(-) (limited to 'sys/dev') diff --git a/sys/dev/ic/mfireg.h b/sys/dev/ic/mfireg.h index fa2a78c9384..e33c2ef78f2 100644 --- a/sys/dev/ic/mfireg.h +++ b/sys/dev/ic/mfireg.h @@ -1,4 +1,4 @@ -/* $OpenBSD: mfireg.h,v 1.20 2006/05/25 00:21:31 marco Exp $ */ +/* $OpenBSD: mfireg.h,v 1.21 2006/05/25 03:01:38 marco Exp $ */ /* * Copyright (c) 2006 Marco Peereboom * @@ -762,10 +762,23 @@ struct mfi_ld_cfg { struct mfi_ld_span mlc_span[MFI_MAX_SPAN]; } __packed; +struct mfi_ld_progress { + uint32_t mlp_in_prog; +#define MFI_LD_PROG_CC 0x01 +#define MFI_LD_PROG_BGI 0x02 +#define MFI_LD_PROG_FGI 0x04 +#define MFI_LD_PROG_RECONSTRUCT 0x08 + struct mfi_progress mlp_cc; + struct mfi_progress mlp_bgi; + struct mfi_progress mlp_fgi; + struct mfi_progress mlp_reconstruct; + struct mfi_progress mlp_res[4]; +} __packed; + struct mfi_ld_details { struct mfi_ld_cfg mld_cfg; u_quad_t mld_size; - struct mfi_progress mld_progress; + struct mfi_ld_progress mld_progress; uint16_t mld_clust_own_id; uint8_t mld_res1; uint8_t mld_res2; -- cgit v1.2.3