Lines Matching defs:event

258  * Strings for daemon event reporting
274 "event log ", /* 0c */
281 "[null event]", /* 00 */
680 * The IDI uses the event thread service which
978 * Disables the watchdog and sets up serial event reporting.
1009 /* set serial event reporting */
1013 /* Make sure serial event reporting is on */
1017 /* Make sure serial event reporting is on */
1726 * LOMLite configuration/event eeprom access routines
1842 * This marks a NULL event.
1845 "EVENT_SUBSYS_NONE/EVENT_NONE null event");
1850 * a manually cleared event log at the BSC prompt. Only
1853 BSCV_TRACE(ssp, 'E', "bscv_is_null_event", "0xffff null event");
1857 * Not a NULL event.
2476 lom_event_t event;
2508 * Read count, next event ptr MSB,LSB. Note a read of count
2509 * is necessary to latch values for the next event ptr
2520 * Working backwards - read an event at a time.
2521 * next_offset is one event on from where we want to be!
2533 next_offset -= sizeof (event);
2535 if (bscv_eerw(ssp, next_offset, (uint8_t *)&event,
2536 sizeof (event), B_FALSE /* read */) != 0) {
2544 if (bscv_is_null_event(ssp, &event)) {
2554 * Are we interested in this event
2557 level = bscv_level_of_event(&event);
2561 ((unsigned)event.ev_event |
2562 ((unsigned)event.ev_subsys << 8) |
2563 ((unsigned)event.ev_resource << 16) |
2564 ((unsigned)event.ev_detail << 24));
2567 ((unsigned)event.ev_data[0] |
2568 ((unsigned)event.ev_data[1] << 8) |
2569 ((unsigned)event.ev_data[3] << 16) |
2570 ((unsigned)event.ev_data[2] << 24));
2573 &event, eventlog2->string[events_recorded],
2947 "process event: async_reg 0x%x, fault 0x%x",
3096 * Had fault during event session. We always
3099 * us doing useful work in the event daemon.
3140 * We are going away so wake up any event consumer.
3158 * description - Create the event daemon thread.
3168 /* Start the event thread after the queue has started */
3177 * description - Attempt to stop the event daemon thread.
3218 * description - Attempt to pause the event daemon thread.
3233 "Attempting to pause event daemon");
3257 "Pause event daemon - success");
3262 "Pause event daemon - failed");
3268 * description - Resumethe event daemon thread.
3281 /* Allow the task daemon to resume event processing */
3293 * inputs - Soft state ptr, process event request
3306 lom_event_t event;
3310 * Read count, next event ptr MSB,LSB. Note a read of count
3311 * latches values for the next event ptr
3321 * Nothing to do - or badly configured event log.
3327 * Signal event fault to make the thread wait
3343 currptr -= (count * sizeof (event));
3355 if (bscv_eerw(ssp, currptr, (uint8_t *)&event,
3356 sizeof (event), B_FALSE /* read */) != 0) {
3361 bscv_event_process_one(ssp, &event);
3362 bscv_sysevent(ssp, &event);
3364 currptr += sizeof (event);
3371 * Clear event count - write the evcount value to remove that
3395 * description - validate the event data supplied by the lom and determine
3401 * inputs - Soft state ptr, next event pointer, number of unread events.
3417 /* Sanity check the event pointers */
3450 * 1. the event log has filled - we have been
3491 bscv_event_process_one(bscv_soft_state_t *ssp, lom_event_t *event)
3497 if (bscv_is_null_event(ssp, event)) {
3502 level = bscv_level_of_event(event);
3515 bscv_build_eventstring(ssp, event, eventstr, eventstr +
3575 bscv_build_eventstring(bscv_soft_state_t *ssp, lom_event_t *event,
3582 BSCV_TRACE(ssp, 'S', "bscv_build_eventstring", "event %2x%2x%2x%2x",
3583 event->ev_subsys, event->ev_event,
3584 event->ev_resource, event->ev_detail);
3586 event->ev_data[0], event->ev_data[1],
3587 event->ev_data[2], event->ev_data[3]);
3590 * We accept bad subsystems and event type codes here.
3594 subsystem = EVENT_DECODE_SUBSYS(event->ev_subsys);
3595 eventtype = event->ev_event;
3598 bsctm = (((uint32_t)event->ev_data[0]) << 24) |
3599 (((uint32_t)event->ev_data[1]) << 16) |
3600 (((uint32_t)event->ev_data[2]) << 8) |
3601 ((uint32_t)event->ev_data[3]);
3635 buf += snprintf(buf, bufend - buf, "%d ", event->ev_resource);
3639 ssp->led_names, MAX_LED_ID, event->ev_resource - 1));
3646 if (event->ev_subsys & EVENT_MASK_FAULT) {
3647 if (event->ev_subsys & EVENT_MASK_FATAL) {
3661 "unknown event 0x%02x%02x%02x%02x",
3662 event->ev_subsys, event->ev_event,
3663 event->ev_resource, event->ev_detail);
3672 (int8_t)event->ev_detail);
3678 " %d%%", event->ev_detail);
3686 (event->ev_resource >> 4),
3687 (event->ev_resource & 0x0f),
3688 (event->ev_detail >> 4),
3689 (event->ev_detail & 0x0f));
3693 event->ev_detail ? "- soft" : " - hard");
3696 if (event->ev_detail &
3700 event->ev_detail &
3705 switch (event->ev_detail) {
3724 switch (event->ev_detail) {
3746 event->ev_resource);
3760 event->ev_resource);
3766 if (event->ev_detail & LOM_PSU_NOACCESS) {
3768 } else if ((event->ev_detail & LOM_PSU_STATUS_MASK)
3777 if (!(event->ev_detail &
3782 if (!(event->ev_detail & LOM_PSU_INPUT_A_OK)) {
3786 if (!(event->ev_detail & LOM_PSU_INPUT_B_OK)) {
3794 if (!(event->ev_detail & LOM_PSU_OUTPUT_OK)) {
3804 switch (event->ev_detail) {
3813 " - %dHz", event->ev_detail);
3820 switch (event->ev_detail &
3843 switch (event->ev_detail) {
3863 if (event->ev_subsys & EVENT_MASK_SHUTDOWN_REQD) {
3881 * description - This routine determines which level an event should be
3883 * inputs - lom event structure pointer
3884 * outputs - event level.
3887 bscv_level_of_event(lom_event_t *event)
3894 if (EVENT_DECODE_SUBSYS(event->ev_subsys) == EVENT_SUBSYS_USER) {
3896 } else if ((EVENT_DECODE_SUBSYS(event->ev_subsys) ==
3897 EVENT_SUBSYS_ALARM) && (event->ev_event == EVENT_STATE_ON)) {
3899 } else if ((EVENT_DECODE_SUBSYS(event->ev_subsys) ==
3901 (event->ev_event == EVENT_FAULT_LED) &&
3902 (event->ev_detail != 0xff)) {
3904 } else if ((EVENT_DECODE_SUBSYS(event->ev_subsys) ==
3905 EVENT_SUBSYS_LOM) && event->ev_event == EVENT_TIME_REFERENCE) {
3907 } else if (event->ev_event == EVENT_RECOVERED) {
3918 } else if (EVENT_DECODE_FAULT(event->ev_subsys) == 0) {
3921 } else if (EVENT_DECODE_FAULT(event->ev_subsys) == EVENT_MASK_FAULT) {
3953 * register and the event detail register so react
4115 * inputs - soft state pointer, event to report
4120 bscv_sysevent(bscv_soft_state_t *ssp, lom_event_t *event)
4128 BSCV_TRACE(ssp, 'E', "bscv_sysevent", "processing event");
4130 ASSERT(event != NULL);
4134 switch (EVENT_DECODE_SUBSYS(event->ev_subsys)) {
4142 event->ev_resource - 1);
4143 switch (event->ev_event) {
4162 event->ev_resource - 1);
4163 switch (event->ev_event) {
4177 event->ev_resource - 1);
4178 switch (event->ev_event) {
4206 if (event->ev_event != EVENT_FAULT_LED &&
4207 event->ev_event != EVENT_STATE_CHANGE)
4221 event->ev_resource - 1);
4223 switch (event->ev_detail) {
4274 * bscv_prog_stop_lom - pause the event daemon and prepare
4277 * and restart the event daemon
4900 "failed to pause event daemon thread");
4971 * Start the event thread after the queue has started
4999 * bscv_setup_events - start event daemon etc.
5020 * the microcontroller print event messages straight onto the
5065 * If the event thread has been started we may fail to
5068 * are done before the event daemon is started.
5102 * switch back on serial event reporting - cover all configs.
5401 * description - notify the event thread that a nodename change has occurred.
5404 * side-effects - the event thread will schedule an update to the lom firmware.
5606 /* have the event daemon set the timeout value and whether to reset */
6130 * description - initialise the event reporting code
6144 * deal with event reporting - cover all cases