Changeset cde999a in mainline for uspace/drv
- Timestamp:
- 2018-01-04T20:22:51Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d95c9d, 84a1a54
- Parents:
- 3c7702c0
- git-author:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 19:18:29)
- git-committer:
- Jiří Zárevúcky <zarevucky.jiri@…> (2018-01-04 20:22:51)
- Location:
- uspace/drv
- Files:
-
- 20 edited
-
block/ata_bd/main.c (modified) (1 diff)
-
block/ddisk/ddisk.c (modified) (1 diff)
-
block/usbmast/main.c (modified) (1 diff)
-
char/ns8250/ns8250.c (modified) (3 diffs)
-
nic/ar9271/ar9271.c (modified) (2 diffs)
-
nic/ar9271/ath_usb.c (modified) (5 diffs)
-
nic/ar9271/htc.c (modified) (10 diffs)
-
nic/ar9271/hw.c (modified) (3 diffs)
-
nic/ar9271/wmi.c (modified) (7 diffs)
-
nic/e1k/e1k.c (modified) (9 diffs)
-
nic/rtl8139/driver.c (modified) (8 diffs)
-
nic/rtl8139/general.c (modified) (1 diff)
-
platform/amdm37x/main.c (modified) (1 diff)
-
platform/mac/mac.c (modified) (1 diff)
-
platform/malta/malta.c (modified) (1 diff)
-
platform/pc/pc.c (modified) (1 diff)
-
platform/sun4u/sun4u.c (modified) (1 diff)
-
root/root/root.c (modified) (2 diffs)
-
root/virt/virt.c (modified) (1 diff)
-
time/cmos-rtc/cmos-rtc.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/block/ata_bd/main.c
r3c7702c0 rcde999a 106 106 * 107 107 * @param dev New device 108 * @return EOK on success or negativeerror code.108 * @return EOK on success or an error code. 109 109 */ 110 110 static int ata_dev_add(ddf_dev_t *dev) -
uspace/drv/block/ddisk/ddisk.c
r3c7702c0 rcde999a 408 408 * 409 409 * @param dev New device 410 * @return EOK on success or negativeerror code.410 * @return EOK on success or an error code. 411 411 */ 412 412 static int ddisk_dev_add(ddf_dev_t *dev) -
uspace/drv/block/usbmast/main.c
r3c7702c0 rcde999a 216 216 * @param mdev Mass storage device 217 217 * @param lun LUN 218 * @return EOK on success or negativeerror code.218 * @return EOK on success or an error code. 219 219 */ 220 220 static int usbmast_fun_create(usbmast_dev_t *mdev, unsigned lun) -
uspace/drv/char/ns8250/ns8250.c
r3c7702c0 rcde999a 405 405 * 406 406 * @param ns Serial port device 407 * @return Zero on success, negativeerror number otherwise407 * @return Zero on success, error number otherwise 408 408 */ 409 409 static int ns8250_dev_initialize(ns8250_t *ns) … … 499 499 * 500 500 * @param ns Serial port device 501 * @return Zero on success, negativeerror number otherwise501 * @return Zero on success, error number otherwise 502 502 */ 503 503 static int ns8250_interrupt_enable(ns8250_t *ns) … … 544 544 * @param port The base address of the serial port device's ports. 545 545 * @param baud_rate The baud rate to be used by the device. 546 * @return Zero on success, negativeerror number otherwise (EINVAL546 * @return Zero on success, error number otherwise (EINVAL 547 547 * if the specified baud_rate is not valid). 548 548 */ -
uspace/drv/nic/ar9271/ar9271.c
r3c7702c0 rcde999a 734 734 * @param ar9271 AR9271 device structure 735 735 * 736 * @return EOK if succeed, negativeerror code otherwise736 * @return EOK if succeed, error code otherwise 737 737 * 738 738 */ … … 877 877 * @param dev The device structure. 878 878 * 879 * @return EOK if succeed, negativeerror code otherwise879 * @return EOK if succeed, error code otherwise 880 880 */ 881 881 static int ar9271_add_device(ddf_dev_t *dev) -
uspace/drv/nic/ar9271/ath_usb.c
r3c7702c0 rcde999a 56 56 * @param usb_device Connected USB device. 57 57 * 58 * @return EOK if succeed, negativeerror code otherwise.58 * @return EOK if succeed, error code otherwise. 59 59 * 60 60 */ … … 91 91 * @param buffer_size Buffer size. 92 92 * 93 * @return EOK if succeed, negativeerror code otherwise.93 * @return EOK if succeed, error code otherwise. 94 94 * 95 95 */ … … 111 111 * @param transferred_size Real size of read data. 112 112 * 113 * @return EOK if succeed, negativeerror code otherwise.113 * @return EOK if succeed, error code otherwise. 114 114 * 115 115 */ … … 130 130 * @param buffer_size Buffer size. 131 131 * 132 * @return EOK if succeed, negativeerror code otherwise.132 * @return EOK if succeed, error code otherwise. 133 133 * 134 134 */ … … 166 166 * @param transferred_size Real size of read data. 167 167 * 168 * @return EOK if succeed, negativeerror code otherwise.168 * @return EOK if succeed, error code otherwise. 169 169 * 170 170 */ -
uspace/drv/nic/ar9271/htc.c
r3c7702c0 rcde999a 150 150 * @param endpoint_id Destination endpoint. 151 151 * 152 * @return EOK if succeed, negativeerror code otherwise.152 * @return EOK if succeed, error code otherwise. 153 153 * 154 154 */ … … 173 173 * @param endpoint_id Destination endpoint. 174 174 * 175 * @return EOK if succeed, negativeerror code otherwise.175 * @return EOK if succeed, error code otherwise. 176 176 * 177 177 */ … … 196 196 * @param transferred_size Real size of read data. 197 197 * 198 * @return EOK if succeed, negativeerror code otherwise.198 * @return EOK if succeed, error code otherwise. 199 199 * 200 200 */ … … 216 216 * @param transferred_size Real size of read data. 217 217 * 218 * @return EOK if succeed, negativeerror code otherwise.218 * @return EOK if succeed, error code otherwise. 219 219 * 220 220 */ … … 236 236 * 237 237 * @return EOK if succeed, EINVAL when failed to connect service, 238 * negativeerror code otherwise.238 * error code otherwise. 239 239 * 240 240 */ … … 309 309 * @param htc_device HTC device structure. 310 310 * 311 * @return EOK if succeed, negativeerror code otherwise.311 * @return EOK if succeed, error code otherwise. 312 312 * 313 313 */ … … 357 357 * @param htc_device HTC device structure. 358 358 * 359 * @return EOK if succeed, negativeerror code otherwise.359 * @return EOK if succeed, error code otherwise. 360 360 * 361 361 */ … … 391 391 * 392 392 * @return EOK if succeed, EINVAL if response error, 393 * negativeerror code otherwise.393 * error code otherwise. 394 394 * 395 395 */ … … 427 427 * @param htc_device HTC device structure to be initialized. 428 428 * 429 * @return EOK if succeed, negativeerror code otherwise.429 * @return EOK if succeed, error code otherwise. 430 430 * 431 431 */ … … 448 448 * @param htc_device HTC device structure. 449 449 * 450 * @return EOK if succeed, negativeerror code otherwise.450 * @return EOK if succeed, error code otherwise. 451 451 * 452 452 */ -
uspace/drv/nic/ar9271/hw.c
r3c7702c0 rcde999a 49 49 * 50 50 * @return EOK if succeed, ETIMEOUT on timeout, 51 * negativeerror code otherwise.51 * error code otherwise. 52 52 * 53 53 */ … … 215 215 * @param ar9271 Device structure. 216 216 * 217 * @return EOK if succeed, negativeerror code otherwise.217 * @return EOK if succeed, error code otherwise. 218 218 * 219 219 */ … … 636 636 * @param ar9271 Device structure. 637 637 * 638 * @return EOK if succeed, negativeerror code otherwise.638 * @return EOK if succeed, error code otherwise. 639 639 */ 640 640 int hw_init(ar9271_t *ar9271) -
uspace/drv/nic/ar9271/wmi.c
r3c7702c0 rcde999a 47 47 * @param res Stored result. 48 48 * 49 * @return EOK if succeed, negativeerror code otherwise.49 * @return EOK if succeed, error code otherwise. 50 50 * 51 51 */ … … 79 79 * @param val Value to be written 80 80 * 81 * @return EOK if succeed, negativeerror code otherwise.81 * @return EOK if succeed, error code otherwise. 82 82 * 83 83 */ … … 112 112 * @param clear_bit Bit to be cleared. 113 113 * 114 * @return EOK if succeed, negativeerror code otherwise.114 * @return EOK if succeed, error code otherwise. 115 115 * 116 116 */ … … 146 146 * @param set_bit Bit to be set. 147 147 * 148 * @return EOK if succeed, negativeerror code otherwise.148 * @return EOK if succeed, error code otherwise. 149 149 * 150 150 */ … … 161 161 * @param clear_bit Bit to be cleared. 162 162 * 163 * @return EOK if succeed, negativeerror code otherwise.163 * @return EOK if succeed, error code otherwise. 164 164 * 165 165 */ … … 176 176 * @param elements Number of elements in array. 177 177 * 178 * @return EOK if succeed, negativeerror code otherwise.178 * @return EOK if succeed, error code otherwise. 179 179 * 180 180 */ … … 220 220 * @param response_buffer Buffer with response data. 221 221 * 222 * @return EOK if succeed, negativeerror code otherwise.222 * @return EOK if succeed, error code otherwise. 223 223 * 224 224 */ -
uspace/drv/nic/e1k/e1k.c
r3c7702c0 rcde999a 1261 1261 * @param[out] handle IRQ capability handle if the handler was registered 1262 1262 * 1263 * @return Negativeerror code otherwise1263 * @return An error code otherwise 1264 1264 * 1265 1265 */ … … 1370 1370 * 1371 1371 * @return EOK if succeed 1372 * @return Negativeerror code otherwise1372 * @return An error code otherwise 1373 1373 * 1374 1374 */ … … 1524 1524 * 1525 1525 * @return EOK if succeed 1526 * @return Negativeerror code otherwise1526 * @return An error code otherwise 1527 1527 * 1528 1528 */ … … 1940 1940 * 1941 1941 * @return EOK if succeed 1942 * @return Negativeerror code otherwise1942 * @return An error code otherwise 1943 1943 * 1944 1944 */ … … 1965 1965 * 1966 1966 * @return EOK if succeed 1967 * @return Negativeerror code otherwise1967 * @return An error code otherwise 1968 1968 * 1969 1969 */ … … 1993 1993 * 1994 1994 * @return EOK if succeed 1995 * @return Negativeerror code otherwise1995 * @return An error code otherwise 1996 1996 * 1997 1997 */ … … 2107 2107 * 2108 2108 * @return EOK if successed 2109 * @return Negativeerror code otherwise2109 * @return An error code otherwise 2110 2110 * 2111 2111 */ … … 2255 2255 * 2256 2256 * @return EOK if succeed 2257 * @return Negativeerror code otherwise2257 * @return An error code otherwise 2258 2258 * 2259 2259 */ … … 2289 2289 * 2290 2290 * @return EOK if succeed 2291 * @return Negativeerror code otherwise2291 * @return An error code otherwise 2292 2292 */ 2293 2293 static int e1000_set_addr(ddf_fun_t *fun, const nic_address_t *addr) -
uspace/drv/nic/rtl8139/driver.c
r3c7702c0 rcde999a 217 217 * @param address The place to store the address 218 218 * 219 * @return EOK if succeed, negativeerror code otherwise219 * @return EOK if succeed, error code otherwise 220 220 */ 221 221 inline static void rtl8139_hw_get_addr(rtl8139_t *rtl8139, … … 844 844 * @param[out] handle IRQ capability handle if the handler was registered. 845 845 * 846 * @return Negativeerror code otherwise.846 * @return An error code otherwise. 847 847 */ 848 848 inline static int rtl8139_register_int_handler(nic_t *nic_data, cap_handle_t *handle) … … 1025 1025 * @param hw_resources Devices hardware resources 1026 1026 * 1027 * @return EOK if succeed, negativeerror code otherwise1027 * @return EOK if succeed, error code otherwise 1028 1028 */ 1029 1029 static int rtl8139_fill_resource_info(ddf_dev_t *dev, const hw_res_list_parsed_t … … 1065 1065 * @param dev The device structure 1066 1066 * 1067 * @return EOK if succeed, negativeerror code otherwise1067 * @return EOK if succeed, error code otherwise 1068 1068 */ 1069 1069 static int rtl8139_get_resource_info(ddf_dev_t *dev) … … 1147 1147 * @param dev The device information 1148 1148 * 1149 * @return EOK if succeed, negativeerror code otherwise1149 * @return EOK if succeed, error code otherwise 1150 1150 */ 1151 1151 static int rtl8139_device_initialize(ddf_dev_t *dev) … … 1206 1206 * @param dev The RTL8139 device. 1207 1207 * 1208 * @return EOK if successed, negativeerror code otherwise1208 * @return EOK if successed, error code otherwise 1209 1209 */ 1210 1210 static int rtl8139_pio_enable(ddf_dev_t *dev) … … 1256 1256 * @param dev The RTL8139 device. 1257 1257 * 1258 * @return EOK if added successfully, negativeerror code otherwise1258 * @return EOK if added successfully, error code otherwise 1259 1259 */ 1260 1260 int rtl8139_dev_add(ddf_dev_t *dev) … … 1339 1339 * @param max_len Maximal addresss length to store 1340 1340 * 1341 * @return EOK if succeed, negativeerror code otherwise1341 * @return EOK if succeed, error code otherwise 1342 1342 */ 1343 1343 static int rtl8139_set_addr(ddf_fun_t *fun, const nic_address_t *addr) -
uspace/drv/nic/rtl8139/general.c
r3c7702c0 rcde999a 81 81 * @param time The requested time 82 82 * 83 * @return EOK if succeed, negativeerror code otherwise83 * @return EOK if succeed, error code otherwise 84 84 */ 85 85 int rtl8139_timer_act_init(rtl8139_timer_act_t * ta, uint32_t timer_freq, -
uspace/drv/platform/amdm37x/main.c
r3c7702c0 rcde999a 209 209 * (both of HW and pseudo devices). 210 210 * 211 * @return Zero on success, negativeerror number otherwise.211 * @return Zero on success, error number otherwise. 212 212 * 213 213 */ -
uspace/drv/platform/mac/mac.c
r3c7702c0 rcde999a 173 173 * (both of HW and pseudo devices). 174 174 * 175 * @return Zero on success, negativeerror number otherwise.175 * @return Zero on success, error number otherwise. 176 176 * 177 177 */ -
uspace/drv/platform/malta/malta.c
r3c7702c0 rcde999a 221 221 * @param dev The device which is root of the whole device tree (both 222 222 * of HW and pseudo devices). 223 * @return Zero on success, negativeerror number otherwise.223 * @return Zero on success, error number otherwise. 224 224 */ 225 225 static int malta_dev_add(ddf_dev_t *dev) -
uspace/drv/platform/pc/pc.c
r3c7702c0 rcde999a 203 203 * @param dev The device which is root of the whole device tree (both 204 204 * of HW and pseudo devices). 205 * @return Zero on success, negativeerror number otherwise.205 * @return Zero on success, error number otherwise. 206 206 */ 207 207 static int pc_dev_add(ddf_dev_t *dev) -
uspace/drv/platform/sun4u/sun4u.c
r3c7702c0 rcde999a 240 240 * @param dev The device which is root of the whole device tree (both 241 241 * of HW and pseudo devices). 242 * @return Zero on success, negativeerror number otherwise.242 * @return Zero on success, error number otherwise. 243 243 */ 244 244 static int sun4u_dev_add(ddf_dev_t *dev) -
uspace/drv/root/root/root.c
r3c7702c0 rcde999a 84 84 * 85 85 * @param dev Device 86 * @return EOK on success or negativeerror code86 * @return EOK on success or an error code 87 87 */ 88 88 static int add_virtual_root_fun(ddf_dev_t *dev) … … 125 125 * 126 126 * @param dev Device 127 * @return EOK on success or negativeerror code127 * @return EOK on success or an error code 128 128 */ 129 129 static int add_platform_fun(ddf_dev_t *dev) -
uspace/drv/root/virt/virt.c
r3c7702c0 rcde999a 98 98 * @param vdev The virtual device 99 99 * @param vfun Virtual function description 100 * @return EOK on success or negativeerror code.100 * @return EOK on success or an error code. 101 101 */ 102 102 static int virt_add_fun(virt_t *virt, virtual_function_t *vfun) -
uspace/drv/time/cmos-rtc/cmos-rtc.c
r3c7702c0 rcde999a 190 190 * @param rtc Pointer to the RTC device 191 191 * 192 * @return EOK on success or a negativeerror code192 * @return EOK on success or an error code 193 193 */ 194 194 static int … … 314 314 * @param t Pointer to the time variable 315 315 * 316 * @return EOK on success or a negativeerror code316 * @return EOK on success or an error code 317 317 */ 318 318 static int … … 436 436 * @param t The time value to set 437 437 * 438 * @return EOK or a negativeerror code438 * @return EOK or an error code 439 439 */ 440 440 static int … … 544 544 * @param status The status of the battery 545 545 * 546 * @return EOK on success or a negativeerror code546 * @return EOK on success or an error code 547 547 */ 548 548 static int … … 577 577 * @param dev The RTC device 578 578 * 579 * @return EOK on success or a negativeerror code579 * @return EOK on success or an error code 580 580 */ 581 581 static int … … 643 643 * @param dev The RTC device 644 644 * 645 * @return EOK on success or a negativeerror code645 * @return EOK on success or an error code 646 646 */ 647 647 static int … … 682 682 * @param fun The function node 683 683 * 684 * @return EOK on success or a negativeerror code684 * @return EOK on success or an error code 685 685 */ 686 686 static int
Note:
See TracChangeset
for help on using the changeset viewer.
