/[dynamips]/upstream/dynamips-0.2.8-RC1/dev_c7200_iofpga.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.8-RC1/dev_c7200_iofpga.c

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

upstream/dynamips-0.2.7/dev_c7200_iofpga.c revision 10 by dpavlin, Sat Oct 6 16:29:14 2007 UTC upstream/dynamips-0.2.8-RC1/dev_c7200_iofpga.c revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 151  static const struct nmc93cX6_eeprom_def Line 151  static const struct nmc93cX6_eeprom_def
151    
152  /* IOFPGA manages simultaneously CPU and Midplane EEPROM */  /* IOFPGA manages simultaneously CPU and Midplane EEPROM */
153  static const struct nmc93cX6_group eeprom_cpu_midplane = {  static const struct nmc93cX6_group eeprom_cpu_midplane = {
154     EEPROM_TYPE_NMC93C46, 2, 0, "CPU and Midplane EEPROM", 0,     EEPROM_TYPE_NMC93C46, 2, 0,
155       EEPROM_DORD_NORMAL,
156       EEPROM_DOUT_HIGH,
157       EEPROM_DEBUG_DISABLED,
158       "CPU and Midplane EEPROM",
159     { &eeprom_cpu_def, &eeprom_midplane_def },     { &eeprom_cpu_def, &eeprom_midplane_def },
160  };  };
161    
# Line 161  static const struct nmc93cX6_group eepro Line 165  static const struct nmc93cX6_group eepro
165   * http://www.cisco.com/en/US/products/hw/routers/ps341/products_field_notice09186a00801cb26d.shtml   * http://www.cisco.com/en/US/products/hw/routers/ps341/products_field_notice09186a00801cb26d.shtml
166   */   */
167  static const struct nmc93cX6_group eeprom_pem_npeb = {  static const struct nmc93cX6_group eeprom_pem_npeb = {
168     EEPROM_TYPE_NMC93C46, 1, 0, "PEM (NPE-B) EEPROM", 0, { &eeprom_pem_def },     EEPROM_TYPE_NMC93C46, 1, 0,
169       EEPROM_DORD_NORMAL,
170       EEPROM_DOUT_HIGH,
171       EEPROM_DEBUG_DISABLED,
172       "PEM (NPE-B) EEPROM",
173       { &eeprom_pem_def },
174  };  };
175    
176  /* Reset DS1620 */  /* Reset DS1620 */
# Line 433  void *dev_c7200_iofpga_access(cpu_gen_t Line 442  void *dev_c7200_iofpga_access(cpu_gen_t
442              *data = 0x0102;              *data = 0x0102;
443                            
444              /* If we have an I/O slot, we use the I/O slot DUART */              /* If we have an I/O slot, we use the I/O slot DUART */
445              if (c7200_pa_check_eeprom(d->router,0))              if (vm_slot_check_eeprom(d->router->vm,0,0))
446                 *data |= 0x01000000;                 *data |= 0x01000000;
447           }           }
448           break;           break;
# Line 707  void *dev_c7200_iofpga_access(cpu_gen_t Line 716  void *dev_c7200_iofpga_access(cpu_gen_t
716     return NULL;     return NULL;
717  }  }
718    
719  /* Initialize EEPROM groups */  /* Initialize system EEPROM groups */
720  void c7200_init_eeprom_groups(c7200_t *router)  void c7200_init_sys_eeprom_groups(c7200_t *router)
721  {  {
722     router->sys_eeprom_g1 = eeprom_cpu_midplane;     router->sys_eeprom_g1 = eeprom_cpu_midplane;
723     router->sys_eeprom_g2 = eeprom_pem_npeb;     router->sys_eeprom_g2 = eeprom_pem_npeb;
# Line 778  int dev_c7200_iofpga_init(c7200_t *route Line 787  int dev_c7200_iofpga_init(c7200_t *route
787     d->dev.priv_data = d;     d->dev.priv_data = d;
788    
789     /* If we have an I/O slot, we use the I/O slot DUART */     /* If we have an I/O slot, we use the I/O slot DUART */
790     if (c7200_pa_check_eeprom(d->router,0)) {     if (vm_slot_check_eeprom(vm,0,0)) {
791        vm_log(vm,"CONSOLE","console managed by I/O board\n");        vm_log(vm,"CONSOLE","console managed by I/O board\n");
792    
793        /* Set console and AUX port notifying functions */        /* Set console and AUX port notifying functions */

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

  ViewVC Help
Powered by ViewVC 1.1.26