Changeset 54a1ca7 in mainline
- Timestamp:
- 2014-07-20T16:39:50Z (11 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 87a3df7f, cbfece7
- Parents:
- 9bd4615
- Location:
- uspace
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/e1k/e1k.c
r9bd4615 r54a1ca7 32 32 * 33 33 */ 34 35 /* XXX Fix this */36 #define _DDF_DATA_IMPLANT37 34 38 35 #include <assert.h> … … 2153 2150 nic_set_ddf_fun(nic, fun); 2154 2151 ddf_fun_set_ops(fun, &e1000_dev_ops); 2155 ddf_fun_data_implant(fun, nic);2156 2152 2157 2153 rc = e1000_register_int_handler(nic); -
uspace/drv/nic/ne2k/ne2k.c
r9bd4615 r54a1ca7 37 37 * @brief Bridge between NICF, DDF and business logic for the NIC 38 38 */ 39 40 /* XXX Fix this */41 #define _DDF_DATA_IMPLANT42 39 43 40 #include <stdio.h> … … 405 402 return ENOMEM; 406 403 } 404 407 405 nic_set_ddf_fun(nic_data, fun); 408 406 ddf_fun_set_ops(fun, &ne2k_dev_ops); 409 ddf_fun_data_implant(fun, nic_data);410 407 411 408 rc = ddf_fun_bind(fun); -
uspace/drv/nic/rtl8139/driver.c
r9bd4615 r54a1ca7 26 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 27 27 */ 28 29 /* XXX Fix this */30 #define _DDF_DATA_IMPLANT31 28 32 29 #include <assert.h> … … 1331 1328 goto err_srv; 1332 1329 } 1330 1333 1331 nic_set_ddf_fun(nic_data, fun); 1334 1332 ddf_fun_set_ops(fun, &rtl8139_dev_ops); 1335 ddf_fun_data_implant(fun, nic_data);1336 1333 1337 1334 rc = ddf_fun_bind(fun); -
uspace/lib/nic/src/nic_driver.c
r9bd4615 r54a1ca7 914 914 nic_t *nic_get_from_ddf_fun(ddf_fun_t *fun) 915 915 { 916 return (nic_t *) ddf_ fun_data_get(fun);916 return (nic_t *) ddf_dev_data_get(ddf_fun_get_dev(fun)); 917 917 } 918 918
Note:
See TracChangeset
for help on using the changeset viewer.