mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-05 05:01:38 +00:00
dev/sc16is752: Add set/get EFCR IO controls
This commit is contained in:
@@ -400,6 +400,12 @@ static int sc16is752_ioctl(
|
||||
case SC16IS752_GET_IOSTATE:
|
||||
read_reg(ctx, SC16IS752_IOSTATE, (uint8_t *)buffer, 1);
|
||||
break;
|
||||
case SC16IS752_SET_EFCR:
|
||||
write_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
|
||||
break;
|
||||
case SC16IS752_GET_EFCR:
|
||||
read_reg(ctx, SC16IS752_EFCR, (uint8_t *)buffer, 1);
|
||||
break;
|
||||
case TIOCMGET:
|
||||
sc16is752_get_modem_bits(ctx, (int *)buffer);
|
||||
break;
|
||||
|
||||
@@ -279,6 +279,11 @@ rtems_status_code sc16is752_spi_create(
|
||||
*/
|
||||
#define SC16IS752_SET_IOSTATE _IOW('d', 3, uint8_t)
|
||||
|
||||
/**
|
||||
* @brief Set the EFCR register.
|
||||
*/
|
||||
#define SC16IS752_SET_EFCR _IOW('d', 4, uint8_t)
|
||||
|
||||
/**
|
||||
* @brief Returns non-zero in case the sleep mode is enabled, otherwise zero.
|
||||
*/
|
||||
@@ -299,6 +304,11 @@ rtems_status_code sc16is752_spi_create(
|
||||
*/
|
||||
#define SC16IS752_GET_IOSTATE _IOR('d', 3, uint8_t)
|
||||
|
||||
/**
|
||||
* @brief Read the EFCR register.
|
||||
*/
|
||||
#define SC16IS752_GET_EFCR _IOR('d', 4, uint8_t)
|
||||
|
||||
/**
|
||||
* @brief Bits for the IOCONTROL register.
|
||||
* @{
|
||||
|
||||
Reference in New Issue
Block a user