Changeset a9b5b5f in mainline
- Timestamp:
- 2010-07-27T19:00:20Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d9d948
- Parents:
- ecf083dd
- Files:
-
- 3 added
- 6 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/Makefile.inc
recf083dd ra9b5b5f 41 41 PAGE_SIZE = 4096 42 42 43 RD_SRVS_ESSENTIAL += 43 RD_SRVS_ESSENTIAL += \ 44 $(USPACE_PATH)/srv/hw/char/s3c24xx_uart/s3c24ser 44 45 45 46 RD_SRVS_NON_ESSENTIAL += \ -
kernel/arch/arm32/src/mach/gta02/gta02.c
recf083dd ra9b5b5f 44 44 #include <genarch/drivers/s3c24xx_timer/s3c24xx_timer.h> 45 45 #include <genarch/srln/srln.h> 46 #include <sysinfo/sysinfo.h> 46 47 #include <interrupt.h> 47 48 #include <ddi/ddi.h> … … 185 186 stdout_wire(gta02_scons_dev); 186 187 } 188 189 /* 190 * This is the necessary evil until the userspace driver is entirely 191 * self-sufficient. 192 */ 193 sysinfo_set_item_val("s3c24xx_uart", NULL, true); 194 sysinfo_set_item_val("s3c24xx_uart.inr", NULL, S3C24XX_INT_UART2); 195 sysinfo_set_item_val("s3c24xx_uart.address.physical", NULL, 196 (uintptr_t) GTA02_SCONS_BASE); 197 187 198 } 188 199 -
uspace/Makefile
recf083dd ra9b5b5f 69 69 srv/hid/kbd \ 70 70 srv/hw/char/i8042 \ 71 srv/hw/char/s3c24xx_uart \ 71 72 srv/hw/netif/dp8390 \ 72 73 srv/net/cfg \ -
uspace/app/init/init.c
recf083dd ra9b5b5f 274 274 srv_start("/srv/cuda_adb"); 275 275 srv_start("/srv/i8042"); 276 srv_start("/srv/s3c24ser"); 276 277 srv_start("/srv/adb_ms"); 277 278 srv_start("/srv/char_ms"); -
uspace/srv/hid/kbd/Makefile
recf083dd ra9b5b5f 60 60 ifeq ($(MACHINE),gta02) 61 61 SOURCES += \ 62 port/ dummy.c \63 ctl/ pc.c62 port/chardev.c \ 63 ctl/stty.c 64 64 endif 65 65 ifeq ($(MACHINE),testarm) -
uspace/srv/hid/kbd/port/chardev.c
recf083dd ra9b5b5f 41 41 #include <kbd.h> 42 42 #include <vfs/vfs.h> 43 #include <sys/stat.h> 43 44 #include <fcntl.h> 44 45 #include <errno.h> … … 50 51 #define NAME "kbd" 51 52 53 /** List of devices to try connecting to. */ 54 static const char *in_devs[] = { 55 "/dev/char/ps2a", 56 "/dev/char/s3c24ser" 57 }; 58 59 static const int num_devs = sizeof(in_devs) / sizeof(in_devs[0]); 60 52 61 int kbd_port_init(void) 53 62 { 54 const char *input = "/dev/char/ps2a";55 63 int input_fd; 64 int i; 56 65 57 printf(NAME ": open %s\n", input); 66 input_fd = -1; 67 for (i = 0; i < num_devs; i++) { 68 struct stat s; 58 69 59 input_fd = open(input, O_RDONLY); 70 if (stat(in_devs[i], &s) == EOK) 71 break; 72 } 73 74 if (i >= num_devs) { 75 printf(NAME ": Could not find any suitable input device.\n"); 76 return -1; 77 } 78 79 input_fd = open(in_devs[i], O_RDONLY); 60 80 if (input_fd < 0) { 61 printf(NAME ": Failed opening %s (%d)\n", input, input_fd); 62 return false; 81 printf(NAME ": failed opening device %s (%d).\n", in_devs[i], 82 input_fd); 83 return -1; 63 84 } 64 85 65 86 dev_phone = fd_phone(input_fd); 66 87 if (dev_phone < 0) { 67 printf(NAME ": Failed to connectto device\n");68 return false;88 printf(NAME ": Failed connecting to device\n"); 89 return -1; 69 90 } 70 91 … … 73 94 if (ipc_connect_to_me(dev_phone, 0, 0, 0, &phonehash) != 0) { 74 95 printf(NAME ": Failed to create callback from device\n"); 75 return false;96 return -1; 76 97 } 77 98
Note:
See TracChangeset
for help on using the changeset viewer.