Changeset 37f0a29 in mainline for uspace/srv/hw/netif/dp8390/ne2000.c
- Timestamp:
- 2011-01-06T18:24:32Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- b187536
- Parents:
- 096234b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hw/netif/dp8390/ne2000.c
r096234b r37f0a29 145 145 dep->de_data_port= dep->de_base_port + NE_DATA; 146 146 if (dep->de_16bit) { 147 dep->de_ramsize = NE2000_SIZE;148 dep->de_offset_page = NE2000_START / DP_PAGESIZE;147 dep->de_ramsize = NE2000_SIZE; 148 dep->de_offset_page = NE2000_START / DP_PAGESIZE; 149 149 } else { 150 dep->de_ramsize = NE1000_SIZE;151 dep->de_offset_page = NE1000_START / DP_PAGESIZE;150 dep->de_ramsize = NE1000_SIZE; 151 dep->de_offset_page = NE1000_START / DP_PAGESIZE; 152 152 } 153 153 154 154 /* Allocate one send buffer (1.5KB) per 8KB of on board memory. */ 155 sendq_nr = dep->de_ramsize / 0x2000;155 sendq_nr = dep->de_ramsize / 0x2000; 156 156 157 157 if (sendq_nr < 1) … … 162 162 dep->de_sendq_nr = sendq_nr; 163 163 for (i = 0; i < sendq_nr; i++) 164 dep->de_sendq[i].sq_sendpage = dep->de_offset_page + i * SENDQ_PAGES;164 dep->de_sendq[i].sq_sendpage = dep->de_offset_page + i * SENDQ_PAGES; 165 165 166 166 dep->de_startpage = dep->de_offset_page + i * SENDQ_PAGES;
Note:
See TracChangeset
for help on using the changeset viewer.