Changeset e6a78b9 in mainline for uspace/drv


Ignore:
Timestamp:
2012-06-29T15:31:44Z (14 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
9432f08
Parents:
34ab31c0 (diff), 0bbd13e (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:

Merge mainline changes.

Location:
uspace/drv/bus
Files:
6 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/isa/isa.c

    r34ab31c0 re6a78b9  
    201201
    202202        isa_fun_t *fun = ddf_fun_data_alloc(fnode, sizeof(isa_fun_t));
    203         if (fun == NULL)
     203        if (fun == NULL) {
     204                ddf_fun_destroy(fnode);
    204205                return NULL;
     206        }
    205207
    206208        fibril_mutex_initialize(&fun->mutex);
     
    552554
    553555        isa_fun_t *fun = isa_fun_create(isa, fun_name);
     556        free(fun_name);
    554557        if (fun == NULL) {
    555                 free(fun_name);
    556558                return NULL;
    557559        }
  • uspace/drv/bus/usb/ehci/res.c

    r34ab31c0 re6a78b9  
    109109        return EOK;
    110110}
    111 /*----------------------------------------------------------------------------*/
     111
    112112/** Calls the PCI driver with a request to enable interrupts
    113113 *
     
    127127        return enabled ? EOK : EIO;
    128128}
    129 /*----------------------------------------------------------------------------*/
     129
    130130/** Implements BIOS hands-off routine as described in EHCI spec
    131131 *
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    r34ab31c0 re6a78b9  
    3737#include <assert.h>
    3838#include <malloc.h>
     39#include <unistd.h>
    3940#include <errno.h>
    4041#include <mem.h>
  • uspace/drv/bus/usb/uhci/res.c

    r34ab31c0 re6a78b9  
    8686        return EOK;
    8787}
    88 /*----------------------------------------------------------------------------*/
     88
    8989/** Call the PCI driver with a request to enable interrupts
    9090 *
     
    105105        return enabled ? EOK : EIO;
    106106}
    107 /*----------------------------------------------------------------------------*/
     107
    108108/** Call the PCI driver with a request to clear legacy support register
    109109 *
  • uspace/drv/bus/usb/uhci/utils/malloc32.h

    r34ab31c0 re6a78b9  
    3636
    3737#include <assert.h>
     38#include <unistd.h>
    3839#include <errno.h>
    3940#include <malloc.h>
     
    9899static inline void * get_page(void)
    99100{
    100         void *address = as_area_create((void *) -1, UHCI_REQUIRED_PAGE_SIZE,
     101        void *address = as_area_create(AS_AREA_ANY, UHCI_REQUIRED_PAGE_SIZE,
    101102            AS_AREA_READ | AS_AREA_WRITE);
    102         if (address == (void *) -1)
     103        if (address == AS_MAP_FAILED)
    103104                return NULL;
    104105       
  • uspace/drv/bus/usb/usbmast/main.c

    r34ab31c0 re6a78b9  
    302302       
    303303        (void) async_share_out_finalize(callid, &comm_buf);
    304         if (comm_buf == (void *) -1) {
     304        if (comm_buf == AS_MAP_FAILED) {
    305305                async_answer_0(callid, EHANGUP);
    306306                return;
Note: See TracChangeset for help on using the changeset viewer.