From c57accd7b2c5ec35cb4d2499fce612c8117dc7c3 Mon Sep 17 00:00:00 2001 From: scottl Date: Sun, 24 Mar 2019 20:37:37 +0000 Subject: [PATCH] Add event table decoding for SAS Broadcast Primitive events. --- sys/dev/mpr/mpr_table.c | 10 ++++++++++ sys/dev/mps/mps_table.c | 10 ++++++++++ 2 files changed, 20 insertions(+) diff --git a/sys/dev/mpr/mpr_table.c b/sys/dev/mpr/mpr_table.c index 7b0776ceab45..6a7eb1d800e5 100644 --- a/sys/dev/mpr/mpr_table.c +++ b/sys/dev/mpr/mpr_table.c @@ -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; } diff --git a/sys/dev/mps/mps_table.c b/sys/dev/mps/mps_table.c index bd8b8505a365..3604597a4844 100644 --- a/sys/dev/mps/mps_table.c +++ b/sys/dev/mps/mps_table.c @@ -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; }