Changeset 8e5ce07 in mainline


Ignore:
Timestamp:
2011-10-12T16:34:22Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
aa1922c
Parents:
96646a6
Message:

usb: Add bunch of const qualifiers.

We shall need them.

Location:
uspace/lib
Files:
6 edited

Legend:

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

    r96646a6 r8e5ce07  
    5353
    5454int usb_hc_connection_initialize_from_device(usb_hc_connection_t *,
    55     ddf_dev_t *);
     55    const ddf_dev_t *);
    5656int usb_hc_connection_initialize(usb_hc_connection_t *, devman_handle_t);
    5757
  • uspace/lib/usb/src/hc.c

    r96646a6 r8e5ce07  
    5050 */
    5151int usb_hc_connection_initialize_from_device(usb_hc_connection_t *connection,
    52     ddf_dev_t *device)
     52    const ddf_dev_t *device)
    5353{
    5454        assert(connection);
  • uspace/lib/usbdev/include/usb/dev/driver.h

    r96646a6 r8e5ce07  
    167167
    168168int usb_device_retrieve_descriptors(usb_pipe_t *, usb_device_descriptors_t *);
    169 int usb_device_create_pipes(ddf_dev_t *, usb_device_connection_t *,
     169int usb_device_create_pipes(const ddf_dev_t *, usb_device_connection_t *,
    170170    usb_endpoint_description_t **, uint8_t *, size_t, int, int,
    171171    usb_endpoint_mapping_t **, size_t *);
    172 int usb_device_destroy_pipes(ddf_dev_t *, usb_endpoint_mapping_t *, size_t);
     172int usb_device_destroy_pipes(const ddf_dev_t *, usb_endpoint_mapping_t *, size_t);
    173173int usb_device_create(ddf_dev_t *, usb_endpoint_description_t **, usb_device_t **, const char **);
    174174void usb_device_destroy(usb_device_t *);
  • uspace/lib/usbdev/include/usb/dev/pipes.h

    r96646a6 r8e5ce07  
    159159    usb_device_connection_t *, usb_hc_connection_t *);
    160160int usb_device_connection_initialize_from_device(usb_device_connection_t *,
    161     ddf_dev_t *);
     161    const ddf_dev_t *);
    162162int usb_device_connection_initialize(usb_device_connection_t *,
    163163    devman_handle_t, usb_address_t);
    164164
    165 int usb_device_get_assigned_interface(ddf_dev_t *);
     165int usb_device_get_assigned_interface(const ddf_dev_t *);
    166166
    167167int usb_pipe_initialize(usb_pipe_t *, usb_device_connection_t *,
  • uspace/lib/usbdev/src/devdrv.c

    r96646a6 r8e5ce07  
    298298 * @return Error code.
    299299 */
    300 int usb_device_create_pipes(ddf_dev_t *dev, usb_device_connection_t *wire,
     300int usb_device_create_pipes(const ddf_dev_t *dev, usb_device_connection_t *wire,
    301301    usb_endpoint_description_t **endpoints,
    302302    uint8_t *config_descr, size_t config_descr_size,
     
    418418 * @param[in] pipes_count Number of endpoints.
    419419 */
    420 int usb_device_destroy_pipes(ddf_dev_t *dev,
     420int usb_device_destroy_pipes(const ddf_dev_t *dev,
    421421    usb_endpoint_mapping_t *pipes, size_t pipes_count)
    422422{
  • uspace/lib/usbdev/src/pipes.c

    r96646a6 r8e5ce07  
    5252 * @return USB address or error code.
    5353 */
    54 static usb_address_t get_my_address(async_sess_t *sess, ddf_dev_t *dev)
     54static usb_address_t get_my_address(async_sess_t *sess, const ddf_dev_t *dev)
    5555{
    5656        async_exch_t *exch = async_exchange_begin(sess);
     
    7878 * @return Interface number (negative code means any).
    7979 */
    80 int usb_device_get_assigned_interface(ddf_dev_t *device)
     80int usb_device_get_assigned_interface(const ddf_dev_t *device)
    8181{
    8282        async_sess_t *parent_sess =
     
    108108 */
    109109int usb_device_connection_initialize_from_device(
    110     usb_device_connection_t *connection, ddf_dev_t *dev)
     110    usb_device_connection_t *connection, const ddf_dev_t *dev)
    111111{
    112112        assert(connection);
Note: See TracChangeset for help on using the changeset viewer.