Changeset 0feaae4 in mainline for uspace/drv/bus/usb/usbmast/main.c


Ignore:
Timestamp:
2011-07-02T17:21:50Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
239e7e10
Parents:
2429e4a
Message:

Factor out standard SCSI code from usbmast to a separate SCSI library.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbmast/main.c

    r2429e4a r0feaae4  
    4141#include <str_error.h>
    4242#include "cmds.h"
    43 #include "scsi.h"
    4443#include "mast.h"
    4544
     
    107106            (size_t) dev->pipes[BULK_OUT_EP].descriptor->max_packet_size);
    108107
     108/*      usb_log_debug("Get LUN count...\n");
    109109        size_t lun_count = usb_masstor_get_lun_count(dev);
    110 
     110  */ size_t lun_count=1;
     111        usb_log_debug("Inquire...\n");
    111112        usb_massstor_inquiry_result_t inquiry;
    112113        rc = usb_massstor_inquiry(dev, BULK_IN_EP, BULK_OUT_EP, &inquiry);
    113114        if (rc != EOK) {
    114                 usb_log_warning("Failed to inquiry device `%s': %s.\n",
     115                usb_log_warning("Failed to inquire device `%s': %s.\n",
    115116                    dev->ddf_dev->name, str_error(rc));
    116117                return EOK;
Note: See TracChangeset for help on using the changeset viewer.