Ignore:
Timestamp:
Oct 30, 2012, 4:42:17 PM (8 years ago)
Author:
Sebastian Huber <sebastian.huber@…>
Branches:
4.11, 5, master
Children:
20e1e769
Parents:
f7ceeacf
git-author:
Sebastian Huber <sebastian.huber@…> (10/30/12 16:42:17)
git-committer:
Sebastian Huber <sebastian.huber@…> (11/02/12 08:34:35)
Message:

libnetworking: Use system events

Add reserved system events RTEMS_EVENT_SYSTEM_NETWORK_SBWAIT and
RTEMS_EVENT_SYSTEM_NETWORK_SOSLEEP.

Add and use rtems_bsdnet_event_send().

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/m68k/mvme167/network/network.c

    rf7ceeacf r26e90fb1  
    11371137  if ( sc->txDaemonTid && pCmd != I596_NULL ) {
    11381138    printk(("****RESET: wakes transmitter!\n"))
    1139     status_code = rtems_event_send (sc->txDaemonTid,
     1139    status_code = rtems_bsdnet_event_send (sc->txDaemonTid,
    11401140                           INTERRUPT_EVENT);
    11411141
     
    18001800        #endif
    18011801
    1802   rtems_event_send (sc->txDaemonTid, START_TRANSMIT_EVENT);
     1802  rtems_bsdnet_event_send (sc->txDaemonTid, START_TRANSMIT_EVENT);
    18031803  ifp->if_flags |= IFF_OACTIVE;
    18041804}
     
    22732273        printk(("uti596_DynamicInterruptHandler: Wake %#x\n",uti596_softc.rxDaemonTid))
    22742274                                #endif
    2275         sc = rtems_event_send(uti596_softc.rxDaemonTid, INTERRUPT_EVENT);
     2275        sc = rtems_bsdnet_event_send(uti596_softc.rxDaemonTid, INTERRUPT_EVENT);
    22762276        if ( sc != RTEMS_SUCCESSFUL ) {
    22772277          rtems_panic("Can't notify rxDaemon: %s\n",
     
    23682368          if ( uti596_softc.txDaemonTid ) {
    23692369            /* Ensure that the transmitter is present */
    2370             sc = rtems_event_send (uti596_softc.txDaemonTid,
     2370            sc = rtems_bsdnet_event_send (uti596_softc.txDaemonTid,
    23712371                                 INTERRUPT_EVENT);
    23722372
     
    24332433        if ( uti596_softc.txDaemonTid) {
    24342434          /* Ensure that a transmitter is present */
    2435           sc = rtems_event_send (uti596_softc.txDaemonTid,
     2435          sc = rtems_bsdnet_event_send (uti596_softc.txDaemonTid,
    24362436                                 INTERRUPT_EVENT);
    24372437          if ( sc != RTEMS_SUCCESSFUL ) {
     
    25852585  if ( uti596_softc.nic_reset ) {
    25862586    uti596_softc.nic_reset = 0;
    2587     sc = rtems_event_send(uti596_softc.resetDaemonTid, NIC_RESET_EVENT);
     2587    sc = rtems_bsdnet_event_send(uti596_softc.resetDaemonTid, NIC_RESET_EVENT);
    25882588    if ( sc != RTEMS_SUCCESSFUL )
    25892589      rtems_panic ("Can't notify resetDaemon: %s\n", rtems_status_text (sc));
Note: See TracChangeset for help on using the changeset viewer.