drvinfo function

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:

hdl
The handle of the low-level module that the init function returned.
info
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)
#define SPI_FEATURE_DMA_ALIGN   0xFF
      } spi_drvinfo_t; 
  

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