scom_access
static void raw_convert_status(struct scom_access *acc, uint32_t status)
struct scom_access acc;
if (copy_from_user(&acc, argp, sizeof(struct scom_access)))
if (copy_to_user(argp, &acc, sizeof(struct scom_access)))
struct scom_access acc;
if (copy_from_user(&acc, argp, sizeof(struct scom_access)))
if (copy_to_user(argp, &acc, sizeof(struct scom_access)))
#define FSI_SCOM_READ _IOWR('s', 0x01, struct scom_access)
#define FSI_SCOM_WRITE _IOWR('s', 0x02, struct scom_access)