/[dynamips]/upstream/dynamips-0.2.6-RC1/dev_am79c971.c
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /upstream/dynamips-0.2.6-RC1/dev_am79c971.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

upstream/dynamips-0.2.5/dev_am79c971.c revision 1 by dpavlin, Sat Oct 6 16:01:44 2007 UTC upstream/dynamips-0.2.6-RC1/dev_am79c971.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC
# Line 702  static int am79c971_receive_pkt(struct a Line 702  static int am79c971_receive_pkt(struct a
702     rxd0.rmd[1] |= AM79C971_RMD1_STP;     rxd0.rmd[1] |= AM79C971_RMD1_STP;
703     physmem_copy_u32_to_vm(d->vm,rx_start+4,rxd0.rmd[1]);     physmem_copy_u32_to_vm(d->vm,rx_start+4,rxd0.rmd[1]);
704    
    /* Generate RX interrupt */  
705     d->csr[0] |= AM79C971_CSR0_RINT;     d->csr[0] |= AM79C971_CSR0_RINT;
706     am79c971_update_intr_flag(d);     am79c971_update_intr_flag(d);
707     am79c971_trigger_irq(d);     am79c971_trigger_irq(d);
# Line 1012  void dev_am79c971_remove(struct am79c971 Line 1011  void dev_am79c971_remove(struct am79c971
1011    
1012  /* Bind a NIO to an AMD Am79c971 device */  /* Bind a NIO to an AMD Am79c971 device */
1013  int dev_am79c971_set_nio(struct am79c971_data *d,netio_desc_t *nio)  int dev_am79c971_set_nio(struct am79c971_data *d,netio_desc_t *nio)
1014  {    {
1015     /* check that a NIO is not already bound */     /* check that a NIO is not already bound */
1016     if (d->nio != NULL)     if (d->nio != NULL)
1017        return(-1);        return(-1);

Legend:
Removed from v.1  
changed lines
  Added in v.2

  ViewVC Help
Powered by ViewVC 1.1.26