Changeset 33fbe95 in mainline


Ignore:
Timestamp:
2011-03-21T22:46:05Z (14 years ago)
Author:
Jan Vesely <jano.vesely@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
62ed5bc
Parents:
c01cd32
Message:

Rename uhci_rh ⇒ rh

Location:
uspace/drv/uhci-hcd
Files:
3 edited
2 moved

Legend:

Unmodified
Added
Removed
  • uspace/drv/uhci-hcd/Makefile

    rc01cd32 r33fbe95  
    3838        uhci.c \
    3939        hc.c \
    40         uhci_rh.c \
     40        root_hub.c \
    4141        uhci_struct/transfer_descriptor.c \
    4242        pci.c \
  • uspace/drv/uhci-hcd/root_hub.c

    rc01cd32 r33fbe95  
    3939#include <usb/debug.h>
    4040
    41 #include "uhci_rh.h"
     41#include "root_hub.h"
    4242
    4343/** Root hub initialization
     
    4848 * @return Error code.
    4949 */
    50 int uhci_rh_init(
    51     uhci_rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size)
     50int rh_init(
     51    rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size)
    5252{
    5353        assert(fun);
  • uspace/drv/uhci-hcd/root_hub.h

    rc01cd32 r33fbe95  
    3939#include <ops/hw_res.h>
    4040
    41 typedef struct uhci_rh {
     41typedef struct rh {
    4242        hw_resource_list_t resource_list;
    4343        hw_resource_t io_regs;
    44 } uhci_rh_t;
     44} rh_t;
    4545
    46 int uhci_rh_init(
    47     uhci_rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size);
     46int rh_init(
     47    rh_t *instance, ddf_fun_t *fun, uintptr_t reg_addr, size_t reg_size);
    4848
    4949#endif
  • uspace/drv/uhci-hcd/uhci.c

    rc01cd32 r33fbe95  
    120120{
    121121        assert(fun);
    122         return &((uhci_rh_t*)fun->driver_data)->resource_list;
     122        return &((rh_t*)fun->driver_data)->resource_list;
    123123}
    124124/*----------------------------------------------------------------------------*/
     
    128128};
    129129/*----------------------------------------------------------------------------*/
    130 static ddf_dev_ops_t uhci_rh_ops = {
     130static ddf_dev_ops_t rh_ops = {
    131131        .interfaces[USB_DEV_IFACE] = &usb_iface,
    132132        .interfaces[HW_RES_DEV_IFACE] = &hw_res_iface
     
    223223            "Failed(%d) to create root hub function.\n", ret);
    224224
    225         ret = uhci_rh_init(&instance->rh, instance->rh_fun,
     225        ret = rh_init(&instance->rh, instance->rh_fun,
    226226            (uintptr_t)instance->hc.registers + 0x10, 4);
    227227        CHECK_RET_FINI_RETURN(ret,
    228228            "Failed(%d) to setup UHCI root hub.\n", ret);
    229229
    230         instance->rh_fun->ops = &uhci_rh_ops;
     230        instance->rh_fun->ops = &rh_ops;
    231231        instance->rh_fun->driver_data = &instance->rh;
    232232        ret = ddf_fun_bind(instance->rh_fun);
  • uspace/drv/uhci-hcd/uhci.h

    rc01cd32 r33fbe95  
    3939
    4040#include "hc.h"
    41 #include "uhci_rh.h"
     41#include "root_hub.h"
    4242
    4343typedef struct uhci {
     
    4646
    4747        hc_t hc;
    48         uhci_rh_t rh;
     48        rh_t rh;
    4949} uhci_t;
    5050
Note: See TracChangeset for help on using the changeset viewer.