summaryrefslogtreecommitdiffstats
path: root/sys/dev/mlx/mlxreg.h
diff options
context:
space:
mode:
authormsmith <msmith@FreeBSD.org>2000-04-11 02:52:46 +0000
committermsmith <msmith@FreeBSD.org>2000-04-11 02:52:46 +0000
commit612fc8c5158ae5c2f3017445553eefe095fbbfc1 (patch)
treef329a647fd19231f32b45be5d1325231c626e853 /sys/dev/mlx/mlxreg.h
parent1f9a3b6ffeeb06ce3881cbb6016adb4f15ef9d81 (diff)
downloadFreeBSD-src-612fc8c5158ae5c2f3017445553eefe095fbbfc1.zip
FreeBSD-src-612fc8c5158ae5c2f3017445553eefe095fbbfc1.tar.gz
Add features required for basic userland management utility:
- implement user-initiated background drive rebuild - implement user-initiated background consistency check - log controller-initiated background rebuild/check operations Try to fix the elusive "invalid log operation" bug, and panic if we do hit this one in the hopes of getting better information. Tidy up diagnostic messages. Try to use disk_create/disk_destroy correctly. This isn't working properly yet, but it's not clear whose fault that is.
Diffstat (limited to 'sys/dev/mlx/mlxreg.h')
-rw-r--r--sys/dev/mlx/mlxreg.h11
1 files changed, 11 insertions, 0 deletions
diff --git a/sys/dev/mlx/mlxreg.h b/sys/dev/mlx/mlxreg.h
index c5382bf..382a2fd 100644
--- a/sys/dev/mlx/mlxreg.h
+++ b/sys/dev/mlx/mlxreg.h
@@ -48,6 +48,7 @@
#define MLX_CMD_STARTCHANNEL 0x12
#define MLX_CMD_READ_CONFIG 0x4e
#define MLX_CMD_DIRECT_CDB 0x04
+#define MLX_CMD_DEVICE_STATE 0x50
#ifdef _KERNEL
@@ -483,6 +484,16 @@ struct mlx_dcdb
u_int8_t res1;
} __attribute__ ((packed));
+struct mlx_bbtable_entry
+{
+ u_int32_t bbt_block_number;
+ u_int8_t bbt_extent;
+ u_int8_t res1;
+ u_int8_t bbt_entry_type;
+ u_int8_t bbt_system_drive:5;
+ u_int8_t res2:3;
+} __attribute__ ((packed));
+
#ifdef _KERNEL
/*
* Inlines to build various command structures
OpenPOWER on IntegriCloud