used(minor);
return 1;
}
+
+void tty_data_consumed(uint8_t minor)
+{
+}
return r;
}
-// WRS: this isn't used
-// /* Returns true if the queue has more characters than its wakeup number
-// */
-// bool fullq(struct s_queue *q)
-// {
-// if (q->q_count > q->q_wakeup) // WRS: shouldn't this be >= ?
-// return true;
-// else
-// return false;
-// }
+/* Returns true if the queue has more characters than its wakeup number */
+bool fullq(struct s_queue *q)
+{
+ if (q->q_count > q->q_wakeup) // WRS: shouldn't this be >= ?
+ return true;
+ else
+ return false;
+}
/*********************************************************************
Miscellaneous helpers
uarta = c;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Called to set baud rate etc */
void tty_setup(uint8_t minor)
{
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Beware - this kbd access also disables 80store */
void tty_poll(void)
{
/* For now.. probably worth using tx ints */
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_interrupt(void)
{
uint8_t r = *uart_status;
}
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
uint8_t keymap[8];
static uint8_t keyin[8];
static uint8_t keybyte, keybit;
used(minor);
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* 6551 mode handling */
static uint8_t baudbits[] = {
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
uint8_t keymap[8];
static uint8_t keyin[8];
static uint8_t keybyte, keybit;
ttypoll |= 1 << minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
__sfr __at 0x08 timer4;
void tty_irq(uint8_t minor)
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_interrupt(void)
{
uint8_t r = *uart_status;
void tty_sleeping(uint8_t minor)
{
}
+
+void tty_data_consumed(uint8_t minor)
+{
+}
used(minor);
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Called every timer tick */
void tty_pollirq(void)
{
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_interrupt(void)
{
tty_inproc(minor(BOOT_TTY), UCA0RXBUF);
minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
#if 0
static uint8_t keymap[10];
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_setup(uint8_t minor)
{
minor;
used(minor);
}
+void tty_data_consumed(uint8_t minor)
+{
+ /* FIXME:we can now implement flow control stuff */
+}
+
static uint8_t dart_setup[] = {
1, 0x19,
2, 0x04, /* Vector */
}
+void tty_data_consumed(uint8_t minor)
+{
+}
void platform_interrupt(void)
minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
ttyready_t tty_writeready(uint8_t minor)
{
minor;
if(c == '\n')
tty_putc(TTYDEV & 0xFF, '\r');
}
+
+void tty_data_consumed(uint8_t minor)
+{
+}
minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Pending better ioctl bits set up for 9600 8N1 */
void tty_init_port(void)
{
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Currently run off the timer */
void tty_interrupt(void)
{
minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void update_keyboard(void)
{
/* We need this assembler code because SDCC __sfr cannot handle 16-bit addresses. And because it is much faster, of course */
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/*
* Keyboard interface. This is not a make break interface except for
* the shift keys. We don't support item keyboards just the standard
return TTY_READY_NOW;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* kernel writes to system console -- never sleep! */
void kputchar(char c)
{
void tty_sleeping(uint8_t minor)
{
minor;
-}
\ No newline at end of file
+}
+
+void tty_data_consumed(uint8_t minor)
+{
+}
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_poll(void)
{
uint8_t x;
used(minor);
}
+void tty_data_consumed(uint8_t minor)
+{
+ /* FIXME: flow control as implemented now for Model I and III */
+}
+
uint8_t keymap[8];
static uint8_t keyin[8];
static uint8_t keybyte, keybit;
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
static uint8_t keymap[15];
static uint8_t keyin[15];
static uint8_t keybyte, keybit;
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_poll(void)
{
uint8_t x;
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_poll(void)
{
uint8_t x;
return 1;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void tty_poll(void)
{
uint8_t x;
{
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Currently run off the timer */
void tty_interrupt(void)
{
{
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Currently run off the timer */
void tty_interrupt(void)
{
{
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
/* Currently run off the timer */
void tty_interrupt(void)
{
}
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
ttyready_t tty_writeready(uint8_t minor)
{
uint8_t c;
minor;
}
+void tty_data_consumed(uint8_t minor)
+{
+}
+
void update_keyboard(void)
{
/* We need this assembler code because SDCC __sfr cannot handle 16-bit addresses. And because it is much faster, of course */