/[dynamips]/upstream/dynamips-0.2.6-RC3/dev_c7200.h
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-RC3/dev_c7200.h

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

upstream/dynamips-0.2.6-RC1/dev_c7200.h revision 2 by dpavlin, Sat Oct 6 16:03:58 2007 UTC upstream/dynamips-0.2.6-RC2/dev_c7200.h revision 3 by dpavlin, Sat Oct 6 16:05:34 2007 UTC
# Line 91  Line 91 
91  /* C7200 router */  /* C7200 router */
92  typedef struct c7200_router c7200_t;  typedef struct c7200_router c7200_t;
93    
 /* C7200 EEPROM */  
 struct c7200_eeprom {  
    char *name;  
    m_uint16_t *data;  
    u_int len;  
 };  
   
94  /* Prototype of NPE driver initialization function */  /* Prototype of NPE driver initialization function */
95  typedef int (*c7200_npe_init_fn)(c7200_t *router);  typedef int (*c7200_npe_init_fn)(c7200_t *router);
96    
# Line 140  struct c7200_nio_binding { Line 133  struct c7200_nio_binding {
133  struct c7200_pa_bay {  struct c7200_pa_bay {
134     char *dev_name;                       /* Device Name */     char *dev_name;                       /* Device Name */
135     char *dev_type;                       /* Device Type */     char *dev_type;                       /* Device Type */
136       struct cisco_eeprom eeprom;           /* PA EEPROM */
137     struct pci_bus *pci_map;              /* PCI bus */     struct pci_bus *pci_map;              /* PCI bus */
    struct nmc93c46_eeprom_def eeprom;    /* PA EEPROM */  
138     struct c7200_pa_driver *pa_driver;    /* PA driver */     struct c7200_pa_driver *pa_driver;    /* PA driver */
139     void *drv_info;                       /* Private driver info */     void *drv_info;                       /* Private driver info */
140     struct c7200_nio_binding *nio_list;   /* NIO bindings to ports */     struct c7200_nio_binding *nio_list;   /* NIO bindings to ports */
# Line 180  struct c7200_router { Line 173  struct c7200_router {
173     struct pci_bus *pcmcia_bus;     struct pci_bus *pcmcia_bus;
174    
175     /* Midplane EEPROM can be modified to change the chassis MAC address... */     /* Midplane EEPROM can be modified to change the chassis MAC address... */
176     m_uint16_t mp_eeprom_data[64];     struct cisco_eeprom cpu_eeprom,mp_eeprom,pem_eeprom;
     
    struct nmc93c46_eeprom_def cpu_eeprom;  /* CPU EEPROM */  
    struct nmc93c46_eeprom_def mp_eeprom;   /* Midplane EEPROM */  
    struct nmc93c46_eeprom_def pem_eeprom;  /* Power Entry Module EEPROM */  
177    
178     struct nmc93c46_group sys_eeprom_g1;    /* EEPROMs for CPU and Midplane */     struct nmc93c46_group sys_eeprom_g1;    /* EEPROMs for CPU and Midplane */
179     struct nmc93c46_group sys_eeprom_g2;    /* EEPROM for PEM */     struct nmc93c46_group sys_eeprom_g2;    /* EEPROM for PEM */
# Line 195  struct c7200_router { Line 184  struct c7200_router {
184  /* Initialize EEPROM groups */  /* Initialize EEPROM groups */
185  void c7200_init_eeprom_groups(c7200_t *router);  void c7200_init_eeprom_groups(c7200_t *router);
186    
 /* Find an EEPROM in the specified array */  
 struct c7200_eeprom *c7200_get_eeprom(struct c7200_eeprom *eeproms,char *name);  
   
 /* Get an EEPROM for a given NPE model */  
 struct c7200_eeprom *c7200_get_cpu_eeprom(char *npe_name);  
   
 /* Get an EEPROM for a given midplane model */  
 struct c7200_eeprom *c7200_get_midplane_eeprom(char *midplane_name);  
   
 /* Get a PEM EEPROM for a given NPE model */  
 struct c7200_eeprom *c7200_get_pem_eeprom(char *npe_name);  
   
187  /* Create a new router instance */  /* Create a new router instance */
188  c7200_t *c7200_create_instance(char *name,int instance_id);  c7200_t *c7200_create_instance(char *name,int instance_id);
189    
# Line 224  void c7200_save_config_all(FILE *fd); Line 201  void c7200_save_config_all(FILE *fd);
201    
202  /* Set PA EEPROM definition */  /* Set PA EEPROM definition */
203  int c7200_pa_set_eeprom(c7200_t *router,u_int pa_bay,  int c7200_pa_set_eeprom(c7200_t *router,u_int pa_bay,
204                          const struct c7200_eeprom *eeprom);                          const struct cisco_eeprom *eeprom);
205    
206  /* Unset PA EEPROM definition (empty bay) */  /* Unset PA EEPROM definition (empty bay) */
207  int c7200_pa_unset_eeprom(c7200_t *router,u_int pa_bay);  int c7200_pa_unset_eeprom(c7200_t *router,u_int pa_bay);

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

  ViewVC Help
Powered by ViewVC 1.1.26