mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-02-04 20:51:36 +00:00
cpukit/spi: Allow driver specific ioctl
This allows a SPI driver to add a hardware specific ioctl.
This commit is contained in:
@@ -141,6 +141,13 @@ struct spi_bus {
|
||||
* devices.
|
||||
*/
|
||||
uint16_t delay_usecs;
|
||||
|
||||
/**
|
||||
* @brief Driver specific ioctl.
|
||||
*
|
||||
* @param[in] bus The bus control.
|
||||
*/
|
||||
int (*ioctl)(spi_bus *bus, ioctl_command_t command, void *arg);
|
||||
};
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user