drvinfo function

Updated: April 19, 2023

The drvinfo function gets driver information from the low-level module. The prototype for this function is:

int drvinfo( void *hdl,
             spi_drvinfo_t *info );

The arguments are:

The handle of the low-level module that the init function returned.
A pointer to the driver information structure. This structure is defined as:
typedef struct {
        uint32_t    version;
        char        name[16];   /* Driver name */
        uint32_t    feature;
#define SPI_FEATURE_DMA         (1 << 31)
      } spi_drvinfo_t; 

The function must return EOK if it successfully obtained the driver information.