Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/include/dev_iface.h

    r83a2f43 r7a252ec8  
    3636#define LIBDRV_DEV_IFACE_H_
    3737
    38 #include <ipc/common.h>
    39 #include <ipc/dev_iface.h>
     38#include "driver.h"
    4039
    41 /*
    42  * Device interface
    43  */
    44 
    45 struct ddf_fun;
    46 
    47 /*
    48  * First two parameters: device and interface structure registered by the
    49  * devices driver.
    50  */
    51 typedef void remote_iface_func_t(struct ddf_fun *, void *, ipc_callid_t,
    52     ipc_call_t *);
    53 typedef remote_iface_func_t *remote_iface_func_ptr_t;
    54 typedef void remote_handler_t(struct ddf_fun *, ipc_callid_t, ipc_call_t *);
    55 
    56 typedef struct {
    57         size_t method_count;
    58         remote_iface_func_ptr_t *methods;
    59 } remote_iface_t;
    60 
    61 typedef struct {
    62         remote_iface_t *ifaces[DEV_IFACE_COUNT];
    63 } iface_dipatch_table_t;
    64 
    65 extern remote_iface_t *get_remote_iface(int);
    66 extern remote_iface_func_ptr_t get_remote_method(remote_iface_t *, sysarg_t);
    67 
    68 
    69 extern bool is_valid_iface_idx(int);
     40/* TODO declare device interface structures here */
    7041
    7142#endif
Note: See TracChangeset for help on using the changeset viewer.