#ifndef __VXB_SM2130_SPI_DEV_H #define __VXB_SM2130_SPI_DEV_H #define SPI_DEV_SM2130 "SM2130" #define SPI_DEV_MUTEX_OPT \ (SEM_Q_PRIORITY | SEM_DELETE_SAFE | SEM_INVERSION_SAFE) typedef struct _spi_1553b_drv_ctrl { VXB_DEVICE_ID pDev; int cs; int mode; unsigned int freq; 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