Changeset 062b25f in mainline for uspace/drv/bus/usb/ohci/root_hub.h


Ignore:
Timestamp:
2011-07-11T11:27:57Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
01bbbb2
Parents:
c85804f
Message:

OHCI: Root hub: Get rid of allocation in hub descriptor creation.

Still one more to go.
Add some asserts.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/root_hub.h

    rc85804f r062b25f  
    4141#include "batch.h"
    4242
     43#define HUB_DESCRIPTOR_MAX_SIZE 11
     44#define INTERRUPT_BUFFER_MAX_SIZE 2
     45
    4346/**
    4447 * ohci root hub representation
     
    5457        usb_device_descriptors_t descriptors;
    5558        /** interrupt transfer waiting for an actual interrupt to occur */
    56         usb_transfer_batch_t * unfinished_interrupt_transfer;
     59        usb_transfer_batch_t *unfinished_interrupt_transfer;
    5760        /** Interrupt mask of changes
    5861         *
     
    6063         * gives max 2 bytes.
    6164         */
    62         uint8_t interrupt_buffer[2];
     65        uint8_t interrupt_buffer[INTERRUPT_BUFFER_MAX_SIZE];
    6366        /** size of interrupt buffer */
    6467        size_t interrupt_mask_size;
    6568        /** instance`s descriptor*/
    66         uint8_t * hub_descriptor;
     69        uint8_t hub_descriptor[HUB_DESCRIPTOR_MAX_SIZE];
    6770        /** size of hub descriptor */
    6871        size_t descriptor_size;
    69 
    7072
    7173} rh_t;
Note: See TracChangeset for help on using the changeset viewer.