/[dynamips]/upstream/dynamips-0.2.7-RC1/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 /upstream/dynamips-0.2.7-RC1/dev_c7200_serial.c

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

upstream/dynamips-0.2.6-RC1/dev_c7200_serial.c revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.7-RC1/dev_c7200_serial.c revision 7 by dpavlin, Sat Oct 6 16:23:47 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 38  Line 39 
39  /* PA-4T+                                                                 */  /* PA-4T+                                                                 */
40  /* ====================================================================== */  /* ====================================================================== */
41    
 /* PA-4T+ EEPROM definition */  
 static m_uint16_t eeprom_pa_4t_data[64] = {  
    0x010C, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_4t = {  
    "PA-4T+", eeprom_pa_4t_data, sizeof(eeprom_pa_4t_data)/2,  
 };  
   
42  /*  /*
43   * dev_c7200_pa_4t_init()   * dev_c7200_pa_4t_init()
44   *   *
# Line 58  int dev_c7200_pa_4t_init(c7200_t *router Line 49  int dev_c7200_pa_4t_init(c7200_t *router
49     struct mueslix_data *data;     struct mueslix_data *data;
50    
51     /* Set the EEPROM */     /* Set the EEPROM */
52     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_4t);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-4T+"));
53    
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,
# Line 126  struct pa8t_data { Line 117  struct pa8t_data {
117     struct mueslix_data *mueslix[2];     struct mueslix_data *mueslix[2];
118  };  };
119    
 /* EEPROM definition */  
 static m_uint16_t eeprom_pa_8t_data[64] = {  
    0x010E, 0x010F, 0xffff, 0xffff, 0x4906, 0x2E07, 0x0000, 0x0000,  
    0x5000, 0x0000, 0x0010, 0x2400, 0xFFFF, 0xFFFF, 0xFFFF, 0xFFFF,  
 };  
   
 static const struct c7200_eeprom eeprom_pa_8t = {  
    "PA-8T", eeprom_pa_8t_data, sizeof(eeprom_pa_8t_data)/2,  
 };  
   
120  /*  /*
121   * dev_c7200_pa_8t_init()   * dev_c7200_pa_8t_init()
122   *   *
# Line 152  int dev_c7200_pa_8t_init(c7200_t *router Line 133  int dev_c7200_pa_8t_init(c7200_t *router
133     }     }
134    
135     /* Set the EEPROM */     /* Set the EEPROM */
136     c7200_pa_set_eeprom(router,pa_bay,&eeprom_pa_8t);     c7200_pa_set_eeprom(router,pa_bay,cisco_eeprom_find_pa("PA-8T"));
137    
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,

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

  ViewVC Help
Powered by ViewVC 1.1.26