Changeset d394f1b8 in mainline


Ignore:
Timestamp:
2011-09-07T13:26:48Z (13 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
5ec492b
Parents:
933b0d7
Message:

uhci,ohci: Add some const qualifiers because there is no reason not to

Location:
uspace/drv/bus/usb
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.c

    r933b0d7 rd394f1b8  
    3939static unsigned togg[2] = { TD_STATUS_T_0, TD_STATUS_T_1 };
    4040
    41 void td_init(
    42     td_t *instance, usb_direction_t dir, void *buffer, size_t size, int toggle)
     41void td_init(td_t *instance,
     42    usb_direction_t dir, const void *buffer, size_t size, int toggle)
    4343{
    4444        assert(instance);
  • uspace/drv/bus/usb/ohci/hw_struct/transfer_descriptor.h

    r933b0d7 rd394f1b8  
    7575} __attribute__((packed)) td_t;
    7676
    77 void td_init(
    78     td_t *instance, usb_direction_t dir, void *buffer, size_t size, int toggle);
     77void td_init(td_t *instance,
     78    usb_direction_t dir, const void *buffer, size_t size, int toggle);
    7979
    8080inline static void td_set_next(td_t *instance, td_t *next)
  • uspace/drv/bus/usb/ohci/utils/malloc32.h

    r933b0d7 rd394f1b8  
    4646 * @return Physical address if exists, NULL otherwise.
    4747 */
    48 static inline uintptr_t addr_to_phys(void *addr)
     48static inline uintptr_t addr_to_phys(const void *addr)
    4949{
    5050        uintptr_t result;
  • uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.c

    r933b0d7 rd394f1b8  
    6161 */
    6262void td_init(td_t *instance, int err_count, size_t size, bool toggle, bool iso,
    63     bool low_speed, usb_target_t target, usb_packet_id pid, void *buffer,
     63    bool low_speed, usb_target_t target, usb_packet_id pid, const void *buffer,
    6464    const td_t *next)
    6565{
  • uspace/drv/bus/usb/uhci/hw_struct/transfer_descriptor.h

    r933b0d7 rd394f1b8  
    9595void td_init(td_t *instance, int error_count, size_t size, bool toggle,
    9696    bool iso, bool low_speed, usb_target_t target, usb_packet_id pid,
    97     void *buffer, const td_t *next);
     97    const void *buffer, const td_t *next);
    9898
    9999int td_status(td_t *instance);
Note: See TracChangeset for help on using the changeset viewer.