511 |
mach_port_t device) |
mach_port_t device) |
512 |
{ |
{ |
513 |
struct tty_status ttystat; |
struct tty_status ttystat; |
514 |
int count = TTY_STATUS_COUNT; |
size_t count = TTY_STATUS_COUNT; |
515 |
error_t err = 0; |
error_t err = 0; |
516 |
|
|
517 |
if (replyport != phys_reply) |
if (replyport != phys_reply) |
593 |
if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL) |
if (!(state->c_cflag & CIGNORE) && phys_device != MACH_PORT_NULL) |
594 |
{ |
{ |
595 |
struct tty_status ttystat; |
struct tty_status ttystat; |
596 |
int cnt = TTY_STATUS_COUNT; |
size_t cnt = TTY_STATUS_COUNT; |
597 |
|
|
598 |
/* Find the current state. */ |
/* Find the current state. */ |
599 |
device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat, &cnt); |
device_get_status (phys_device, TTY_STATUS, (dev_status_t) &ttystat, &cnt); |
650 |
devio_mdmctl (int how, int bits) |
devio_mdmctl (int how, int bits) |
651 |
{ |
{ |
652 |
int oldbits, newbits; |
int oldbits, newbits; |
653 |
int cnt; |
size_t cnt; |
654 |
if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC)) |
if ((how == MDMCTL_BIS) || (how == MDMCTL_BIC)) |
655 |
{ |
{ |
656 |
cnt = TTY_MODEM_COUNT; |
cnt = TTY_MODEM_COUNT; |
676 |
static error_t |
static error_t |
677 |
devio_mdmstate (int *state) |
devio_mdmstate (int *state) |
678 |
{ |
{ |
679 |
int bits, cnt; |
int bits; |
680 |
|
size_t cnt = TTY_MODEM_COUNT; |
|
cnt = TTY_MODEM_COUNT; |
|
681 |
device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt); |
device_get_status (phys_device, TTY_MODEM, (dev_status_t) &bits, &cnt); |
682 |
if (cnt == TTY_MODEM_COUNT) |
if (cnt == TTY_MODEM_COUNT) |
683 |
*state = bits; |
*state = bits; |