Changeset eebecdc in mainline for uspace/drv/nic/e1k/e1k.c
- Timestamp:
- 2025-03-13T18:30:36Z (12 months ago)
- Children:
- e3e53cc
- Parents:
- e494d7b (diff), da54714 (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. - File:
-
- 1 edited
-
uspace/drv/nic/e1k/e1k.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
re494d7b reebecdc 1 1 /* 2 * Copyright (c) 2025 Jiri Svoboda 2 3 * Copyright (c) 2011 Zdenek Bouska 3 4 * All rights reserved. … … 220 221 221 222 static errno_t e1000_dev_add(ddf_dev_t *); 223 static errno_t e1000_dev_quiesce(ddf_dev_t *); 222 224 223 225 /** Basic driver operations for E1000 driver */ 224 226 static driver_ops_t e1000_driver_ops = { 225 .dev_add = e1000_dev_add 227 .dev_add = e1000_dev_add, 228 .dev_quiesce = e1000_dev_quiesce 226 229 }; 227 230 … … 1269 1272 * 1270 1273 */ 1271 inlinestatic errno_t e1000_register_int_handler(nic_t *nic,1274 static errno_t e1000_register_int_handler(nic_t *nic, 1272 1275 cap_irq_handle_t *handle) 1273 1276 { … … 1918 1921 * 1919 1922 */ 1920 inlinestatic void e1000_delete_dev_data(ddf_dev_t *dev)1923 static void e1000_delete_dev_data(ddf_dev_t *dev) 1921 1924 { 1922 1925 assert(dev); … … 2223 2226 } 2224 2227 2228 /** Quiesce E1000 device. 2229 * 2230 * @param dev E1000 device. 2231 * 2232 */ 2233 errno_t e1000_dev_quiesce(ddf_dev_t *dev) 2234 { 2235 nic_t *nic = ddf_dev_data_get(dev); 2236 e1000_t *e1000 = DRIVER_DATA_NIC(nic); 2237 errno_t rc; 2238 2239 ddf_msg(LVL_DEBUG, "e1000_dev_quiesce()"); 2240 2241 e1000_disable_interrupts(e1000); 2242 rc = e1000_reset(nic); 2243 if (rc != EOK) 2244 ddf_msg(LVL_ERROR, "e1000_dev_quiesce failed"); 2245 return rc; 2246 } 2247 2225 2248 /** Read 16-bit value from EEPROM of E1000 adapter 2226 2249 *
Note:
See TracChangeset
for help on using the changeset viewer.
