Changeset ec62681 in mainline


Ignore:
Timestamp:
2011-07-03T10:33:48Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
b361bdd
Parents:
64e6945d
Message:

Remove redundant arguments.

Location:
uspace/drv/bus/usb/usbmast
Files:
4 edited

Legend:

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

    r64e6945d rec62681  
    6666 */
    6767int usb_massstor_inquiry(usb_device_t *dev,
    68     size_t bulk_in_idx, size_t bulk_out_idx,
    6968    usb_massstor_inquiry_result_t *inquiry_result)
    7069{
     
    8180        int rc;
    8281
    83         rc = usb_massstor_data_in(dev, bulk_in_idx, bulk_out_idx,
    84             0xDEADBEEF, 0, (uint8_t *) &inquiry, sizeof(inquiry),
    85             &inq_data, sizeof(inq_data), &response_len);
     82        rc = usb_massstor_data_in(dev, 0xDEADBEEF, 0, (uint8_t *) &inquiry,
     83            sizeof(inquiry), &inq_data, sizeof(inq_data), &response_len);
    8684
    8785        if (rc != EOK) {
  • uspace/drv/bus/usb/usbmast/main.c

    r64e6945d rec62681  
    4444
    4545#define NAME "usbmast"
    46 
    47 #define BULK_IN_EP 0
    48 #define BULK_OUT_EP 1
    4946
    5047#define GET_BULK_IN(dev) ((dev)->pipes[BULK_IN_EP].pipe)
     
    111108        usb_log_debug("Inquire...\n");
    112109        usb_massstor_inquiry_result_t inquiry;
    113         rc = usb_massstor_inquiry(dev, BULK_IN_EP, BULK_OUT_EP, &inquiry);
     110        rc = usb_massstor_inquiry(dev, &inquiry);
    114111        if (rc != EOK) {
    115112                usb_log_warning("Failed to inquire device `%s': %s.\n",
  • uspace/drv/bus/usb/usbmast/mast.c

    r64e6945d rec62681  
    5353/** Request data from mass storage device.
    5454 *
    55  * @param bulk_in_pipe Bulk in pipe to the device.
    56  * @param bulk_out_pipe Bulk out pipe to the device.
    5755 * @param tag Command block wrapper tag (automatically compared with answer).
    5856 * @param lun LUN index.
     
    6563 */
    6664int usb_massstor_data_in(usb_device_t *dev,
    67     size_t bulk_in_pipe_index, size_t bulk_out_pipe_index,
    6865    uint32_t tag, uint8_t lun, void *cmd, size_t cmd_size,
    6966    void *in_buffer, size_t in_buffer_size, size_t *received_size)
     
    7168        int rc;
    7269        size_t act_size;
    73         usb_pipe_t *bulk_in_pipe = dev->pipes[bulk_in_pipe_index].pipe;
    74         usb_pipe_t *bulk_out_pipe = dev->pipes[bulk_out_pipe_index].pipe;
     70        usb_pipe_t *bulk_in_pipe = dev->pipes[BULK_IN_EP].pipe;
     71        usb_pipe_t *bulk_out_pipe = dev->pipes[BULK_OUT_EP].pipe;
    7572
    7673        /* Prepare CBW - command block wrapper */
  • uspace/drv/bus/usb/usbmast/mast.h

    r64e6945d rec62681  
    4343#include <usb/dev/driver.h>
    4444
     45#define BULK_IN_EP 0
     46#define BULK_OUT_EP 1
     47
    4548/** Result of SCSI INQUIRY command.
    4649 * This is already parsed structure, not the original buffer returned by
     
    6063} usb_massstor_inquiry_result_t;
    6164
    62 int usb_massstor_data_in(usb_device_t *dev, size_t, size_t,
    63     uint32_t, uint8_t, void *, size_t, void *, size_t, size_t *);
     65int usb_massstor_data_in(usb_device_t *dev, uint32_t, uint8_t, void *,
     66    size_t, void *, size_t, size_t *);
    6467int usb_massstor_reset(usb_device_t *);
    6568void usb_massstor_reset_recovery(usb_device_t *, size_t, size_t);
    6669int usb_massstor_get_max_lun(usb_device_t *);
    6770size_t usb_masstor_get_lun_count(usb_device_t *);
    68 int usb_massstor_inquiry(usb_device_t *, size_t, size_t,
    69     usb_massstor_inquiry_result_t *);
     71int usb_massstor_inquiry(usb_device_t *, usb_massstor_inquiry_result_t *);
    7072const char *usb_str_masstor_scsi_peripheral_device_type(unsigned);
    7173
Note: See TracChangeset for help on using the changeset viewer.