Changeset 153cc76a in mainline for uspace/lib/drv


Ignore:
Timestamp:
2011-12-23T16:42:22Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
7e1b130
Parents:
4291215 (diff), 2f0dd2a (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the (diff) links above to see all the changes relative to each parent.
Message:

Mainline changes.

Location:
uspace/lib/drv
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/drv/generic/driver.c

    r4291215 r153cc76a  
    198198                pseudocode = &default_pseudocode;
    199199       
    200         int res = register_irq(irq, dev->handle, ctx->id, pseudocode);
     200        int res = irq_register(irq, dev->handle, ctx->id, pseudocode);
    201201        if (res != EOK) {
    202202                remove_interrupt_context(&interrupt_contexts, ctx);
     
    211211        interrupt_context_t *ctx = find_interrupt_context(&interrupt_contexts,
    212212            dev, irq);
    213         int res = unregister_irq(irq, dev->handle);
     213        int res = irq_unregister(irq, dev->handle);
    214214       
    215215        if (ctx != NULL) {
  • uspace/lib/drv/include/ops/hw_res.h

    r4291215 r153cc76a  
    11/*
    2  * Copyright (c) 2010 Lenka Trochtova
     2 * Copyright (c) 2010 Lenka Trochtova
     3 * Copyright (c) 2011 Jan Vesely
    34 * All rights reserved.
    45 *
     
    4243
    4344typedef struct {
    44          hw_resource_list_t *(*get_resource_list)(ddf_fun_t *);
    45          bool (*enable_interrupt)(ddf_fun_t *);
     45        hw_resource_list_t *(*get_resource_list)(ddf_fun_t *);
     46        bool (*enable_interrupt)(ddf_fun_t *);
     47        int (*dma_channel_setup)(ddf_fun_t *, unsigned, uint32_t, uint16_t, uint8_t);
    4648} hw_res_ops_t;
    4749
Note: See TracChangeset for help on using the changeset viewer.