Ignore:
Timestamp:
2012-06-29T13:02:14Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
722912e
Parents:
ba72f2b (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

Trivial conflicts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hw/bus/cuda_adb/cuda_adb.c

    rba72f2b r6843a9c  
    104104enum {
    105105        ADB_MAX_ADDR    = 16
     106};
     107
     108static irq_pio_range_t cuda_ranges[] = {
     109        {
     110                .base = 0,
     111                .size = sizeof(cuda_t)
     112        }
    106113};
    107114
     
    130137
    131138static irq_code_t cuda_irq_code = {
     139        sizeof(cuda_ranges) / sizeof(irq_pio_range_t),
     140        cuda_ranges,
    132141        sizeof(cuda_cmds) / sizeof(irq_cmd_t),
    133142        cuda_cmds
     
    154163        }
    155164
    156         rc = loc_server_register(NAME, cuda_connection);
     165        async_set_client_connection(cuda_connection);
     166        rc = loc_server_register(NAME);
    157167        if (rc < 0) {
    158168                printf(NAME ": Unable to register server.\n");
     
    254264                return -1;
    255265       
    256         if (sysinfo_get_value("cuda.address.kernel", &(instance->cuda_kernel)) != EOK)
    257                 return -1;
    258        
    259266        void *vaddr;
    260267        if (pio_enable((void *) instance->cuda_physical, sizeof(cuda_t), &vaddr) != 0)
     
    273280        pio_write_8(&dev->ier, IER_CLR | ALL_INT);
    274281
    275         cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_kernel)->ifr;
     282        cuda_irq_code.ranges[0].base = (uintptr_t) instance->cuda_physical;
     283        cuda_irq_code.cmds[0].addr = (void *) &((cuda_t *) instance->cuda_physical)->ifr;
    276284        async_set_interrupt_received(cuda_irq_handler);
    277         register_irq(10, device_assign_devno(), 0, &cuda_irq_code);
     285        irq_register(10, device_assign_devno(), 0, &cuda_irq_code);
    278286
    279287        /* Enable SR interrupt. */
Note: See TracChangeset for help on using the changeset viewer.