Ignore:
Timestamp:
2017-10-04T17:39:48Z (8 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
c188c62
Parents:
7e55bed7
Message:

Convert CUDA driver to DDF.

File:
1 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/adb/cuda_adb/cuda_adb.h

    r7e55bed7 re27e36e  
    3737#define CUDA_ADB_H_
    3838
     39#include <adt/list.h>
    3940#include <async.h>
     41#include <ddf/driver.h>
    4042#include <fibril_synch.h>
    4143#include <loc.h>
     
    5557};
    5658
     59/** ADB bus device */
    5760typedef struct {
    58         service_id_t service_id;
     61        ddf_fun_t *fun;
    5962        async_sess_t *client_sess;
     63        link_t lcuda;
     64        struct cuda *cuda;
    6065} adb_dev_t;
    6166
    62 typedef struct {
     67/** CUDA ADB bus */
     68typedef struct cude {
    6369        struct cuda_regs *regs;
    6470        uintptr_t cuda_physical;
     71        ddf_dev_t *dev;
    6572
    6673        uint8_t rcv_buf[CUDA_RCV_BUF_SIZE];
     
    7178        fibril_mutex_t dev_lock;
    7279
    73         adb_dev_t adb_dev[ADB_MAX_ADDR];
     80        list_t devs;
     81        adb_dev_t *addr_dev[ADB_MAX_ADDR];
    7482} cuda_t;
     83
     84extern int cuda_add(cuda_t *);
     85extern int cuda_remove(cuda_t *);
     86extern int cuda_gone(cuda_t *);
    7587
    7688#endif
Note: See TracChangeset for help on using the changeset viewer.