Changeset 4b4c797 in mainline for uspace/lib/usb


Ignore:
Timestamp:
2010-11-20T14:07:05Z (15 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
1b22bd4
Parents:
0e126be7
Message:

Directory structure reorganization

USB class-specific headers are in separate directory.

Removed unused/unreachable code.

Location:
uspace/lib/usb
Files:
2 deleted
1 edited
13 moved

Legend:

Unmodified
Added
Removed
  • uspace/lib/usb/Makefile

    r0e126be7 r4b4c797  
    3030LIBRARY = libusb
    3131LIBS = $(LIBDRV_PREFIX)/libdrv.a
    32 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIB_PREFIX)
     32EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -Iinclude
    3333
    3434SOURCES = \
    35         hcd.c \
    36         hcdhubd.c \
    37         usb.c \
    38         usbdrv.c
     35        src/hcdhubd.c \
     36        src/usb.c \
     37        src/usbdrv.c
    3938
    4039include $(USPACE_PREFIX)/Makefile.common
  • uspace/lib/usb/include/usb/devreq.h

    r0e126be7 r4b4c797  
    7575                uint16_t value;
    7676        };
    77         /** Auxilary parameter to the request.
     77        /** Auxiliary parameter to the request.
    7878         * Typically, it is offset to something.
    7979         */
  • uspace/lib/usb/include/usb/hcdhubd.h

    r0e126be7 r4b4c797  
    3838#include <adt/list.h>
    3939#include <driver.h>
    40 #include "usb.h"
    41 #include "hcd.h"
     40#include <usb/usb.h>
    4241
    4342/** Endpoint properties. */
  • uspace/lib/usb/include/usb/usb.h

    r0e126be7 r4b4c797  
    9898typedef ipcarg_t usb_handle_t;
    9999
     100/** USB packet identifier. */
     101typedef enum {
     102#define _MAKE_PID_NIBBLE(tag, type) \
     103        ((uint8_t)(((tag) << 2) | (type)))
     104#define _MAKE_PID(tag, type) \
     105        ( \
     106            _MAKE_PID_NIBBLE(tag, type) \
     107            | ((~_MAKE_PID_NIBBLE(tag, type)) << 4) \
     108        )
     109        USB_PID_OUT = _MAKE_PID(0, 1),
     110        USB_PID_IN = _MAKE_PID(2, 1),
     111        USB_PID_SOF = _MAKE_PID(1, 1),
     112        USB_PID_SETUP = _MAKE_PID(3, 1),
     113
     114        USB_PID_DATA0 = _MAKE_PID(0 ,3),
     115        USB_PID_DATA1 = _MAKE_PID(2 ,3),
     116
     117        USB_PID_ACK = _MAKE_PID(0 ,2),
     118        USB_PID_NAK = _MAKE_PID(2 ,2),
     119        USB_PID_STALL = _MAKE_PID(3 ,2),
     120
     121        USB_PID_PRE = _MAKE_PID(3 ,0),
     122        /* USB_PID_ = _MAKE_PID( ,), */
     123#undef _MAKE_PID
     124#undef _MAKE_PID_NIBBLE
     125} usb_packet_id;
     126
    100127#endif
    101128/**
  • uspace/lib/usb/src/hcdhubd.c

    r0e126be7 r4b4c797  
    3333 * @brief HC driver and hub driver (implementation).
    3434 */
    35 #include "hcdhubd.h"
     35#include <usb/hcdhubd.h>
    3636#include <usb_iface.h>
    3737#include <driver.h>
  • uspace/lib/usb/src/usb.c

    r0e126be7 r4b4c797  
    3333 * @brief Base USB types.
    3434 */
    35 #include "usb.h"
     35#include <usb/usb.h>
    3636#include <errno.h>
    3737
  • uspace/lib/usb/src/usbdrv.c

    r0e126be7 r4b4c797  
    3333 * @brief USB driver (implementation).
    3434 */
    35 #include "usbdrv.h"
     35#include <usb/usbdrv.h>
    3636#include <usb_iface.h>
    3737#include <errno.h>
Note: See TracChangeset for help on using the changeset viewer.