// 61883.h
typedef struct _BUS_RESET_NOTIFY {
IN ULONG Flags;
IN PBUS_RESET_ROUTINE pfnNotify;
IN PVOID Context;
} BUS_RESET_NOTIFY, *PBUS_RESET_NOTIFY;
View the official Windows Driver Kit DDI referenceNo description available.
This structure is used to register or deregister the PBUS_RESET_ROUTINE callback. The request registers the caller to be notified when a reset of the 1394 bus occurs or cancels a previous registration. When the registered callback (bus reset) routine is called, the updated generation count and node address will be specified in parameter BusResetInfo. If a driver registers for bus-reset notification, it must cancel registration before the system unloads the driver.
FlagsThe caller sets this member to REGISTER_BUS_RESET_NOTIFY to register to receive bus-reset notifications, or to DEREGISTER_BUS_RESET_NOTIFY to stop receiving bus-reset notifications.
pfnNotifyPointer to a caller-supplied function to be called by the protocol driver when the 1394 bus is reset.
This function uses the following prototype:
Void
(*PBUS_RESET_ROUTINE)(
IN PVOID Context;
IN PBUS_GENERATION_NODE BusResetInfo;
);
ContextPointer to a caller-defined context for the function at pfnNotify. The IEC-61883 protocol driver calls this function after a reset of the 1394 bus.
If successful, the IEC-61883 protocol driver sets Irp->IoStatus.Status to STATUS_SUCCESS.
If an incorrect parameter is passed in, the protocol driver sets Irp->IoStatus.Status to STATUS_INVALID_PARAMETER.