Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/c/include/ipc/devman.h

    r8b1e15ac r47a7174f  
    3030 * @{
    3131 */
    32 
     32 
    3333#ifndef LIBC_IPC_DEVMAN_H_
    3434#define LIBC_IPC_DEVMAN_H_
    3535
    36 #include <ipc/common.h>
    3736#include <adt/list.h>
    38 #include <malloc.h>
    39 #include <mem.h>
     37#include <ipc/ipc.h>
     38#include <stdlib.h>
     39#include <stdio.h>
     40#include <str.h>
    4041
    41 #define DEVMAN_NAME_MAXLEN  256
     42#define DEVMAN_NAME_MAXLEN 256
    4243
    4344typedef sysarg_t devman_handle_t;
    44 
    45 typedef enum {
    46         /** Invalid value for debugging purposes */
    47         fun_invalid = 0,
    48         /** Function to which child devices attach */
    49         fun_inner,
    50         /** Fuction exported to external clients (leaf function) */
    51         fun_exposed
    52 } fun_type_t;
    5345
    5446/** Ids of device models used for device-to-driver matching.
     
    7567} match_id_list_t;
    7668
    77 static inline match_id_t *create_match_id(void)
     69
     70static inline match_id_t * create_match_id()
    7871{
    7972        match_id_t *id = malloc(sizeof(match_id_t));
     
    9285}
    9386
    94 static inline void add_match_id(match_id_list_t *ids, match_id_t *id)
     87static inline void add_match_id(match_id_list_t *ids, match_id_t *id) 
    9588{
    9689        match_id_t *mid = NULL;
    97         link_t *link = ids->ids.next;
     90        link_t *link = ids->ids.next;   
    9891       
    9992        while (link != &ids->ids) {
     
    10598        }
    10699       
    107         list_insert_before(&id->link, link);
     100        list_insert_before(&id->link, link);   
    108101}
    109102
     
    136129typedef enum {
    137130        DEVMAN_DRIVER_REGISTER = IPC_FIRST_USER_METHOD,
    138         DEVMAN_ADD_FUNCTION,
     131        DEVMAN_ADD_CHILD_DEVICE,
    139132        DEVMAN_ADD_MATCH_ID,
    140133        DEVMAN_ADD_DEVICE_TO_CLASS
Note: See TracChangeset for help on using the changeset viewer.