Changeset c8c43cae in mainline for uspace/drv/nic/ne2k/dp8390.c
- Timestamp:
- 2011-12-09T23:30:36Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77b1c1a
- Parents:
- db8a034 (diff), a52de0e (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
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/nic/ne2k/dp8390.c
rdb8a034 rc8c43cae 142 142 static void ne2k_upload(ne2k_t *ne2k, void *buf, size_t addr, size_t size) 143 143 { 144 size_t esize_ru = (size + 1) & ~1; 144 145 size_t esize = size & ~1; 145 146 146 pio_write_8(ne2k->port + DP_RBCR0, esize & 0xff);147 pio_write_8(ne2k->port + DP_RBCR1, (esize >> 8) & 0xff);147 pio_write_8(ne2k->port + DP_RBCR0, esize_ru & 0xff); 148 pio_write_8(ne2k->port + DP_RBCR1, (esize_ru >> 8) & 0xff); 148 149 pio_write_8(ne2k->port + DP_RSAR0, addr & 0xff); 149 150 pio_write_8(ne2k->port + DP_RSAR1, (addr >> 8) & 0xff);
Note:
See TracChangeset
for help on using the changeset viewer.