Ignore:
Timestamp:
2017-12-15T17:21:49Z (8 years ago)
Author:
Petr Mánek <petr.manek@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
73b0773
Parents:
a8723748
Message:

usbdiag: finalize IPC ops for tmon, simple demo waiting for test

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usbdiag/include/usb/diag/iface.h

    ra8723748 r64d138b  
    3131 */
    3232/** @file
    33  * Testing stuff
     33 * @brief USB diagnostic device communication interface.
    3434 */
     35#ifndef LIBUSBDIAG_IFACE_H_
     36#define LIBUSBDIAG_IFACE_H_
    3537
    3638#include <async.h>
    37 #include <usb/diag/diag.h>
     39#include <ddf/driver.h>
    3840
    39 int usb_diag_test(int x, int *out)
    40 {
    41         sysarg_t _out;
    42         async_sess_t *session = NULL;
    43         async_exch_t *exch = async_exchange_begin(session);
    44         const int rc = async_req_1_1(exch, USB_DIAG_IN_TEST, x, &_out);
    45         async_exchange_end(exch);
     41async_sess_t *usb_diag_connect(devman_handle_t);
     42void usb_diag_disconnect(async_sess_t*);
     43int usb_diag_test(async_exch_t*, int, int*);
    4644
    47         if (out)
    48                 *out = (int) _out;
     45/** USB diagnostic device communication interface. */
     46typedef struct {
     47        int (*test)(ddf_fun_t*, int, int*);
     48} usb_diag_iface_t;
    4949
    50         return rc;
    51 }
    52 
     50#endif
    5351/**
    5452 * @}
Note: See TracChangeset for help on using the changeset viewer.