/[dynamips]/trunk/dev_c7200_serial.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 /trunk/dev_c7200_serial.c

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

upstream/dynamips-0.2.6-RC3/dev_c7200_serial.c revision 4 by dpavlin, Sat Oct 6 16:06:49 2007 UTC upstream/dynamips-0.2.7/dev_c7200_serial.c revision 10 by dpavlin, Sat Oct 6 16:29:14 2007 UTC
# Line 1  Line 1 
1  /*    /*  
2   * Cisco C7200 (Predator) Simulation Platform.   * Cisco router simulation platform.
3   * Copyright (C) 2005,2006 Christophe Fillot.  All rights reserved.   * Copyright (C) 2005,2006 Christophe Fillot.  All rights reserved.
4   *   *
5   * Serial Interfaces (Mueslix).   * Serial Interfaces (Mueslix).
# Line 24  Line 24 
24  #include <errno.h>  #include <errno.h>
25  #include <assert.h>  #include <assert.h>
26    
27  #include "mips64.h"  #include "cpu.h"
28    #include "vm.h"
29  #include "dynamips.h"  #include "dynamips.h"
30  #include "memory.h"  #include "memory.h"
31  #include "device.h"  #include "device.h"
# Line 53  int dev_c7200_pa_4t_init(c7200_t *router Line 54  int dev_c7200_pa_4t_init(c7200_t *router
54     /* Create the Mueslix chip */     /* Create the Mueslix chip */
55     data = dev_mueslix_init(router->vm,name,1,     data = dev_mueslix_init(router->vm,name,1,
56                             router->pa_bay[pa_bay].pci_map,0,                             router->pa_bay[pa_bay].pci_map,0,
57                             C7200_NETIO_IRQ);                             c7200_net_irq_for_slot_port(pa_bay,0));
58     if (!data) return(-1);     if (!data) return(-1);
59    
60     /* Store device info into the router structure */     /* Store device info into the router structure */
# Line 137  int dev_c7200_pa_8t_init(c7200_t *router Line 138  int dev_c7200_pa_8t_init(c7200_t *router
138     /* Create the 1st Mueslix chip */     /* Create the 1st Mueslix chip */
139     data->mueslix[0] = dev_mueslix_init(router->vm,name,1,     data->mueslix[0] = dev_mueslix_init(router->vm,name,1,
140                                         router->pa_bay[pa_bay].pci_map,0,                                         router->pa_bay[pa_bay].pci_map,0,
141                                         C7200_NETIO_IRQ);                                         c7200_net_irq_for_slot_port(pa_bay,0));
142     if (!data->mueslix[0]) return(-1);     if (!data->mueslix[0]) return(-1);
143    
144     /* Create the 2nd Mueslix chip */     /* Create the 2nd Mueslix chip */
145     data->mueslix[1] = dev_mueslix_init(router->vm,name,1,     data->mueslix[1] = dev_mueslix_init(router->vm,name,1,
146                                         router->pa_bay[pa_bay].pci_map,1,                                         router->pa_bay[pa_bay].pci_map,1,
147                                         C7200_NETIO_IRQ);                                         c7200_net_irq_for_slot_port(pa_bay,1));
148     if (!data->mueslix[1]) return(-1);     if (!data->mueslix[1]) return(-1);
149    
150     /* Store device info into the router structure */     /* Store device info into the router structure */

Legend:
Removed from v.4  
changed lines
  Added in v.10

  ViewVC Help
Powered by ViewVC 1.1.26