OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [tags/] [stable_0_2_0_rc3/] [or1ksim/] [peripheral/] [ps2kbd.c] - Diff between revs 1557 and 1567

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 1557 Rev 1567
Line 250... Line 250...
  /* Check if there is something waiting, and decode it into kdb_buf */
  /* Check if there is something waiting, and decode it into kdb_buf */
  if((c = fgetc(kbd->rxfs)) != EOF) {
  if((c = fgetc(kbd->rxfs)) != EOF) {
    scan_decode (kbd, c);
    scan_decode (kbd, c);
  }
  }
  kbd_int = kbd->kresp || kbd->buf_count ? kbd->ccmdbyte & KBD_CCMDBYTE_INT : 0;
  kbd_int = kbd->kresp || kbd->buf_count ? kbd->ccmdbyte & KBD_CCMDBYTE_INT : 0;
  if (config.sim.verbose && kbd_int)
/*
    PRINTF("Keyboard Interrupt.... kbd_kresp %lx  kbd_buf_count %lx \n",
  if (config.sim.verbose && kbd_int)
           kbd->kresp, kbd->buf_count);
    PRINTF("Keyboard Interrupt.... kbd_kresp %lx  kbd_buf_count %lx \n",
 
           kbd->kresp, kbd->buf_count);
 
*/
  if (kbd_int) report_interrupt(kbd->irq);
  if (kbd_int) report_interrupt(kbd->irq);
  SCHED_ADD(kbd_job, dat, kbd->slowdown);
  SCHED_ADD(kbd_job, dat, kbd->slowdown);
}
}
 
 
/* Reset all (simulated) ps2 controlers/keyboards */
/* Reset all (simulated) ps2 controlers/keyboards */

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.