URL
https://opencores.org/ocsvn/openrisc/openrisc/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 19 |
Rev 86 |
Line 612... |
Line 612... |
kbd->ccmdbyte = 0x65; /* We reset into default normal operation. */
|
kbd->ccmdbyte = 0x65; /* We reset into default normal operation. */
|
|
|
if (!(kbd->rxfs = fopen (kbd->rxfile, "r"))
|
if (!(kbd->rxfs = fopen (kbd->rxfile, "r"))
|
&& !(kbd->rxfs = fopen (kbd->rxfile, "r+")))
|
&& !(kbd->rxfs = fopen (kbd->rxfile, "r+")))
|
{
|
{
|
fprintf (stderr, "WARNING: Unable to open RX file stream.\n");
|
/* Bug 1723 fixed: Clearer message */
|
|
fprintf (stderr,
|
|
"WARNING: PS2 keyboard unable to open RX file stream.\n");
|
return;
|
return;
|
}
|
}
|
kbd->slowdown = (long) ((system_kfreq * 1000.0) / KBD_BAUD_RATE);
|
kbd->slowdown = (long) ((system_kfreq * 1000.0) / KBD_BAUD_RATE);
|
if (kbd->slowdown <= 0)
|
if (kbd->slowdown <= 0)
|
kbd->slowdown = 1;
|
kbd->slowdown = 1;
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.