return 0;
}
-
/*****************************************************************************
*
* pseudo signature:
return 0;
}
-
static int API_dev_open(va_list ap)
{
struct device_info *di;
return err;
}
-
static int API_dev_close(va_list ap)
{
struct device_info *di;
return err;
}
-
/*
* pseudo signature:
*
return err;
}
-
/*
* pseudo signature:
*
return 0;
}
-
/*
* pseudo signature:
*
#define errf(fmt, args...) do { printf("ERROR @ %s(): ", __func__); printf(fmt, ##args); } while (0)
-
#define ENUM_IDE 0
#define ENUM_USB 1
#define ENUM_SCSI 2
return found;
}
-
/* returns: ENUM_IDE, ENUM_USB etc. based on struct blk_desc */
static int dev_stor_type(struct blk_desc *dd)
return ENUM_MAX;
}
-
/* returns: 0/1 whether cookie points to some device in this group */
static int dev_is_stor(int type, struct device_info *di)
return (dev_stor_type(di->cookie) == type) ? 1 : 0;
}
-
static int dev_enum_stor(int type, struct device_info *di)
{
int found = 0, more = 0;
return 0;
}
-
int dev_open_stor(void *cookie)
{
int type = dev_stor_type(cookie);
return API_ENODEV;
}
-
int dev_close_stor(void *cookie)
{
/*
return 0;
}
-
lbasize_t dev_read_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
{
int type;
#endif /* defined(CONFIG_BLK) */
}
-
lbasize_t dev_write_stor(void *cookie, void *buf, lbasize_t len, lbastart_t start)
{
struct blk_desc *dd = (struct blk_desc *)cookie;