Changeset 7922dea in mainline for uspace/srv/hw/netif/dp8390/ne2000.c
- Timestamp:
- 2011-01-06T23:46:21Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 3d5e190
- Parents:
- 66b628a
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/ne2000.c
r66b628a r7922dea 81 81 static int test_16(dpeth_t *dep, int pos, uint8_t *pat); 82 82 83 /** Stops the NE2000 network interface.84 * @param[in,out] dep The network interface structure.85 */86 static void ne_stop(dpeth_t *dep);87 88 /** Initializes the NE2000 network interface.89 * @param[in,out] dep The network interface structure.90 */91 void ne_init(struct dpeth *dep);92 93 83 int ne_probe(dpeth_t *dep) 94 84 { … … 136 126 137 127 if (dep->de_16bit) { 138 loc1 = NE2000_START;139 loc2 = NE2000_START + NE2000_SIZE - 4;140 f = test_16;128 loc1 = NE2000_START; 129 loc2 = NE2000_START + NE2000_SIZE - 4; 130 f = test_16; 141 131 } else { 142 loc1 = NE1000_START;143 loc2 = NE1000_START + NE1000_SIZE - 4;144 f = test_8;132 loc1 = NE1000_START; 133 loc2 = NE1000_START + NE1000_SIZE - 4; 134 f = test_8; 145 135 } 146 136 … … 149 139 f(dep, loc2, pat0) && f(dep, loc2, pat1) && 150 140 f(dep, loc2, pat2) && f(dep, loc2, pat3)) { 151 dep->de_initf = ne_init;152 dep->de_stopf = ne_stop;153 141 return 1; 154 142 } … … 158 146 } 159 147 148 /** Initializes the NE2000 network interface. 149 * 150 * @param[in,out] dep The network interface structure. 151 * 152 */ 160 153 void ne_init(dpeth_t *dep) 161 154 { … … 290 283 } 291 284 292 static void ne_stop(dpeth_t *dep) 285 /** Stop the NE2000 network interface. 286 * 287 * @param[in,out] dep The network interface structure. 288 * 289 */ 290 void ne_stop(dpeth_t *dep) 293 291 { 294 292 /* Reset the ethernet card */
Note:
See TracChangeset
for help on using the changeset viewer.