mlx.c (416ba5c74546f32a993436a99516d35008e9f384) mlx.c (73a1170a8c41cb848f17cc0a8839e9dcee3d126e)
1/*-
2 * Copyright (c) 1999 Michael Smith
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

--- 1350 unchanged lines hidden (view full) ---

1359 /*
1360 * This is the only sort of message we understand at the moment.
1361 * The tests here are probably incomplete.
1362 */
1363 case MLX_LOGMSG_SENSE: /* sense data */
1364 /* Mylex vendor-specific message indicating a drive was killed? */
1365 if ((el->el_sensekey == 9) &&
1366 (el->el_asc == 0x80)) {
1/*-
2 * Copyright (c) 1999 Michael Smith
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

--- 1350 unchanged lines hidden (view full) ---

1359 /*
1360 * This is the only sort of message we understand at the moment.
1361 * The tests here are probably incomplete.
1362 */
1363 case MLX_LOGMSG_SENSE: /* sense data */
1364 /* Mylex vendor-specific message indicating a drive was killed? */
1365 if ((el->el_sensekey == 9) &&
1366 (el->el_asc == 0x80)) {
1367 if (el->el_asq < (sizeof(mlx_sense_messages) / sizeof(mlx_sense_messages[0]))) {
1367 if (el->el_asq < nitems(mlx_sense_messages)) {
1368 reason = mlx_sense_messages[el->el_asq];
1369 } else {
1370 reason = "for unknown reason";
1371 }
1372 device_printf(sc->mlx_dev, "physical drive %d:%d killed %s\n",
1373 el->el_channel, el->el_target, reason);
1374 }
1375 /* SCSI drive was reset? */

--- 1699 unchanged lines hidden ---
1368 reason = mlx_sense_messages[el->el_asq];
1369 } else {
1370 reason = "for unknown reason";
1371 }
1372 device_printf(sc->mlx_dev, "physical drive %d:%d killed %s\n",
1373 el->el_channel, el->el_target, reason);
1374 }
1375 /* SCSI drive was reset? */

--- 1699 unchanged lines hidden ---