Changeset 03cfda08 in mainline


Ignore:
Timestamp:
2011-05-06T12:47:04Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a58dd620
Parents:
180255f
Message:

Fix OHCI interrupt pseudocode, remove dead code

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/ohci/hc.c

    r180255f r03cfda08  
    428428            instance->registers->interrupt_enable);
    429429        instance->registers->interrupt_enable = I_MI;
    430         /* Disable interrupts */
    431 //      instance->registers->interrupt_disable = I_SF | I_OC;
    432 //      usb_log_debug2("Disabling interrupts: %x.\n",
    433 //          instance->registers->interrupt_disable);
    434 //      instance->registers->interrupt_disable = I_MI;
    435430
    436431        /* Set periodic start to 90% */
     
    503498                instance->interrupt_commands[0].cmd = CMD_MEM_READ_32;
    504499                instance->interrupt_commands[0].dstarg = 1;
    505                 instance->interrupt_commands[0].addr = (void*)
    506                     addr_to_phys((void*)&instance->registers->interrupt_status);
     500                instance->interrupt_commands[0].addr =
     501                    (void*)&instance->registers->interrupt_status;
    507502
    508503                /* Test whether we are the interrupt cause */
     
    519514
    520515                /* Write clean status register */
    521                 instance->interrupt_commands[3].cmd = CMD_PIO_WRITE_A_32;
     516                instance->interrupt_commands[3].cmd = CMD_MEM_WRITE_A_32;
    522517                instance->interrupt_commands[3].srcarg = 1;
    523                 instance->interrupt_commands[3].addr = (void*)
    524                     addr_to_phys((void*)&instance->registers->interrupt_status);
     518                instance->interrupt_commands[3].addr =
     519                    (void*)&instance->registers->interrupt_status;
    525520
    526521                /* Accept interrupt */
Note: See TracChangeset for help on using the changeset viewer.