Changes in / [aca85e4:35537a7] in mainline
- Location:
- uspace
- Files:
-
- 1 added
- 5 deleted
- 9 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/app/tester/Makefile
raca85e4 r35537a7 31 31 BINARY = tester 32 32 33 LIBS += $(LIBUSB_PREFIX)/libusb.a34 EXTRA_CFLAGS += -I$(LIBUSB_PREFIX)/include35 36 33 SOURCES = \ 37 34 tester.c \ 38 adt/usbaddrkeep.c \39 35 thread/thread1.c \ 40 36 print/print1.c \ -
uspace/app/tester/tester.c
raca85e4 r35537a7 65 65 #include "mm/malloc1.def" 66 66 #include "hw/serial/serial1.def" 67 #include "adt/usbaddrkeep.def"68 67 {NULL, NULL, NULL, false} 69 68 }; -
uspace/app/tester/tester.h
raca85e4 r35537a7 82 82 extern const char *test_malloc1(void); 83 83 extern const char *test_serial1(void); 84 extern const char *test_usbaddrkeep(void);85 84 86 85 extern test_t tests[]; -
uspace/drv/vhc/Makefile
raca85e4 r35537a7 39 39 40 40 SOURCES = \ 41 addrmgm.c \ 41 42 conndev.c \ 42 43 connhost.c \ -
uspace/drv/vhc/conn.h
raca85e4 r35537a7 48 48 49 49 void address_init(void); 50 int reserve_default_address(device_t *); 51 int release_default_address(device_t *); 52 int request_address(device_t *, usb_address_t *); 53 int release_address(device_t *, usb_address_t); 54 int bind_address(device_t *, usb_address_t, devman_handle_t); 50 55 56 int tell_address(device_t *, devman_handle_t, usb_address_t *); 51 57 52 58 void default_connection_handler(device_t *, ipc_callid_t, ipc_call_t *); -
uspace/drv/vhc/connhost.c
raca85e4 r35537a7 36 36 #include <errno.h> 37 37 #include <usb/usb.h> 38 #include <usb/hcd.h>39 38 40 39 #include "vhcd.h" … … 219 218 } 220 219 221 static usb_address_keeping_t addresses;222 223 224 static int reserve_default_address(device_t *dev)225 {226 usb_address_keeping_reserve_default(&addresses);227 return EOK;228 }229 230 static int release_default_address(device_t *dev)231 {232 usb_address_keeping_release_default(&addresses);233 return EOK;234 }235 236 static int request_address(device_t *dev, usb_address_t *address)237 {238 usb_address_t addr = usb_address_keeping_request(&addresses);239 if (addr < 0) {240 return (int)addr;241 }242 243 *address = addr;244 return EOK;245 }246 247 static int release_address(device_t *dev, usb_address_t address)248 {249 return usb_address_keeping_release(&addresses, address);250 }251 252 static int bind_address(device_t *dev, usb_address_t address,253 devman_handle_t handle)254 {255 usb_address_keeping_devman_bind(&addresses, address, handle);256 return EOK;257 }258 259 static int tell_address(device_t *dev, devman_handle_t handle,260 usb_address_t *address)261 {262 usb_address_t addr = usb_address_keeping_find(&addresses, handle);263 if (addr < 0) {264 return addr;265 }266 267 *address = addr;268 return EOK;269 }270 271 void address_init(void)272 {273 usb_address_keeping_init(&addresses, 50);274 }275 220 276 221 usbhc_iface_t vhc_iface = { -
uspace/lib/usb/Makefile
raca85e4 r35537a7 33 33 34 34 SOURCES = \ 35 src/addrkeep.c \36 35 src/hcdhubd.c \ 37 36 src/hcdrv.c \ … … 39 38 src/remotedrv.c \ 40 39 src/usb.c \ 41 src/usbdrvreq.c \42 40 src/usbdrv.c 43 41 -
uspace/lib/usb/include/usb/usb.h
raca85e4 r35537a7 69 69 typedef int usb_address_t; 70 70 71 /** Default USB address. */72 #define USB_ADDRESS_DEFAULT 073 74 71 /** USB endpoint number type. 75 72 * Negative values could be used to indicate error. -
uspace/lib/usb/include/usb/usbdrv.h
raca85e4 r35537a7 36 36 #define LIBUSB_USBDRV_H_ 37 37 38 #include <usb/usb.h>38 #include "usb.h" 39 39 #include <driver.h> 40 40 … … 70 70 int usb_drv_async_wait_for(usb_handle_t); 71 71 72 73 int usb_drv_req_set_address(int, usb_address_t, usb_address_t);74 75 72 #endif 76 73 /**
Note:
See TracChangeset
for help on using the changeset viewer.