#ifndef __VXB_SM2130_SPI_DEV_H #define __VXB_SM2130_SPI_DEV_H #define SPI_DEV_SM2130 "SM2130" #define SM2310_DEV_NAME "/sm2130" #define FIO_XFER_TX (1) #define FIO_XFER_RX (2) #define FIO_XFER (200) struct sm2130_xfer { UINT8 type; UINT8 reg; UINT16 val; }; typedef struct sm2130_xfer SM2130_XFER; typedef struct _spi_1553b_drv_ctrl { VXB_DEVICE_ID pDev; int cs; int mode; unsigned int freq; const char *devName; int refcount; int drvNode; void *devHandle; INT32 (*read)(VXB_DEVICE_ID pDev, UINT8 cmd); STATUS (*write)(VXB_DEVICE_ID pDev, UINT8 cmd, UINT16 var); SEM_ID muteSem; /* operation semaphore */ VXB_SPI_MAST_SPEC *specialInfo; } SM2130_SPI_DEV; #endif