Changeset eb1a2f4 in mainline for uspace/lib/usb/include


Ignore:
Timestamp:
2011-02-22T23:30:56Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
3b5d1535, a9c674e0
Parents:
dbe25f1 (diff), 664af708 (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:

Merge mainline changes (DDF refactoring)

This merge includes DDF refactoring that brought multifunctional devices
(i.e. ddf_dev_t and ddf_fun_t). Please, see ticket #295 at HelenOS
upstream Trac.

The conflicts themselves were easy to solve (merely several renamings).

Changes to USB subsystem:

  • drivers uses ddf_dev_t and ddf_fun_t
  • different signatures of many library functions
  • several hacks around communication with parent device (now the communication is clearer and somehow what we have now is hack about other hacks)
    • will repair and clean later
  • maybe added some extra debugging messages (the diff has about 240K, and I admit I have no energy to double check that)

WARNING:

  • the diff is VERY long, recommended is viewing partial diffs of the merge (i.e. merges in mainline branch that lead to the parent one)
  • merging with your branches might involve huge renamings, sorry, no other way is possible

BUGS:

  • hub driver will not work (no function created)

GOOD NEWS:

  • QEMU keyboard seems to work with QEMU 0.13 and 0.14
  • we are up-to-date with mainline again
Location:
uspace/lib/usb/include/usb
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/include/usb/ddfiface.h

    rdbe25f1 reb1a2f4  
    4040#include <usb_iface.h>
    4141
    42 int usb_iface_get_hc_handle_hub_impl(device_t *, devman_handle_t *);
    43 int usb_iface_get_address_hub_impl(device_t *, devman_handle_t,
     42int usb_iface_get_hc_handle_hub_impl(ddf_fun_t *, devman_handle_t *);
     43int usb_iface_get_address_hub_impl(ddf_fun_t *, devman_handle_t,
    4444    usb_address_t *);
    4545extern usb_iface_t usb_iface_hub_impl;
    4646
    47 int usb_iface_get_hc_handle_hub_child_impl(device_t *, devman_handle_t *);
    48 int usb_iface_get_address_hub_child_impl(device_t *, devman_handle_t,
     47int usb_iface_get_hc_handle_hub_child_impl(ddf_fun_t *, devman_handle_t *);
     48int usb_iface_get_address_hub_child_impl(ddf_fun_t *, devman_handle_t,
    4949    usb_address_t *);
    5050extern usb_iface_t usb_iface_hub_child_impl;
    5151
    52 int usb_iface_get_hc_handle_hc_impl(device_t *, devman_handle_t *);
     52int usb_iface_get_hc_handle_hc_impl(ddf_fun_t *, devman_handle_t *);
    5353
    5454
  • uspace/lib/usb/include/usb/hub.h

    rdbe25f1 reb1a2f4  
    3939#include <usb/usbdevice.h>
    4040
    41 int usb_hc_new_device_wrapper(device_t *, usb_hc_connection_t *, usb_speed_t,
    42     int (*)(int, void *), int, void *, usb_address_t *, devman_handle_t *);
     41int usb_hc_new_device_wrapper(ddf_dev_t *, usb_hc_connection_t *, usb_speed_t,
     42    int (*)(int, void *), int, void *,
     43    usb_address_t *, devman_handle_t *,
     44    ddf_dev_ops_t *, void *, ddf_fun_t **);
    4345
    4446/** Info about device attached to host controller.
  • uspace/lib/usb/include/usb/pipes.h

    rdbe25f1 reb1a2f4  
    4141#include <usb/descriptor.h>
    4242#include <ipc/devman.h>
    43 #include <driver.h>
     43#include <ddf/driver.h>
    4444
    4545/**
     
    120120    usb_device_connection_t *, usb_hc_connection_t *);
    121121int usb_device_connection_initialize_from_device(usb_device_connection_t *,
    122     device_t *);
     122    ddf_dev_t *);
    123123int usb_device_connection_initialize(usb_device_connection_t *,
    124124    devman_handle_t, usb_address_t);
    125125
    126 int usb_device_get_assigned_interface(device_t *);
     126int usb_device_get_assigned_interface(ddf_dev_t *);
    127127
    128128int usb_endpoint_pipe_initialize(usb_endpoint_pipe_t *,
  • uspace/lib/usb/include/usb/recognise.h

    rdbe25f1 reb1a2f4  
    5050int usb_device_create_match_ids(usb_endpoint_pipe_t *, match_id_list_t *);
    5151
    52 int usb_device_register_child_in_devman(usb_address_t address, devman_handle_t hc_handle,
    53     device_t *parent, devman_handle_t *child_handle);
     52int usb_device_register_child_in_devman(usb_address_t, devman_handle_t,
     53    ddf_dev_t *, devman_handle_t *, ddf_dev_ops_t *, void *, ddf_fun_t **);
    5454
    5555#endif
  • uspace/lib/usb/include/usb/usbdevice.h

    rdbe25f1 reb1a2f4  
    3838#include <sys/types.h>
    3939#include <ipc/devman.h>
    40 #include <driver.h>
     40#include <ddf/driver.h>
    4141#include <bool.h>
    4242#include <usb/usb.h>
     
    5353
    5454int usb_hc_connection_initialize_from_device(usb_hc_connection_t *,
    55     device_t *);
     55    ddf_dev_t *);
    5656int usb_hc_connection_initialize(usb_hc_connection_t *, devman_handle_t);
    5757
Note: See TracChangeset for help on using the changeset viewer.