Changeset 084ff99 in mainline for uspace/lib/libdrv/include/driver.h


Ignore:
Timestamp:
2010-03-14T09:14:50Z (14 years ago)
Author:
Lenka Trochtova <trochtova.lenka@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7707954
Parents:
67ba309
Message:

passing device to driver (parts of code)

File:
1 edited

Legend:

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

    r67ba309 r084ff99  
    3232/** @file
    3333 */
    34 
    3534#ifndef LIBDRV_DRIVER_H_
    3635#define LIBDRV_DRIVER_H_
    3736
    38 typedef enum {
    39         DRIVER_DEVMAN = 1,
    40         DRIVER_CLIENT,
    41         DRIVER_DRIVER
    42 } driver_interface_t;
     37
     38#include <adt/list.h>
     39
     40
    4341
    4442typedef struct device {
    45         int parent_handle;
     43        long handle;
    4644        ipcarg_t parent_phone; 
     45       
    4746        // TODO add more items - parent bus type etc.
    48         int handle;     
     47       
     48        link_t link;
    4949} device_t;
    5050
Note: See TracChangeset for help on using the changeset viewer.