Changeset 1b20da0 in mainline for uspace/drv
- Timestamp:
- 2018-02-28T17:52:03Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3061bc1
- Parents:
- df6ded8
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:26:03)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-02-28 17:52:03)
- Location:
- uspace/drv
- Files:
-
- 27 edited
-
block/ahci/ahci.c (modified) (1 diff)
-
block/ata_bd/ata_bd.c (modified) (2 diffs)
-
block/ddisk/ddisk.c (modified) (7 diffs)
-
bus/isa/isa.c (modified) (1 diff)
-
bus/pci/pciintel/pci.c (modified) (2 diffs)
-
bus/pci/pciintel/pci.h (modified) (1 diff)
-
bus/usb/ohci/ohci_batch.c (modified) (1 diff)
-
char/msim-con/msim-con.c (modified) (1 diff)
-
char/ns8250/ns8250.c (modified) (2 diffs)
-
char/ski-con/ski-con.c (modified) (1 diff)
-
char/sun4v-con/sun4v-con.c (modified) (1 diff)
-
hid/usbhid/kbd/kbddev.h (modified) (2 diffs)
-
hid/usbhid/kbd/kbdrepeat.c (modified) (1 diff)
-
hid/usbhid/multimedia/keymap.c (modified) (2 diffs)
-
nic/ar9271/ar9271.c (modified) (1 diff)
-
nic/ar9271/ar9271.h (modified) (2 diffs)
-
nic/ar9271/ath_usb.c (modified) (1 diff)
-
nic/ar9271/htc.c (modified) (1 diff)
-
nic/ar9271/wmi.h (modified) (1 diff)
-
nic/ne2k/ne2k.c (modified) (1 diff)
-
nic/rtl8139/defs.h (modified) (9 diffs)
-
nic/rtl8139/driver.c (modified) (11 diffs)
-
nic/rtl8139/general.c (modified) (2 diffs)
-
nic/rtl8169/driver.c (modified) (7 diffs)
-
test/test1/test1.c (modified) (1 diff)
-
test/test3/test3.c (modified) (1 diff)
-
time/cmos-rtc/cmos-rtc.c (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ahci/ahci.c
rdf6ded8 r1b20da0 1255 1255 * 1256 1256 */ 1257 static errno_t ahci_dev_add(ddf_dev_t *dev) 1257 static errno_t ahci_dev_add(ddf_dev_t *dev) 1258 1258 { 1259 1259 ahci_dev_t *ahci = ahci_ahci_create(dev); -
uspace/drv/block/ata_bd/ata_bd.c
rdf6ded8 r1b20da0 428 428 429 429 d->blocks = 430 (uint32_t) idata.total_lba28_0 | 430 (uint32_t) idata.total_lba28_0 | 431 431 ((uint32_t) idata.total_lba28_1 << 16); 432 432 } else { … … 441 441 (uint64_t) idata.total_lba48_0 | 442 442 ((uint64_t) idata.total_lba48_1 << 16) | 443 ((uint64_t) idata.total_lba48_2 << 32) | 443 ((uint64_t) idata.total_lba48_2 << 32) | 444 444 ((uint64_t) idata.total_lba48_3 << 48); 445 445 } -
uspace/drv/block/ddisk/ddisk.c
rdf6ded8 r1b20da0 156 156 .cmd = CMD_PREDICATE, 157 157 .srcarg = 2, 158 .value = 2 158 .value = 2 159 159 }, 160 160 { … … 162 162 .cmd = CMD_PIO_WRITE_32, 163 163 .value = DDISK_CMD_IRQ_DEASSERT, 164 .addr = NULL 164 .addr = NULL 165 165 }, 166 166 { … … 244 244 245 245 if (size < cnt * DDISK_BLOCK_SIZE) 246 return EINVAL; 246 return EINVAL; 247 247 248 248 for (i = 0; i < cnt; i++) { … … 270 270 errno_t ddisk_bd_get_block_size(bd_srv_t *bd, size_t *rsize) 271 271 { 272 *rsize = DDISK_BLOCK_SIZE; 272 *rsize = DDISK_BLOCK_SIZE; 273 273 return EOK; 274 274 } … … 279 279 280 280 *rnb = ddisk->blocks; 281 return EOK; 281 return EOK; 282 282 } 283 283 … … 304 304 addr_range_t *regs = &hw_res.mem_ranges.ranges[0]; 305 305 ddisk_res->base = RNGABS(*regs); 306 ddisk_res->irq = hw_res.irqs.irqs[0]; 306 ddisk_res->irq = hw_res.irqs.irqs[0]; 307 307 308 308 if (RNGSZ(*regs) < sizeof(ddisk_regs_t)) { … … 550 550 if (rc != EOK) { 551 551 ddf_msg(LVL_ERROR, "Unable to disable PIO."); 552 return rc; 552 return rc; 553 553 } 554 554 -
uspace/drv/bus/isa/isa.c
rdf6ded8 r1b20da0 739 739 "for the device."); 740 740 return rc; 741 } 741 } 742 742 743 743 /* Make the bus device more visible. Does not do anything. */ -
uspace/drv/bus/pci/pciintel/pci.c
rdf6ded8 r1b20da0 539 539 return addr + (addrw64 ? 8 : 4); 540 540 541 mask &= bar; 541 mask &= bar; 542 542 543 543 /* Restore the original value. */ … … 599 599 * @param bus_num Bus number 600 600 */ 601 void pci_bus_scan(pci_bus_t *bus, int bus_num) 601 void pci_bus_scan(pci_bus_t *bus, int bus_num) 602 602 { 603 603 pci_fun_t *fun; -
uspace/drv/bus/pci/pciintel/pci.h
rdf6ded8 r1b20da0 40 40 #include "pci_regs.h" 41 41 42 #define PCI_MAX_HW_RES 10 42 #define PCI_MAX_HW_RES 10 43 43 44 44 typedef struct pciintel_bus { -
uspace/drv/bus/usb/ohci/ohci_batch.c
rdf6ded8 r1b20da0 199 199 assert((ohci_ep->ed->td_head & ED_TDHEAD_HALTED_FLAG) != 0); 200 200 201 /* We don't care where the processing stopped, we just 201 /* We don't care where the processing stopped, we just 202 202 * need to make sure it's not using any of the TDs owned 203 203 * by the transfer. -
uspace/drv/char/msim-con/msim-con.c
rdf6ded8 r1b20da0 205 205 206 206 for (i = 0; i < size; i++) 207 msim_con_putchar(con, dp[i]); 207 msim_con_putchar(con, dp[i]); 208 208 209 209 *nwr = size; -
uspace/drv/char/ns8250/ns8250.c
rdf6ded8 r1b20da0 388 388 389 389 pio_write_8(&ns->regs->mcr, NS8250_MCR_ALL); 390 if ((pio_read_8(&ns->regs->msr) & NS8250_MSR_SIGNALS) 390 if ((pio_read_8(&ns->regs->msr) & NS8250_MSR_SIGNALS) 391 391 != NS8250_MSR_SIGNALS) 392 392 res = false; … … 483 483 /* Interrupt when data received. */ 484 484 pio_write_8(®s->ier, NS8250_IER_RXREADY | NS8250_IER_RXSTATUS); 485 pio_write_8(®s->mcr, NS8250_MCR_DTR | NS8250_MCR_RTS 485 pio_write_8(®s->mcr, NS8250_MCR_DTR | NS8250_MCR_RTS 486 486 | NS8250_MCR_OUT2); 487 487 } -
uspace/drv/char/ski-con/ski-con.c
rdf6ded8 r1b20da0 248 248 249 249 for (i = 0; i < size; i++) 250 ski_con_putchar(con, dp[i]); 250 ski_con_putchar(con, dp[i]); 251 251 252 252 *nwr = size; -
uspace/drv/char/sun4v-con/sun4v-con.c
rdf6ded8 r1b20da0 173 173 174 174 for (i = 0; i < size; i++) 175 sun4v_con_putchar(con, dp[i]); 175 sun4v_con_putchar(con, dp[i]); 176 176 177 177 *nwr = size; -
uspace/drv/hid/usbhid/kbd/kbddev.h
rdf6ded8 r1b20da0 54 54 * data, such as currently pressed keys, modifiers and lock keys. 55 55 * 56 * Also holds a IPC session to the console (since there is now no other way to 56 * Also holds a IPC session to the console (since there is now no other way to 57 57 * communicate with it). 58 58 * … … 98 98 int32_t *led_data; 99 99 100 /** State of the structure (for checking before use). 100 /** State of the structure (for checking before use). 101 101 * 102 102 * 0 - not initialized -
uspace/drv/hid/usbhid/kbd/kbdrepeat.c
rdf6ded8 r1b20da0 136 136 * Start repeating particular key. 137 137 * 138 * @note Only one key is repeated at any time, so calling this function 138 * @note Only one key is repeated at any time, so calling this function 139 139 * effectively cancels auto-repeat of the current repeated key (if any) 140 140 * and 'schedules' another key for auto-repeat. -
uspace/drv/hid/usbhid/multimedia/keymap.c
rdf6ded8 r1b20da0 41 41 42 42 /** 43 * Mapping between USB HID multimedia usages (from HID Usage Tables) and 43 * Mapping between USB HID multimedia usages (from HID Usage Tables) and 44 44 * corresponding HelenOS key codes. 45 45 * … … 72 72 * 73 73 * @param usage USB HID Consumer Page Usage number. 74 * 74 * 75 75 * @retval HelenOS key code corresponding to the given USB Consumer Page Usage. 76 76 */ -
uspace/drv/nic/ar9271/ar9271.c
rdf6ded8 r1b20da0 381 381 rate_msg.legacy_rates_count = ARRAY_SIZE(ieee80211bg_data_rates); 382 382 memcpy(&rate_msg.legacy_rates, 383 ieee80211bg_data_rates, 383 ieee80211bg_data_rates, 384 384 ARRAY_SIZE(ieee80211bg_data_rates)); 385 385 -
uspace/drv/nic/ar9271/ar9271.h
rdf6ded8 r1b20da0 148 148 AR9271_AGC_CONTROL = 0x9860, 149 149 AR9271_PHY_CAL = 0x9864, 150 AR9271_PHY_SYNTH_CONTROL = 0x9874, 150 AR9271_PHY_SYNTH_CONTROL = 0x9874, 151 151 AR9271_PHY_SPECTRAL_SCAN = 0x9910, 152 152 AR9271_PHY_RADAR0 = 0x9954, … … 156 156 AR9271_PHY_MODE = 0xA200, 157 157 AR9271_PHY_CCK_TX_CTRL = 0xA204, 158 AR9271_PHY_TPCRG1 = 0xA258, 158 AR9271_PHY_TPCRG1 = 0xA258, 159 159 AR9271_CARRIER_LEAK_CONTROL = 0xA358, 160 160 AR9271_ADC_CONTROL_OFF_PWDADC = 0x00008000, 161 161 AR9271_AGC_CONTROL_CALIB = 0x00000001, 162 162 AR9271_AGC_CONTROL_NF_CALIB = 0x00000002, 163 AR9271_AGC_CONTROL_NF_CALIB_EN = 0x00008000, 163 AR9271_AGC_CONTROL_NF_CALIB_EN = 0x00008000, 164 164 AR9271_AGC_CONTROL_TX_CALIB = 0x00010000, 165 165 AR9271_AGC_CONTROL_NF_NOT_UPDATE = 0x00020000, -
uspace/drv/nic/ar9271/ath_usb.c
rdf6ded8 r1b20da0 137 137 /** Send data message. 138 138 * 139 * @param ath Generic Atheros WiFi device structure. 139 * @param ath Generic Atheros WiFi device structure. 140 140 * @param buffer Buffer with data to send. 141 141 * @param buffer_size Buffer size. -
uspace/drv/nic/ar9271/htc.c
rdf6ded8 r1b20da0 320 320 ((void *) buffer + sizeof(htc_frame_header_t)); 321 321 322 config_message->message_id = 322 config_message->message_id = 323 323 host2uint16_t_be(HTC_MESSAGE_CONFIG); 324 324 /* Magic number to initialize device. */ -
uspace/drv/nic/ar9271/wmi.h
rdf6ded8 r1b20da0 29 29 /** @file wmi.h 30 30 * 31 * Definitions of the Atheros WMI protocol specified in the 31 * Definitions of the Atheros WMI protocol specified in the 32 32 * Wireless Module Interface (WMI). 33 33 * -
uspace/drv/nic/ne2k/ne2k.c
rdf6ded8 r1b20da0 68 68 { 69 69 .base = 0, 70 .size = NE2K_IO_SIZE, 70 .size = NE2K_IO_SIZE, 71 71 } 72 72 }; -
uspace/drv/nic/rtl8139/defs.h
rdf6ded8 r1b20da0 310 310 RCR_ACCEPT_MULTICAST = 1 << 2, /**< Accept multicast */ 311 311 RCR_ACCEPT_PHYS_MATCH = 1 << 1, /**< Accept device MAC address match */ 312 RCR_ACCEPT_ALL_PHYS = 1 << 0, /**< Accept all frames with 313 * phys. desticnation 312 RCR_ACCEPT_ALL_PHYS = 1 << 0, /**< Accept all frames with 313 * phys. desticnation 314 314 */ 315 315 RCR_ACCEPT_MASK = (1 << 6) - 1 /**< Mask of accept part */ … … 325 325 CS_F_LINK100 = (1 << 6), 326 326 CS_F_CONNECT = (1 << 5), 327 CS_CON_STATUS = (1 << 3), /**< connection status: 328 * 1 = valid, 0 = disconnected 327 CS_CON_STATUS = (1 << 3), /**< connection status: 328 * 1 = valid, 0 = disconnected 329 329 */ 330 330 CS_CON_STATUS_EN = (1 << 2), /**< LED1 pin connection status indication */ … … 361 361 enum rtl8139_anar { 362 362 ANAR_NEXT_PAGE = (1 << 15), /**< Next page bit, 0 - primary capability 363 * 1 - protocol specific 363 * 1 - protocol specific 364 364 */ 365 365 ANAR_ACK = (1 << 14), /**< Capability reception acknowledge */ … … 371 371 ANAR_10_FD = (1 << 6), /**< 10BASE_T full duplex */ 372 372 ANAR_10_HD = (1 << 5), /**< 10BASE_T half duplex */ 373 ANAR_SELECTOR = 0x1 /**< Selector, 373 ANAR_SELECTOR = 0x1 /**< Selector, 374 374 * CSMA/CD (0x1) supported only 375 375 */ … … 391 391 392 392 /** Descending/ascending grow of Rx/Tx FIFO (to test FIFO SRAM only) */ 393 CONFIG5_FIFO_ADDR_PTR = (1 << 3), 393 CONFIG5_FIFO_ADDR_PTR = (1 << 3), 394 394 /** Powersave if cable is disconnected */ 395 CONFIG5_LINK_DOWN_POWERSAVE = (1 << 2), 395 CONFIG5_LINK_DOWN_POWERSAVE = (1 << 2), 396 396 397 397 CONFIG5_LAN_WAKE = (1 << 1), /**< LANWake signal enabled */ … … 411 411 CONFIG4_RxFIFOAutoClr = (1 << 7), /**< Automatic RxFIFO owerflow clear */ 412 412 CONFIG4_AnaOff = (1 << 6), /**< Analog poweroff */ 413 CONFIG4_LongWF = (1 << 5), /**< Long wakeup frame 414 * (2xCRC8 + 3xCRC16) 413 CONFIG4_LongWF = (1 << 5), /**< Long wakeup frame 414 * (2xCRC8 + 3xCRC16) 415 415 */ 416 416 CONFIG4_LWPME = (1 << 4), /**< LWAKE and PMEB assertion */ … … 450 450 451 451 LOOPBACK_SHIFT = 17, /**< Loopback mode shift */ 452 LOOPBACK_SIZE = 2, /**< Loopback mode size 453 * 00 = normal, 11 = loopback 452 LOOPBACK_SIZE = 2, /**< Loopback mode size 453 * 00 = normal, 11 = loopback 454 454 */ 455 455 … … 462 462 TX_RETRY_COUNT_SIZE = 4, /**< Retries before aborting size */ 463 463 464 CLEAR_ABORT = 1 << 0 /**< Retransmit aborted frame at the last 465 * transmitted descriptor 464 CLEAR_ABORT = 1 << 0 /**< Retransmit aborted frame at the last 465 * transmitted descriptor 466 466 */ 467 467 }; … … 500 500 #define RTL8139_RXFLAGS_SIZE_64 3 501 501 502 /** Get the buffer initial size without 16B padding 502 /** Get the buffer initial size without 16B padding 503 503 * Size is (8 + 2^flags) kB (^ in mean power) 504 504 * -
uspace/drv/nic/rtl8139/driver.c
rdf6ded8 r1b20da0 154 154 uint32_t rcr = rtl8139->rcr_data.rcr_base | rtl8139->rcr_data.ucast_mask 155 155 | rtl8139->rcr_data.mcast_mask | rtl8139->rcr_data.bcast_mask 156 | rtl8139->rcr_data.defect_mask | 156 | rtl8139->rcr_data.defect_mask | 157 157 (RXBUF_SIZE_FLAGS << RCR_RBLEN_SHIFT); 158 158 … … 288 288 nic_channel_mode_t duplex, nic_role_t); 289 289 290 static errno_t rtl8139_pause_get(ddf_fun_t*, nic_result_t*, nic_result_t*, 290 static errno_t rtl8139_pause_get(ddf_fun_t*, nic_result_t*, nic_result_t*, 291 291 uint16_t *); 292 292 static errno_t rtl8139_pause_set(ddf_fun_t*, int, int, uint16_t); … … 295 295 static errno_t rtl8139_autoneg_disable(ddf_fun_t *fun); 296 296 static errno_t rtl8139_autoneg_probe(ddf_fun_t *fun, uint32_t *our_advertisement, 297 uint32_t *their_advertisement, nic_result_t *result, 297 uint32_t *their_advertisement, nic_result_t *result, 298 298 nic_result_t *their_result); 299 299 static errno_t rtl8139_autoneg_restart(ddf_fun_t *fun); … … 501 501 * @param rtl8139 controller private data 502 502 */ 503 static void rtl8139_rx_reset(rtl8139_t *rtl8139) 503 static void rtl8139_rx_reset(rtl8139_t *rtl8139) 504 504 { 505 505 /* Disable receiver, update offset and enable receiver again */ … … 511 511 write_barrier(); 512 512 pio_write_32(rtl8139->io_port + CAPR, 0); 513 pio_write_32(rtl8139->io_port + RBSTART, 513 pio_write_32(rtl8139->io_port + RBSTART, 514 514 PTR2U32(rtl8139->rx_buff_phys)); 515 515 … … 680 680 while (tx_used != tx_next) { 681 681 size_t desc_to_check = tx_used % TX_BUFF_COUNT; 682 void * tsd_to_check = rtl8139->io_port + TSD0 682 void * tsd_to_check = rtl8139->io_port + TSD0 683 683 + desc_to_check * sizeof(uint32_t); 684 684 uint32_t tsd_value = pio_read_32(tsd_to_check); … … 1386 1386 1387 1387 if (rtl8139->hw_version < RTL8139_VER_COUNT) { 1388 str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, 1388 str_cpy(info->model_name, NIC_MODEL_MAX_LENGTH, 1389 1389 model_names[rtl8139->hw_version]); 1390 1390 } else { … … 1465 1465 }; 1466 1466 1467 /** Check if pause frame operations are valid in current situation 1467 /** Check if pause frame operations are valid in current situation 1468 1468 * 1469 1469 * @param rtl8139 RTL8139 private structure … … 1502 1502 * @return EOK if succeed 1503 1503 */ 1504 static errno_t rtl8139_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 1504 static errno_t rtl8139_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 1505 1505 nic_result_t *we_receive, uint16_t *time) 1506 1506 { … … 1537 1537 * @return EOK if succeed, INVAL if the pause frame has no sence 1538 1538 */ 1539 static errno_t rtl8139_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 1539 static errno_t rtl8139_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 1540 1540 uint16_t time) 1541 1541 { … … 2091 2091 rtl8139->int_mask = INT_TIME_OUT; 2092 2092 2093 /* Force timer interrupt start be writing nonzero value to timer 2093 /* Force timer interrupt start be writing nonzero value to timer 2094 2094 * interrutp register (should be small to prevent big delay) 2095 2095 * Read TCTR to reset timer counter -
uspace/drv/nic/rtl8139/general.c
rdf6ded8 r1b20da0 72 72 } 73 73 74 /** Initialize the timer register structures 74 /** Initialize the timer register structures 75 75 * 76 * The structure will be initialized to the state that the first call of 76 * The structure will be initialized to the state that the first call of 77 77 * rtl8139_timer_act_step function will be the period expiration 78 78 * … … 84 84 */ 85 85 errno_t rtl8139_timer_act_init(rtl8139_timer_act_t * ta, uint32_t timer_freq, 86 const struct timeval *time) 86 const struct timeval *time) 87 87 { 88 88 if (!ta || timer_freq == 0 || !time) -
uspace/drv/nic/rtl8169/driver.c
rdf6ded8 r1b20da0 59 59 static errno_t rtl8169_set_operation_mode(ddf_fun_t *fun, int speed, 60 60 nic_channel_mode_t duplex, nic_role_t role); 61 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 61 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 62 62 nic_result_t *we_receive, uint16_t *time); 63 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 63 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 64 64 uint16_t time); 65 65 static errno_t rtl8169_autoneg_enable(ddf_fun_t *fun, uint32_t advertisement); … … 237 237 /* Allocate TX ring */ 238 238 rtl8169->tx_ring = AS_AREA_ANY; 239 rc = dmamem_map_anonymous(TX_RING_SIZE, DMAMEM_4GiB, 239 rc = dmamem_map_anonymous(TX_RING_SIZE, DMAMEM_4GiB, 240 240 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->tx_ring_phys, 241 241 (void **)&rtl8169->tx_ring); … … 251 251 /* Allocate RX ring */ 252 252 rtl8169->rx_ring = AS_AREA_ANY; 253 rc = dmamem_map_anonymous(RX_RING_SIZE, DMAMEM_4GiB, 253 rc = dmamem_map_anonymous(RX_RING_SIZE, DMAMEM_4GiB, 254 254 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->rx_ring_phys, 255 255 (void **)&rtl8169->rx_ring); … … 265 265 /* Allocate TX buffers */ 266 266 rtl8169->tx_buff = AS_AREA_ANY; 267 rc = dmamem_map_anonymous(TX_BUFFERS_SIZE, DMAMEM_4GiB, 267 rc = dmamem_map_anonymous(TX_BUFFERS_SIZE, DMAMEM_4GiB, 268 268 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->tx_buff_phys, 269 269 &rtl8169->tx_buff); … … 277 277 /* Allocate RX buffers */ 278 278 rtl8169->rx_buff = AS_AREA_ANY; 279 rc = dmamem_map_anonymous(RX_BUFFERS_SIZE, DMAMEM_4GiB, 279 rc = dmamem_map_anonymous(RX_BUFFERS_SIZE, DMAMEM_4GiB, 280 280 AS_AREA_READ | AS_AREA_WRITE, 0, &rtl8169->rx_buff_phys, 281 281 &rtl8169->rx_buff); … … 594 594 } 595 595 596 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 596 static errno_t rtl8169_pause_get(ddf_fun_t *fun, nic_result_t *we_send, 597 597 nic_result_t *we_receive, uint16_t *time) 598 598 { … … 600 600 } 601 601 602 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 602 static errno_t rtl8169_pause_set(ddf_fun_t *fun, int allow_send, int allow_receive, 603 603 uint16_t time) 604 604 { -
uspace/drv/test/test1/test1.c
rdf6ded8 r1b20da0 110 110 if (rc != expected_rc) { 111 111 fprintf(stderr, 112 NAME ": Unexpected error registering function `%s'.\n" 112 NAME ": Unexpected error registering function `%s'.\n" 113 113 NAME ": Expected \"%s\" but got \"%s\".\n", 114 114 name, str_error(expected_rc), str_error(rc)); -
uspace/drv/test/test3/test3.c
rdf6ded8 r1b20da0 95 95 ddf_msg(LVL_NOTE, "Registered exposed function `%s'.", fun_name); 96 96 97 leave: 97 leave: 98 98 free(fun_name); 99 99 -
uspace/drv/time/cmos-rtc/cmos-rtc.c
rdf6ded8 r1b20da0 191 191 * 192 192 * @return EOK on success or an error code 193 */ 193 */ 194 194 static errno_t 195 195 rtc_dev_initialize(rtc_t *rtc) … … 726 726 * @return The converted value 727 727 */ 728 static unsigned 728 static unsigned 729 729 bcd2bin(unsigned bcd) 730 730 {
Note:
See TracChangeset
for help on using the changeset viewer.
