#define BITRATE_TABLE_SIZE (sizeof(bitrate_table) / sizeof(bitrate_table[0]))
-_PROTOTYPE (static void sig_handler, (void));
_PROTOTYPE (static void or_writev, (message * mp, int from_int, int vectored));
_PROTOTYPE (static void or_readv, (message * mp, int from_int, int vectored));
_PROTOTYPE (static void or_writev_s, (message * mp, int from_int));
else if (r != ESRCH)
printf("orinoco: ds_retrieve_u32 failed for 'inet': %d\n", r);
- while (42) {
+ while (TRUE) {
if ((r = receive (ANY, &m)) != OK)
panic(__FILE__, "orinoco: receive failed", NO_NUM);
case SYN_ALARM:
or_watchdog_f(NULL);
break;
+ case SYS_SIG:
+ {
+ sigset_t sigset = m.NOTIFY_ARG;
+ if ( sigismember( &sigset, SIGKSTOP ) )
+ orinoco_stop();
+ }
+ break;
case HARD_INT:
do_hard_int();
if (int_event_check)
or_dump(&m);
break;
case PROC_EVENT:
- sig_handler();
break;
default:
panic(__FILE__,"orinoco: illegal message:", m.m_type);
}
}
-/*****************************************************************************
- * sig_handler *
- * *
- * Handles signals to the driver. *
- *****************************************************************************/
-PRIVATE void sig_handler() {
- sigset_t sigset;
- int sig;
-
- if(getsigset(&sigset) != 0) return;
-
- if(sigismember(&sigset, SIGTERM)) {
- orinoco_stop();
- }
-}
-
-
/*****************************************************************************
* check_int_events *
* *
just_one = FALSE;
}
- while (42) {
+ while (TRUE) {
/* loop through the pcitab to find a maching entry. The match
* being between one of the values in pcitab and the
* information provided by the pci bus */
/* Get the name as advertised by pci */
dname = pci_dev_name (vid, did);
if (!dname)
- dname = "unknow device";
+ dname = "unknown device";
printf ("%s: %s (%04x/%04x) at %s\n",
orp->or_name, dname, vid, did, pci_slot_name (devind));
setup_wepkey(orp, wepkey0);
break;
default:
- printf("unvalid key provided. Has to be 13 chars\n");
+ printf("Invalid key provided. Has to be 13 chars\n");
break;
}
}
#define rl_outw(port, offset, value) (my_outw((port) + (offset), (value)))
#define rl_outl(port, offset, value) (my_outl((port) + (offset), (value)))
-_PROTOTYPE( static void sig_handler, (void) );
_PROTOTYPE( static void rl_init, (message *mp) );
_PROTOTYPE( static void rl_pci_conf, (void) );
_PROTOTYPE( static int rl_probe, (re_t *rep) );
*/
rl_watchdog_f(NULL);
break;
+ case SYS_SIG:
+ {
+ sigset_t sigset = m.NOTIFY_ARG;
+ if ( sigismember( &sigset, SIGKSTOP ) )
+ rtl8139_stop();
+ }
+ break;
case HARD_INT:
do_hard_int();
if (int_event_check)
break ;
case FKEY_PRESSED: rtl8139_dump(&m); break;
case PROC_EVENT:
- sig_handler();
break;
default:
panic("rtl8139","illegal message", m.m_type);
}
}
-/*===========================================================================*
- * sig_handler *
- *===========================================================================*/
-PRIVATE void sig_handler()
-{
- sigset_t sigset;
- int sig;
-
- /* Try to obtain signal set from PM. */
- if (getsigset(&sigset) != 0) return;
-
- /* Check for known signals. */
- if (sigismember(&sigset, SIGTERM)) {
- rtl8139_stop();
- }
-}
-
/*===========================================================================*
* check_int_events *
*===========================================================================*/