/* Retrieves a 4-byte media signature, which indicates manufacturer, capacity, and some other details.  */
static int alauda_get_media_signature(struct us_data *us, unsigned char *data)
/* Retrieves a 4-byte media signature, which indicates manufacturer, capacity, and some other details.  */
static int alauda_get_media_signature(struct us_data *us, unsigned char *data)
{
	unsigned char command;
	if (MEDIA_PORT(us) == ALAUDA_PORT_XD)
		command = ALAUDA_GET_XD_MEDIA_SIG;
	else
		command = ALAUDA_GET_SM_MEDIA_SIG;
	return usb_stor_ctrl_transfer(us, us->recv_ctrl_pipe,
		command, 0xc0, 0, 0, data, 4);
}