Changeset 4b4c797 in mainline for uspace/lib/usb
- Timestamp:
- 2010-11-20T14:07:05Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1b22bd4
- Parents:
- 0e126be7
- Location:
- uspace/lib/usb
- Files:
-
- 2 deleted
- 1 edited
- 13 moved
-
Makefile (modified) (1 diff)
-
hcd.c (deleted)
-
hcd.h (deleted)
-
include/usb/classes/classes.h (moved) (moved from uspace/lib/usb/classes.h )
-
include/usb/classes/hid.h (moved) (moved from uspace/lib/usb/hid.h )
-
include/usb/classes/hidut.h (moved) (moved from uspace/lib/usb/hidut.h )
-
include/usb/classes/hidutkbd.h (moved) (moved from uspace/lib/usb/hidutkbd.h )
-
include/usb/classes/hub.h (moved) (moved from uspace/lib/usb/hub.h )
-
include/usb/descriptor.h (moved) (moved from uspace/lib/usb/descriptor.h )
-
include/usb/devreq.h (moved) (moved from uspace/lib/usb/devreq.h ) (1 diff)
-
include/usb/hcdhubd.h (moved) (moved from uspace/lib/usb/hcdhubd.h ) (1 diff)
-
include/usb/usb.h (moved) (moved from uspace/lib/usb/usb.h ) (1 diff)
-
include/usb/usbdrv.h (moved) (moved from uspace/lib/usb/usbdrv.h )
-
src/hcdhubd.c (moved) (moved from uspace/lib/usb/hcdhubd.c ) (1 diff)
-
src/usb.c (moved) (moved from uspace/lib/usb/usb.c ) (1 diff)
-
src/usbdrv.c (moved) (moved from uspace/lib/usb/usbdrv.c ) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/usb/Makefile
r0e126be7 r4b4c797 30 30 LIBRARY = libusb 31 31 LIBS = $(LIBDRV_PREFIX)/libdrv.a 32 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I $(LIB_PREFIX)32 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -Iinclude 33 33 34 34 SOURCES = \ 35 hcd.c \ 36 hcdhubd.c \ 37 usb.c \ 38 usbdrv.c 35 src/hcdhubd.c \ 36 src/usb.c \ 37 src/usbdrv.c 39 38 40 39 include $(USPACE_PREFIX)/Makefile.common -
uspace/lib/usb/include/usb/devreq.h
r0e126be7 r4b4c797 75 75 uint16_t value; 76 76 }; 77 /** Auxil ary parameter to the request.77 /** Auxiliary parameter to the request. 78 78 * Typically, it is offset to something. 79 79 */ -
uspace/lib/usb/include/usb/hcdhubd.h
r0e126be7 r4b4c797 38 38 #include <adt/list.h> 39 39 #include <driver.h> 40 #include "usb.h" 41 #include "hcd.h" 40 #include <usb/usb.h> 42 41 43 42 /** Endpoint properties. */ -
uspace/lib/usb/include/usb/usb.h
r0e126be7 r4b4c797 98 98 typedef ipcarg_t usb_handle_t; 99 99 100 /** USB packet identifier. */ 101 typedef 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 100 127 #endif 101 128 /** -
uspace/lib/usb/src/hcdhubd.c
r0e126be7 r4b4c797 33 33 * @brief HC driver and hub driver (implementation). 34 34 */ 35 #include "hcdhubd.h"35 #include <usb/hcdhubd.h> 36 36 #include <usb_iface.h> 37 37 #include <driver.h> -
uspace/lib/usb/src/usb.c
r0e126be7 r4b4c797 33 33 * @brief Base USB types. 34 34 */ 35 #include "usb.h"35 #include <usb/usb.h> 36 36 #include <errno.h> 37 37 -
uspace/lib/usb/src/usbdrv.c
r0e126be7 r4b4c797 33 33 * @brief USB driver (implementation). 34 34 */ 35 #include "usbdrv.h"35 #include <usb/usbdrv.h> 36 36 #include <usb_iface.h> 37 37 #include <errno.h>
Note:
See TracChangeset
for help on using the changeset viewer.
