Changeset c2772b8 in mainline
- Timestamp:
- 2011-01-30T22:06:09Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 707ffcf
- Parents:
- 54b5625 (diff), a09128c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - Files:
-
- 2 added
- 1 deleted
- 11 edited
- 11 moved
Legend:
- Unmodified
- Added
- Removed
-
.bzrignore
r54b5625 rc2772b8 86 86 ./uspace/drv/uhci/uhci 87 87 ./uspace/drv/usbhub/usbhub 88 ./uspace/drv/usb kbd/usbkbd88 ./uspace/drv/usbhid/usbhid 89 89 ./uspace/drv/vhc/vhc 90 90 ./uspace/srv/bd/ata_bd/ata_bd -
boot/arch/amd64/Makefile.inc
r54b5625 rc2772b8 45 45 uhci \ 46 46 usbhub \ 47 usb kbd \47 usbhid \ 48 48 vhc 49 49 -
uspace/Makefile
r54b5625 rc2772b8 118 118 srv/hw/irc/i8259 \ 119 119 drv/uhci \ 120 drv/usbhid \ 120 121 drv/usbhub \ 121 drv/usbkbd \122 122 drv/vhc 123 123 endif … … 132 132 srv/hw/irc/i8259 \ 133 133 drv/uhci \ 134 drv/usbhid \ 134 135 drv/usbhub \ 135 drv/usbkbd \136 136 drv/vhc 137 137 endif -
uspace/app/usbinfo/dump.c
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb 29 /** @addtogroup usbinfo 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @briefUSB querying.34 * USB querying. 35 35 */ 36 36 -
uspace/app/usbinfo/info.c
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb 29 /** @addtogroup usbinfo 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @brief34 * Dumping of generic device properties. 35 35 */ 36 36 #include <stdio.h> -
uspace/app/usbinfo/main.c
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb 29 /** @addtogroup usbinfo 30 30 * @{ 31 31 */ 32 32 /** 33 33 * @file 34 * @briefUSB querying.34 * USB querying. 35 35 */ 36 36 -
uspace/app/usbinfo/usbinfo.h
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb 29 /** @addtogroup usbinfo 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @briefCommon header for usbinfo application.33 * Common header for usbinfo application. 34 34 */ 35 35 #ifndef USBINFO_USBINFO_H_ -
uspace/doc/doxygroups.h
r54b5625 rc2772b8 210 210 */ 211 211 212 /** 213 * @defgroup drvusbhub USB hub driver 214 * @ingroup usb 215 * @brief USB hub driver. 216 */ 217 218 /** 219 * @defgroup drvusbhid USB HID driver 220 * @ingroup usb 221 * @brief USB driver for HID devices. 222 */ 223 224 /** 225 * @defgroup drvusbuhci UHCI driver 226 * @ingroup usb 227 * @brief Driver for USB host controller UHCI. 228 */ 229 212 /** 213 * @defgroup usbinfo USB info application 214 * @ingroup usb 215 * @brief Application for querying USB devices. 216 * @details 217 * The intended usage of this application is to query new USB devices 218 * for their descriptors etc. to simplify driver writing. 219 */ 220 221 /** 222 * @defgroup drvusbhub USB hub driver 223 * @ingroup usb 224 * @brief USB hub driver. 225 */ 226 227 /** 228 * @defgroup drvusbhid USB HID driver 229 * @ingroup usb 230 * @brief USB driver for HID devices. 231 */ 232 233 /** 234 * @defgroup drvusbuhci UHCI driver 235 * @ingroup usb 236 * @brief Driver for USB host controller UHCI. 237 */ 238 -
uspace/drv/uhci/Makefile
r54b5625 rc2772b8 34 34 SOURCES = \ 35 35 main.c \ 36 pci.c \ 36 37 transfers.c 37 38 -
uspace/drv/uhci/main.c
r54b5625 rc2772b8 30 30 #include <usb/debug.h> 31 31 #include <errno.h> 32 #include <str_error.h> 32 33 #include <driver.h> 33 34 #include "uhci.h" … … 55 56 usb_dprintf(NAME, 1, "uhci_add_device() called\n"); 56 57 device->ops = &uhci_ops; 58 59 uintptr_t io_reg_base; 60 size_t io_reg_size; 61 int irq; 62 63 int rc = pci_get_my_registers(device, 64 &io_reg_base, &io_reg_size, &irq); 65 66 if (rc != EOK) { 67 fprintf(stderr, 68 NAME ": failed to get I/O registers addresses: %s.\n", 69 str_error(rc)); 70 return rc; 71 } 72 73 usb_dprintf(NAME, 2, "I/O regs at 0x%X (size %zu), IRQ %d.\n", 74 io_reg_base, io_reg_size, irq); 57 75 58 76 /* -
uspace/drv/uhci/uhci.h
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbuhci 30 30 * @{ 31 31 */ … … 42 42 usbhc_iface_t uhci_iface; 43 43 44 int pci_get_my_registers(device_t *, uintptr_t *, size_t *, int *); 45 44 46 #endif 45 47 /** -
uspace/drv/usbhid/Makefile
r54b5625 rc2772b8 1 1 # 2 # Copyright (c) 2010 Vojtech Horky2 # Copyright (c) 2010-2011 Vojtech Horky 3 3 # All rights reserved. 4 4 # … … 30 30 LIBS = $(LIBDRV_PREFIX)/libdrv.a $(LIBUSB_PREFIX)/libusb.a 31 31 EXTRA_CFLAGS += -I$(LIBDRV_PREFIX)/include -I$(LIBUSB_PREFIX)/include -I. 32 BINARY = usbkbd 33 SRV_KBD = $(USPACE_PREFIX)/srv/hid/kbd 32 BINARY = usbhid 33 34 STOLEN_LAYOUT_SOURCES = \ 35 layout/us_qwerty.c \ 36 layout/us_dvorak.c \ 37 layout/cz.c 34 38 35 39 SOURCES = \ … … 38 42 descdump.c \ 39 43 conv.c \ 40 us_qwerty.c \ 41 us_dvorak.c \ 42 cz.c 44 $(STOLEN_LAYOUT_SOURCES) 45 46 EXTRA_CLEAN = $(STOLEN_LAYOUT_SOURCES) 47 48 SRV_KBD = $(USPACE_PREFIX)/srv/hid/kbd 43 49 44 50 include $(USPACE_PREFIX)/Makefile.common 45 51 46 us_qwerty.c: 47 ln -snf $(SRV_KBD)/layout/$@ $@ 48 49 us_dvorak.c: 50 ln -snf $(SRV_KBD)/layout/$@ $@ 51 52 cz.c: 53 ln -snf $(SRV_KBD)/layout/$@ $@ 54 55 52 layout/%.c: $(SRV_KBD)/layout/%.c 53 ln -sfn ../$< $@ -
uspace/drv/usbhid/conv.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /** @addtogroup drvusbhid 30 * @{ 31 */ 32 /** @file 33 * USB scancode parser. 34 */ 35 28 36 #include <io/keycode.h> 29 37 #include <stdint.h> … … 185 193 return key; 186 194 } 195 196 /** 197 * @} 198 */ -
uspace/drv/usbhid/conv.h
r54b5625 rc2772b8 27 27 */ 28 28 29 /** @addtogroup usb29 /** @addtogroup drvusbhid 30 30 * @{ 31 31 */ 32 32 /** @file 33 * @brief USB Scancode parser.33 * USB scancode parser. 34 34 */ 35 35 … … 40 40 41 41 #endif 42 43 /** 44 * @} 45 */ -
uspace/drv/usbhid/descdump.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor dumping. 30 34 */ 31 35 -
uspace/drv/usbhid/descdump.h
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 30 31 */ 32 /** @file 33 * Descriptor dumping. 34 */ 35 31 36 #ifndef USBHID_DESCDUMP_H_ 32 37 #define USBHID_DESCDUMP_H_ -
uspace/drv/usbhid/descparser.c
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor parser. 30 34 */ 31 35 -
uspace/drv/usbhid/descparser.h
r54b5625 rc2772b8 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 28 29 /** @addtogroup drvusbhid 29 30 * @{ 31 */ 32 /** @file 33 * Descriptor parser. 30 34 */ 31 35 -
uspace/drv/usbhid/layout.h
r54b5625 rc2772b8 1 1 /* 2 * Copyright (c) 2009 Jiri Svoboda 2 3 * Copyright (c) 2011 Lubos Slovak 3 4 * (copied from /uspace/srv/hid/kbd/include/layout.h) … … 28 29 */ 29 30 30 /** @addtogroup usb 31 * @brief 32 * @ingroup 31 /** @addtogroup drvusbhid 33 32 * @{ 34 33 */ 35 34 /** @file 35 * Keyboard layout. 36 36 */ 37 37 -
uspace/drv/usbhid/main.c
r54b5625 rc2772b8 1 1 /* 2 2 * Copyright (c) 2010 Vojtech Horky 3 * Copyright (c) 2011 Lubos Slovak 3 4 * All rights reserved. 4 5 * … … 26 27 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 28 */ 29 28 30 /** @addtogroup drvusbhid 29 31 * @{ 30 32 */ 33 /** 34 * @file 35 * Main routines of USB HID driver. 36 */ 37 31 38 #include <usb/usbdrv.h> 32 39 #include <driver.h> … … 49 56 50 57 #define BUFFER_SIZE 32 51 #define NAME "usb kbd"58 #define NAME "usbhid" 52 59 53 60 #define GUESSED_POLL_ENDPOINT 1
Note:
See TracChangeset
for help on using the changeset viewer.