TTY_DEVICE
case TTY_DEVICE:
#define device2tty(d) ((d)->type == TTY_DEVICE ? (struct ttydevice *)d : NULL)
TTY_DEVICE,
if (type == TTY_DEVICE) {