Changeset 6ab7f3e9 in mainline for uspace/drv/ohci/root_hub.c


Ignore:
Timestamp:
2011-05-29T21:53:34Z (14 years ago)
Author:
Matus Dekanek <smekideki@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
98e15b1
Parents:
5c1a65e
Message:

some code tiding

File:
1 edited

Legend:

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

    r5c1a65e r6ab7f3e9  
    117117 */
    118118static const uint32_t hub_clear_feature_by_writing_one_mask =
    119    RHS_CLEAR_PORT_POWER;
     119    RHS_CLEAR_PORT_POWER;
    120120
    121121/**
     
    412412        request->transfered_size = 4;
    413413        uint32_t data = instance->registers->rh_port_status[port - 1];
    414         memcpy(request->data_buffer,&data,4);
     414        memcpy(request->data_buffer, &data, 4);
    415415#if 0
    416416        int i;
     
    445445        uint32_t data = mask & instance->registers->rh_status;
    446446        //uint32_buffer[0] = mask & instance->registers->rh_status;
    447         memcpy(request->data_buffer,&data,4);
     447        memcpy(request->data_buffer, &data, 4);
    448448
    449449        return EOK;
     
    499499            | (1 << (USB_HUB_FEATURE_C_HUB_OVER_CURRENT + 16));
    500500        bzero(bitmap, instance->interrupt_mask_size);
    501         if ((instance->registers->rh_status & mask) !=0 ) {
     501        if ((instance->registers->rh_status & mask) != 0) {
    502502                bitmap[0] = 1;
    503503        }
     
    925925 * @return
    926926 */
    927 static int process_interrupt_mask_in_instance(rh_t *instance, usb_transfer_batch_t * request) {
     927static int process_interrupt_mask_in_instance(rh_t *instance,
     928    usb_transfer_batch_t * request) {
    928929        memcpy(request->data_buffer, instance->interrupt_buffer,
    929930            instance->interrupt_mask_size);
     
    945946 * @return
    946947 */
    947 static bool is_zeros(void * buffer, size_t size) {
     948static bool is_zeros(void *buffer, size_t size) {
    948949        if (!buffer) return true;
    949950        if (!size) return true;
Note: See TracChangeset for help on using the changeset viewer.