Changeset cd79391 in mainline
- Timestamp:
- 2011-12-09T23:09:23Z (13 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a52de0e
- Parents:
- 74c99b5
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/ne2000/dp8390.c
r74c99b5 rcd79391 164 164 static void ne2k_upload(ne2k_t *ne2k, void *buf, size_t addr, size_t size) 165 165 { 166 size_t esize_ru = (size + 1) & ~1; 166 167 size_t esize = size & ~1; 167 168 168 pio_write_8(ne2k->port + DP_RBCR0, esize & 0xff);169 pio_write_8(ne2k->port + DP_RBCR1, (esize >> 8) & 0xff);169 pio_write_8(ne2k->port + DP_RBCR0, esize_ru & 0xff); 170 pio_write_8(ne2k->port + DP_RBCR1, (esize_ru >> 8) & 0xff); 170 171 pio_write_8(ne2k->port + DP_RSAR0, addr & 0xff); 171 172 pio_write_8(ne2k->port + DP_RSAR1, (addr >> 8) & 0xff);
Note:
See TracChangeset
for help on using the changeset viewer.