Changeset c153a7b in rtems


Ignore:
Timestamp:
Aug 10, 1998, 9:27:33 PM (21 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.10, 4.11, 4.8, 4.9, master
Children:
7344fba9
Parents:
9886290
Message:

replies to ping -- forced into prosmiscuous mode

File:
1 edited

Legend:

Unmodified
Added
Removed
  • c/src/lib/libbsp/powerpc/dmv177/sonic/sonic.c

    r9886290 rc153a7b  
    207207   * Statistics
    208208   */
     209  unsigned long                   Interrupts;
    209210  unsigned long                   rxInterrupts;
    210211  unsigned long                   rxMissed;
     
    318319  struct sonic *dp = &sonic[iface->dev];
    319320
     321  printf (" Total Interrupts:%-8lu", dp->Interrupts);
    320322  printf ("    Rx Interrupts:%-8lu", dp->rxInterrupts);
    321323  printf ("            Giant:%-8lu", dp->rxGiant);
     
    366368   */
    367369  rp = dp->sonic;
     370
     371  dp->Interrupts++;
    368372
    369373  /*
     
    533537   */
    534538  if (dp->tdaActiveCount == dp->tdaCount) {
     539puts( "Wait for more TDAs" );
    535540    /*
    536541     * Find out who we are
     
    632637
    633638  /*
    634    * Let KA9Q know the packet is on the way before we give it to the SONIC.
    635    */
    636 
    637   dp->txWaitTid = 0;
    638   *bpp = NULL;
    639 
    640   /*
    641639   * Chain onto list and start transmission.
    642640   */
     
    655653  sonic_write_register( rp, SONIC_REG_CR, CR_TXP );
    656654
     655  /*
     656   * Let KA9Q know the packet is on the way
     657   */
     658
     659  dp->txWaitTid = 0;
     660  *bpp = NULL;
    657661  return 0;
    658662}
     
    11291133
    11301134  if (broadcastFlag)
    1131     sonic_write_register( rp, SONIC_REG_RCR, RCR_BRD );
     1135    sonic_write_register( rp, SONIC_REG_RCR, RCR_BRD | RDA_STATUS_PRO );
    11321136  else
    1133     sonic_write_register( rp, SONIC_REG_RCR, 0 );
     1137    sonic_write_register( rp, SONIC_REG_RCR, 0  | RDA_STATUS_PRO);
    11341138
    11351139  /*
     
    11661170    continue;
    11671171
    1168 #if 0
    11691172  /*
    11701173   * Remove device reset
     
    11721175
    11731176  sonic_write_register( rp, SONIC_REG_CR, 0 );
    1174 #endif
    11751177
    11761178  /*
     
    11881190  }
    11891191
    1190   cdp->desc[0].cep = 0;      /* Fill first entry in CAM */
    11911192#if (SONIC_DEBUG & SONIC_DEBUG_CAM)
    11921193  printf( "hwaddr: %2x:%2x:%2x:%2x:%2x:%2x\n",
    11931194     hwaddr[0], hwaddr[1], hwaddr[2], hwaddr[3], hwaddr[4], hwaddr[5] );
    11941195#endif
     1196  cdp->desc[0].cep = 0;      /* Fill first entry in CAM */
    11951197  cdp->desc[0].cap2 = hwaddr[0] << 8 | hwaddr[1];
    11961198  cdp->desc[0].cap1 = hwaddr[2] << 8 | hwaddr[3];
     
    12961298
    12971299  /*
     1300   *  zero out the control structure
     1301   */
     1302
     1303  memset( dp, 0, sizeof(struct sonic) );
     1304
     1305  /*
    12981306   * Create an inteface descriptor
    12991307   */
    13001308  iface = callocw (1, sizeof *iface);
    13011309  iface->name = strdup (argv[0]);
    1302   iface->dev = dp - sonic;;
     1310  iface->dev = dp - sonic;
    13031311
    13041312  /*
Note: See TracChangeset for help on using the changeset viewer.