Changeset b7b7898 in mainline for uspace/drv/bus/usb/usbdiag/tests.h


Ignore:
Timestamp:
2017-12-22T12:03:16Z (6 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
96c416a
Parents:
2986763
git-author:
Petr Mánek <petr.manek@…> (2017-12-22 12:02:50)
git-committer:
Petr Mánek <petr.manek@…> (2017-12-22 12:03:16)
Message:

usbdiag: refactoring

Reconciliated the usb_diag and usbdiag prefix in favor of the latter. Removed a ton of copy-pasta code for the burst tests in favor of single generic static burst test for every direction, which is then called by individual functions for different endpoint type. This also allowed to get rid of the ugly translation macros in device.c. Deleted unused usbdiag.h header file. Refactored the remote interface to comply with all aforementioned modifications.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/usbdiag/tests.h

    r2986763 rb7b7898  
    3434 */
    3535
    36 #ifndef USB_DIAG_TESTS_H_
    37 #define USB_DIAG_TESTS_H_
     36#ifndef USBDIAG_TESTS_H_
     37#define USBDIAG_TESTS_H_
    3838
    39 #include "device.h"
     39#include <ddf/driver.h>
    4040
    41 int usb_diag_stress_intr_out(usb_diag_dev_t *, int, size_t);
    42 int usb_diag_stress_intr_in(usb_diag_dev_t *, int, size_t);
    43 int usb_diag_stress_bulk_out(usb_diag_dev_t *, int, size_t);
    44 int usb_diag_stress_bulk_in(usb_diag_dev_t *, int, size_t);
    45 int usb_diag_stress_isoch_out(usb_diag_dev_t *, int, size_t);
    46 int usb_diag_stress_isoch_in(usb_diag_dev_t *, int, size_t);
     41int usbdiag_burst_test_intr_in(ddf_fun_t *, int, size_t);
     42int usbdiag_burst_test_intr_out(ddf_fun_t *, int, size_t);
     43int usbdiag_burst_test_bulk_in(ddf_fun_t *, int, size_t);
     44int usbdiag_burst_test_bulk_out(ddf_fun_t *, int, size_t);
     45int usbdiag_burst_test_isoch_in(ddf_fun_t *, int, size_t);
     46int usbdiag_burst_test_isoch_out(ddf_fun_t *, int, size_t);
    4747
    48 #endif /* USB_DIAG_TESTS_H_ */
     48#endif /* USBDIAG_TESTS_H_ */
    4949
    5050/**
Note: See TracChangeset for help on using the changeset viewer.