Add event table decoding for SAS Broadcast Primitive events.

This commit is contained in:
scottl 2019-03-24 20:37:37 +00:00
parent c8b259dea5
commit c57accd7b2
2 changed files with 20 additions and 0 deletions

View File

@ -452,6 +452,16 @@ mpr_print_evt_sas(struct mpr_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event)
mpr_print_field(sc, "SASAddress: 0x%jx\n",
mpr_to_u64(&data->SASAddress));
}
case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE:
{
MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE *data;
data = (MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE *)&event->EventData;
MPR_PRINTFIELD(sc, data, PhyNum, %d);
MPR_PRINTFIELD(sc, data, Port, %d);
MPR_PRINTFIELD(sc, data, PortWidth, %d);
MPR_PRINTFIELD(sc, data, Primitive, 0x%x);
}
default:
break;
}

View File

@ -431,6 +431,16 @@ mps_print_evt_sas(struct mps_softc *sc, MPI2_EVENT_NOTIFICATION_REPLY *event)
mps_print_field(sc, "SASAddress: 0x%jx\n",
mps_to_u64(&data->SASAddress));
}
case MPI2_EVENT_SAS_BROADCAST_PRIMITIVE:
{
MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE *data;
data = (MPI2_EVENT_DATA_SAS_BROADCAST_PRIMITIVE *)&event->EventData;
MPS_PRINTFIELD(sc, data, PhyNum, %d);
MPS_PRINTFIELD(sc, data, Port, %d);
MPS_PRINTFIELD(sc, data, PortWidth, %d);
MPS_PRINTFIELD(sc, data, Primitive, 0x%x);
}
default:
break;
}