Changeset 9a7e5b4 in mainline for uspace/drv


Ignore:
Timestamp:
2011-04-07T08:19:03Z (15 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
41c1f7b
Parents:
dcaf819 (diff), 506d330 (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:

More OHCI structures and refactoring. Add per endpoint toggle reset

Location:
uspace/drv
Files:
2 added
6 edited

Legend:

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

    rdcaf819 r9a7e5b4  
    4848#include "ohci_regs.h"
    4949#include "root_hub.h"
     50#include "hw_struct/hcca.h"
    5051
    5152typedef struct hc {
  • uspace/drv/ohci/hw_struct/endpoint_descriptor.h

    rdcaf819 r9a7e5b4  
    3232 * @brief OHCI driver
    3333 */
    34 #ifndef DRV_OHCI_ENDPOINT_DESCRIPTOR_H
    35 #define DRV_OHCI_ENDPOINT_DESCRIPTOR_H
     34#ifndef DRV_OHCI_HW_STRUCT_ENDPOINT_DESCRIPTOR_H
     35#define DRV_OHCI_HW_STRUCT_ENDPOINT_DESCRIPTOR_H
    3636
    3737#include <stdint.h>
     38
     39#include "completion_codes.h"
    3840
    3941typedef struct ed {
  • uspace/drv/ohci/hw_struct/iso_transfer_descriptor.h

    rdcaf819 r9a7e5b4  
    3232 * @brief OHCI driver
    3333 */
    34 #ifndef DRV_OHCI_ISO_TRANSFER_DESCRIPTOR_H
    35 #define DRV_OHCI_ISO_TRANSFER_DESCRIPTOR_H
     34#ifndef DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H
     35#define DRV_OHCI_HW_STRUCT_ISO_TRANSFER_DESCRIPTOR_H
    3636
    3737#include <stdint.h>
     38
     39#include "completion_codes.h"
    3840
    3941typedef struct itd {
  • uspace/drv/ohci/hw_struct/transfer_descriptor.h

    rdcaf819 r9a7e5b4  
    3232 * @brief OHCI driver
    3333 */
    34 #ifndef DRV_OHCI_TRANSFER_DESCRIPTOR_H
    35 #define DRV_OHCI_TRANSFER_DESCRIPTOR_H
     34#ifndef DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
     35#define DRV_OHCI_HW_STRUCT_TRANSFER_DESCRIPTOR_H
    3636
    3737#include <stdint.h>
     38
     39#include "completion_codes.h"
    3840
    3941typedef struct td {
     
    6668 * @}
    6769 */
    68 
  • uspace/drv/ohci/iface.c

    rdcaf819 r9a7e5b4  
    163163            usb_str_speed(speed), direction, size, max_packet_size, interval);
    164164        // TODO use real endpoint here!
    165         return usb_endpoint_manager_register_ep(&hc->ep_manager,
    166             address, endpoint, direction, NULL, 0);
     165        return usb_endpoint_manager_register_ep(&hc->ep_manager,NULL, 0);
    167166}
    168167/*----------------------------------------------------------------------------*/
  • uspace/drv/uhci-hcd/iface.c

    rdcaf819 r9a7e5b4  
    168168        if (ep == NULL)
    169169                return ENOMEM;
    170         ret = endpoint_init(ep, transfer_type, speed, max_packet_size);
     170        ret = endpoint_init(ep, address, endpoint, direction,
     171            transfer_type, speed, max_packet_size);
    171172        if (ret != EOK) {
    172173                free(ep);
     
    178179            usb_str_speed(speed), direction, size, max_packet_size, interval);
    179180
    180         ret = usb_endpoint_manager_register_ep(&hc->ep_manager,
    181             address, endpoint, direction, ep, size);
     181        ret = usb_endpoint_manager_register_ep(&hc->ep_manager, ep, size);
    182182        if (ret != EOK) {
    183183                endpoint_destroy(ep);
Note: See TracChangeset for help on using the changeset viewer.