Changeset 22027b6e in mainline for uspace/lib/drv/include/driver.h


Ignore:
Timestamp:
2011-01-09T20:55:03Z (13 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
80bffdb0, 8b5690f
Parents:
5fdd7c3
Message:

Move dev_iface-related declarations to dev_iface.h.

File:
1 edited

Legend:

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

    r5fdd7c3 r22027b6e  
    4747#include <malloc.h>
    4848
     49#include "dev_iface.h"
     50
    4951struct device;
    5052typedef struct device device_t;
    51 
    52 /*
    53  * Device interface
    54  */
    55 
    56 /*
    57  * First two parameters: device and interface structure registered by the
    58  * devices driver.
    59  */
    60 typedef void remote_iface_func_t(device_t *, void *, ipc_callid_t,
    61     ipc_call_t *);
    62 typedef remote_iface_func_t *remote_iface_func_ptr_t;
    63 typedef void remote_handler_t(device_t *, ipc_callid_t, ipc_call_t *);
    64 
    65 typedef struct {
    66         size_t method_count;
    67         remote_iface_func_ptr_t *methods;
    68 } remote_iface_t;
    69 
    70 typedef struct {
    71         remote_iface_t *ifaces[DEV_IFACE_COUNT];
    72 } iface_dipatch_table_t;
    73 
    74 extern remote_iface_t *get_remote_iface(int);
    75 extern remote_iface_func_ptr_t get_remote_method(remote_iface_t *, sysarg_t);
    7653
    7754/*
     
    137114        link_t link;
    138115};
    139 
    140116
    141117/*
Note: See TracChangeset for help on using the changeset viewer.