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

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

upstream/dynamips-0.2.7/dev_vtty.c revision 10 by dpavlin, Sat Oct 6 16:29:14 2007 UTC upstream/dynamips-0.2.8-RC1/dev_vtty.c revision 11 by dpavlin, Sat Oct 6 16:33:40 2007 UTC
# Line 690  static void remote_control(vtty_t *vtty, Line 690  static void remote_control(vtty_t *vtty,
690    
691        /* Show info about Port Adapters or Network Modules */        /* Show info about Port Adapters or Network Modules */
692        case 'p':        case 'p':
693           switch(vm->type) {           vm_slot_show_all_info(vm);
             case VM_TYPE_C3600:  
                c3600_nm_show_all_info(VM_C3600(vm));  
                break;  
             case VM_TYPE_C7200:  
                c7200_pa_show_all_info(VM_C7200(vm));  
                break;  
             case VM_TYPE_C2691:  
                c2691_nm_show_all_info(VM_C2691(vm));  
                break;  
             case VM_TYPE_C3725:  
                c3725_nm_show_all_info(VM_C3725(vm));  
                break;  
             case VM_TYPE_C3745:  
                c3745_nm_show_all_info(VM_C3745(vm));  
                break;  
             case VM_TYPE_C2600:  
                c2600_nm_show_all_info(VM_C2600(vm));  
                break;  
          }  
694           break;           break;
695        
696        /* Dump the MIPS registers */        /* Dump the MIPS registers */
# Line 762  static void remote_control(vtty_t *vtty, Line 743  static void remote_control(vtty_t *vtty,
743        case 'x':        case 'x':
744           if (cpu0) {           if (cpu0) {
745              /* IRQ triggering */              /* IRQ triggering */
746              vm_set_irq(vm,2);              //vm_set_irq(vm,5);
747    
748                CPU_MIPS64(cpu0)->irq_disable = TRUE;
749           }           }
750           break;           break;
751    
752        case 'y':        case 'y':
753           if (cpu0) {           if (cpu0) {
754              /* IRQ clearing */              /* IRQ clearing */
755              vm_clear_irq(vm,2);              vm_clear_irq(vm,5);
756           }           }
757           break;           break;
758    
# Line 1034  void vtty_flush(vtty_t *vtty) Line 1017  void vtty_flush(vtty_t *vtty)
1017     switch(vtty->type) {     switch(vtty->type) {
1018        case VTTY_TYPE_TERM:        case VTTY_TYPE_TERM:
1019        case VTTY_TYPE_TCP:        case VTTY_TYPE_TCP:
1020           if (vtty->fstream)           if (vtty->fstream != NULL)
1021              fflush(vtty->fstream);              fflush(vtty->fstream);
1022           break;           break;
1023    
1024        case VTTY_TYPE_SERIAL:        case VTTY_TYPE_SERIAL:
1025           fsync(vtty->fd);           if (vtty->fd != -1)
1026                fsync(vtty->fd);
1027           break;           break;
1028     }     }
1029  }  }

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

  ViewVC Help
Powered by ViewVC 1.1.26