Changeset c6fe469 in mainline for uspace/drv/ohci/hc.c


Ignore:
Timestamp:
2011-04-10T22:30:59Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
26d46d2
Parents:
7628050
Message:

Add support for INT and BULK transfers

File:
1 edited

Legend:

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

    r7628050 rc6fe469  
    147147                break;
    148148        case USB_TRANSFER_BULK:
     149                instance->registers->control &= ~C_BLE;
     150                transfer_list_add_batch(
     151                    instance->transfers[batch->transfer_type], batch);
    149152                instance->registers->command_status |= CS_BLF;
    150153                usb_log_debug2("Set bulk transfer filled: %x.\n",
    151154                        instance->registers->command_status);
     155                instance->registers->control |= C_BLE;
     156                break;
     157        case USB_TRANSFER_INTERRUPT:
     158        case USB_TRANSFER_ISOCHRONOUS:
     159                instance->registers->control &= ~C_PLE;
     160                transfer_list_add_batch(
     161                    instance->transfers[batch->transfer_type], batch);
     162                instance->registers->control |= C_PLE;
    152163                break;
    153164        default:
Note: See TracChangeset for help on using the changeset viewer.