Changeset e8975278 in mainline
- Timestamp:
- 2018-05-10T15:14:02Z (7 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 1420cae9
- Parents:
- ae7d03c
- git-author:
- Jiri Svoboda <jiri@…> (2018-05-10 07:53:56)
- git-committer:
- Jiri Svoboda <jiri@…> (2018-05-10 15:14:02)
- Files:
-
- 14 edited
Legend:
- Unmodified
- Added
- Removed
-
boot/arch/arm32/src/putchar.c
rae7d03c re8975278 51 51 { 52 52 volatile uint32_t *thr = 53 53 (volatile uint32_t *) BBONE_SCONS_THR; 54 54 volatile uint32_t *ssr = 55 55 (volatile uint32_t *) BBONE_SCONS_SSR; 56 56 57 57 /* Wait until transmitter is empty */ 58 while (*ssr & BBONE_TXFIFO_FULL); 58 while (*ssr & BBONE_TXFIFO_FULL) 59 ; 59 60 60 61 /* Transmit byte */ … … 78 79 79 80 /* Wait until transmitter is empty. */ 80 while ((*ssr & BBXM_THR_FULL) == 1) ; 81 while ((*ssr & BBXM_THR_FULL) == 1) 82 ; 81 83 82 84 /* Transmit byte. */ … … 144 146 write32(BCM2835_UART0_FBRD, 40); /* Set fractional baud rate */ 145 147 write32(BCM2835_UART0_LCRH, 146 BCM2835_UART0_LCRH_FEN |/* Enable FIFOs */147 BCM2835_UART0_LCRH_WL8);/* Word length: 8 */148 BCM2835_UART0_LCRH_FEN | /* Enable FIFOs */ 149 BCM2835_UART0_LCRH_WL8); /* Word length: 8 */ 148 150 write32(BCM2835_UART0_CR, 149 BCM2835_UART0_CR_UARTEN |/* Enable UART */150 151 151 BCM2835_UART0_CR_UARTEN | /* Enable UART */ 152 BCM2835_UART0_CR_TXE | /* Enable TX */ 153 BCM2835_UART0_CR_RXE); /* Enable RX */ 152 154 } 153 155 … … 159 161 } 160 162 161 while (read32(BCM2835_UART0_FR) & BCM2835_UART0_FR_TXFF); 163 while (read32(BCM2835_UART0_FR) & BCM2835_UART0_FR_TXFF) 164 ; 162 165 163 166 write32(BCM2835_UART0_DR, byte); -
uspace/app/sbi/src/bigint.c
rae7d03c re8975278 202 202 203 203 if (bigint->negative) 204 val = - 204 val = -val; 205 205 206 206 /* If the value did not fit @c val now contains garbage. Verify. */ … … 368 368 { 369 369 static const char digits[] = { '0', '1', '2', '3', '4', '5', '6', 370 370 '7', '8', '9' }; 371 371 372 372 bigint_t val, tmp; … … 632 632 db = b; 633 633 634 tmp = (da * db)+ (bigint_word_t) carry;634 tmp = da * db + (bigint_word_t) carry; 635 635 636 636 carry = (bigint_word_t) (tmp / BIGINT_BASE); -
uspace/app/usbinfo/info.c
rae7d03c re8975278 269 269 } 270 270 271 /*printf("Found string in %s->%s: %zu\n",272 #descr_struct, #descr_item, __str_index); */273 271 #define SET_STRING_INDEX(descr, mask, descr_type, descr_struct, descr_item) \ 274 272 do { \ -
uspace/app/vuhid/hids/logitech_wireless.c
rae7d03c re8975278 58 58 #define iface1_input_size 8 59 59 static uint8_t iface1_in_data[] = { 60 /*0, 0, 0, 0, 0, 0, 0, 0, 61 0, 9, 0, 0, 0, 0, 0, 0, 62 0, 0, 9, 0, 0, 0, 0, 0, 63 0, 9, 9, 0, 0, 0, 0, 0,*/ 64 0, 0, 0, 0, 0, 0, 0, 0 60 0, 0, 0, 0, 0, 0, 0, 0 65 61 }; 66 62 67 63 static vuhid_interface_life_t iface1_life = { 68 64 .data_in = iface1_in_data, 69 .data_in_count = sizeof(iface1_in_data) /iface1_input_size,65 .data_in_count = sizeof(iface1_in_data) / iface1_input_size, 70 66 .data_in_pos_change_delay = 50, 71 67 .msg_born = "Mouse of Logitech Unifying Receiver comes to life...", -
uspace/drv/audio/hdaudio/codec.c
rae7d03c re8975278 67 67 } 68 68 errno_t rc = hda_cmd(codec->hda, verb, resp); 69 /* 69 70 #if 0 70 71 if (resp != NULL) { 71 72 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32 " -> 0x%" PRIx32, verb, … … 74 75 ddf_msg(LVL_NOTE, "verb 0x%" PRIx32, verb); 75 76 } 76 */ 77 #endif 77 78 return rc; 78 79 } … … 448 449 } 449 450 450 /* if ((pcaps & BIT_V(uint32_t, pwc_input)) != 0) { 451 #if 0 452 if ((pcaps & BIT_V(uint32_t, pwc_input)) != 0) { 451 453 ddf_msg(LVL_NOTE, "PIN %d will enable input"); 452 453 } 454 */ 454 pctl = pctl | BIT_V(uint8_t, pctl_input_enable); 455 } 456 #endif 455 457 ddf_msg(LVL_NOTE, "Setting PIN %d ctl to 0x%x", aw, pctl); 456 458 rc = hda_set_pin_ctl(codec, aw, pctl); -
uspace/lib/c/arch/ia32/src/rtld/reloc.c
rae7d03c re8975278 93 93 sym = &sym_table[sym_idx]; 94 94 95 /* DPRINTF("name '%s', value 0x%x, size 0x%x\n", 96 str_tab + sym->st_name, 97 sym->st_value, 98 sym->st_size); 99 */ 95 #if 0 96 DPRINTF("name '%s', value 0x%x, size 0x%x\n", 97 str_tab + sym->st_name, sym->st_value, sym->st_size); 98 #endif 100 99 rel_type = ELF32_R_TYPE(r_info); 101 100 r_ptr = (uint32_t *)(r_offset + m->bias); -
uspace/lib/c/arch/ia32/src/tls.c
rae7d03c re8975278 33 33 */ 34 34 /** @file 35 35 * @ingroup libcia32 36 36 */ 37 37 -
uspace/lib/posix/src/stdio/scanf.c
rae7d03c re8975278 61 61 _PROV_READY, 62 62 /** Cursor is temporarily lent to the external entity. No action is 63 63 * possible until the cursor is returned. */ 64 64 _PROV_CURSOR_LENT, 65 65 }; … … 74 74 int fetched; 75 75 /** Elements are fetched from the source in batches (e.g. by getline()) 76 76 * to allow using strtol/strtod family even on streams. */ 77 77 char *window; 78 78 /** Size of the current window. */ … … 84 84 85 85 /** Take control over data source. Finish initialization of the internal 86 86 * structures (e.g. allocation of window). */ 87 87 void (*capture)(struct __input_provider *); 88 88 /** Get a single element from the source and update the internal structures 89 90 89 * accordingly (e.g. greedy update of the window). Return -1 if the 90 * element cannot be obtained. */ 91 91 int (*pop)(struct __input_provider *); 92 92 /** Undo the most recent not-undone pop operation. Might be necesarry to 93 94 93 * flush current window and seek data source backwards. Return 0 if the 94 * pop history is exhausted, non-zero on success. */ 95 95 int (*undo)(struct __input_provider *); 96 96 /** Lend the cursor to the caller. */ 97 97 const char *(*borrow_cursor)(struct __input_provider *); 98 98 /** Take control over possibly incremented cursor and update the internal 99 99 * structures if necessary. */ 100 100 void (*return_cursor)(struct __input_provider *, const char *); 101 101 /** Release the control over the source. That is, synchronize any 102 103 102 * fetched but non-consumed elements (e.g. by seeking) and destruct 103 * internal structures (e.g. window deallocation). */ 104 104 void (*release)(struct __input_provider *); 105 105 } _input_provider; … … 411 411 *base = 10; 412 412 return 1; 413 case 'p': /* According to POSIX, %p modifier is implementation defined but 414 * must correspond to its printf counterpart. */ 413 case 'p': 414 /* According to POSIX, %p modifier is implementation defined but 415 * must correspond to its printf counterpart. */ 415 416 case 'x': 416 417 case 'X': -
uspace/lib/trackmod/trackmod.c
rae7d03c re8975278 62 62 63 63 /** Table for finetune computation. 64 65 66 67 68 69 70 71 72 64 * 65 * Finetune is a number ft in [-8 .. 7]. The pitch should be adjusted by 66 * ft/8 semitones. To adjust pitch by 1/8 semitone down we can mutiply the 67 * period by 2^(1/12/8) =. 1.0072, one semitone up: 2^-(1/12/8) =. 0.9928, 68 * to adjust by ft/8 semitones, multiply by 2^(-ft/12/8). 69 * 70 * finetune_factor[ft] := 10000 * 2^(-ft/12/8) 71 * res_period = clip(period * fineture_factor[ft+8] / 10000) 72 */ 73 73 static unsigned finetune_factor[16] = { 74 74 10595, 10518, 10443, 10368, 10293, 10219, 10145, 10072, … … 731 731 } 732 732 733 /* if (np < period_min) 733 #if 0 734 /* XXX */ 735 if (np < period_min) 734 736 np = period_min; 735 737 if (np > period_max) 736 738 np = period_max; 737 */ 739 #endif 738 740 modplay->chan[i].period = np; 739 741 } -
uspace/lib/trackmod/types/trackmod.h
rae7d03c re8975278 153 153 int vol_slide; 154 154 /** Portamento amount (positive for tone and up portamento, 155 155 * negative for down portamento. */ 156 156 int portamento; 157 157 /** Tone portamento target period. */ -
uspace/srv/fs/exfat/exfat_directory.c
rae7d03c re8975278 71 71 72 72 di->bs = block_bb_get(di->service_id); 73 /* di->blocks = nodep->size / BPS(di->bs); */74 73 di->blocks = ROUND_UP(nodep->size, BPS(di->bs)) / BPS(di->bs); 75 74 return EOK; -
uspace/srv/fs/exfat/exfat_ops.c
rae7d03c re8975278 1198 1198 } 1199 1199 1200 /* exfat_fsinfo(bs, service_id); */ 1200 if (0) 1201 exfat_fsinfo(bs, service_id); 1201 1202 1202 1203 *rrfn = FS_NODE(rootp); … … 1237 1238 1238 1239 /* Print debug info */ 1239 /*1240 1240 static void exfat_fsinfo(exfat_bs_t *bs, service_id_t service_id) 1241 1241 { … … 1252 1252 printf("Bytes per sector: %d\n", BPS(bs)); 1253 1253 printf("Sectors per cluster: %d\n", SPC(bs)); 1254 printf("KBytes per cluster: %d\n", SPC(bs) *BPS(bs)/1024);1254 printf("KBytes per cluster: %d\n", SPC(bs) * BPS(bs) / 1024); 1255 1255 1256 1256 int i, rc; 1257 1257 exfat_cluster_t clst; 1258 for (i =0; i<=7; i++) {1258 for (i = 0; i <= 7; i++) { 1259 1259 rc = exfat_get_cluster(bs, service_id, i, &clst); 1260 1260 if (rc != EOK) 1261 1261 return; 1262 1262 printf("Clst %d: %x", i, clst); 1263 if (i >=2)1264 printf(", Bitmap: %d\n", bitmap_is_free(bs, service_id, i) !=EOK);1263 if (i >= 2) 1264 printf(", Bitmap: %d\n", bitmap_is_free(bs, service_id, i) != EOK); 1265 1265 else 1266 1266 printf("\n"); 1267 1267 } 1268 1268 } 1269 */1270 1269 1271 1270 static errno_t exfat_fsprobe(service_id_t service_id, vfs_fs_probe_info_t *info) -
uspace/srv/hid/isdv4_tablet/isdv4.c
rae7d03c re8975278 54 54 #define CMD_QUERY_TOUCH '%' 55 55 56 /* packet_consumer_fn(uint8_t *packet, size_t size, isdv4_state_t *state, 57 void *data) 58 return true if reading of packets should continue */ 59 typedef bool (*packet_consumer_fn)(uint8_t *, size_t, isdv4_state_t *); 56 /** Packet consumer function 57 * 58 * @return true if reading of packets should continue 59 */ 60 typedef bool (*packet_consumer_fn)(uint8_t *packet, size_t size, 61 isdv4_state_t *state); 60 62 61 63 static void isdv4_event_init(isdv4_event_t *event) -
uspace/srv/net/tcp/conn.c
rae7d03c re8975278 1186 1186 tcp_segment_dump(seg); 1187 1187 1188 /* Check whether segment is acceptable */1189 /* XXX Permit valid ACKs, URGs and RSTs */1190 /* if (!seq_no_segment_acceptable(conn, seg)) {1191 log_msg(LOG_DEFAULT, LVL_WARN, "Segment not acceptable, dropping.");1192 if ((seg->ctrl & CTL_RST) == 0) {1193 tcp_tqueue_ctrl_seg(conn, CTL_ACK);1194 }1195 return;1196 }1197 */1198 1199 1188 if (tcp_conn_seg_proc_rst(conn, seg) == cp_done) 1200 1189 return;
Note:
See TracChangeset
for help on using the changeset viewer.