idareg.h (124539) | idareg.h (144991) |
---|---|
1/*- 2 * Copyright (c) 1999,2000 Jonathan Lemon 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * | 1/*- 2 * Copyright (c) 1999,2000 Jonathan Lemon 3 * All rights reserved. 4 * 5 * Redistribution and use in source and binary forms, with or without 6 * modification, are permitted provided that the following conditions 7 * are met: 8 * 1. Redistributions of source code must retain the above copyright --- 9 unchanged lines hidden (view full) --- 18 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 20 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 21 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 22 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 23 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 24 * SUCH DAMAGE. 25 * |
26 * $FreeBSD: head/sys/dev/ida/idareg.h 124539 2004-01-15 04:05:47Z mdodd $ | 26 * $FreeBSD: head/sys/dev/ida/idareg.h 144991 2005-04-13 05:06:57Z mdodd $ |
27 */ 28 29/* 30 * #defines and software structures for the Compaq RAID card 31 */ 32 33/* 34 * defines for older EISA controllers (IDA, IDA-2, IAES, SMART) --- 46 unchanged lines hidden (view full) --- 81 * return status codes 82 */ 83#define SOFT_ERROR 0x02 /* Non-fatal error. */ 84#define HARD_ERROR 0x04 /* Fatal error. */ 85#define INVALID_ERROR 0x10 /* Invalid Request Block. */ 86#define CMD_REJECTED 0x14 87 88/* | 27 */ 28 29/* 30 * #defines and software structures for the Compaq RAID card 31 */ 32 33/* 34 * defines for older EISA controllers (IDA, IDA-2, IAES, SMART) --- 46 unchanged lines hidden (view full) --- 81 * return status codes 82 */ 83#define SOFT_ERROR 0x02 /* Non-fatal error. */ 84#define HARD_ERROR 0x04 /* Fatal error. */ 85#define INVALID_ERROR 0x10 /* Invalid Request Block. */ 86#define CMD_REJECTED 0x14 87 88/* |
89 * command types | 89 * command types |
90 */ 91#define CMD_GET_LOG_DRV_INFO 0x10 /* Identify controller */ 92#define CMD_GET_CTRL_INFO 0x11 /* Identify logical driver */ 93#define CMD_SENSE_DRV_STATUS 0x12 /* Sense logical drive status */ 94#define CMD_START_RECOVERY 0x13 /* Start recover */ 95#define CMD_GET_PHYS_DRV_INFO 0x15 /* Identify physical drive */ 96#define CMD_BLINK_DRV_LEDS 0x16 /* Blink drive tray LEDs */ 97#define CMD_SENSE_DRV_LEDS 0x17 /* Sense Blinking drive tray LEDs */ --- 108 unchanged lines hidden (view full) --- 206 u_int8_t icl_bus; 207 u_int8_t red_modes; 208 u_int8_t cur_red_mode; 209 u_int8_t red_ctlr_stat; 210 u_int8_t red_fail_reason; 211 u_int8_t reserved[403]; 212} __packed; 213 | 90 */ 91#define CMD_GET_LOG_DRV_INFO 0x10 /* Identify controller */ 92#define CMD_GET_CTRL_INFO 0x11 /* Identify logical driver */ 93#define CMD_SENSE_DRV_STATUS 0x12 /* Sense logical drive status */ 94#define CMD_START_RECOVERY 0x13 /* Start recover */ 95#define CMD_GET_PHYS_DRV_INFO 0x15 /* Identify physical drive */ 96#define CMD_BLINK_DRV_LEDS 0x16 /* Blink drive tray LEDs */ 97#define CMD_SENSE_DRV_LEDS 0x17 /* Sense Blinking drive tray LEDs */ --- 108 unchanged lines hidden (view full) --- 206 u_int8_t icl_bus; 207 u_int8_t red_modes; 208 u_int8_t cur_red_mode; 209 u_int8_t red_ctlr_stat; 210 u_int8_t red_fail_reason; 211 u_int8_t reserved[403]; 212} __packed; 213 |
214/* | 214/* |
215 * CMD_SENSE_DRV_STATUS (0x12) 216 * Sense logical drive status 217 */ 218struct ida_drive_status { 219 u_int8_t status; 220 u_int32_t failure_map; 221 u_int16_t read_err[32]; 222 u_int16_t write_error[32]; --- 90 unchanged lines hidden --- | 215 * CMD_SENSE_DRV_STATUS (0x12) 216 * Sense logical drive status 217 */ 218struct ida_drive_status { 219 u_int8_t status; 220 u_int32_t failure_map; 221 u_int16_t read_err[32]; 222 u_int16_t write_error[32]; --- 90 unchanged lines hidden --- |