Changeset 754ca59b in rtems
- Timestamp:
- 07/25/03 06:31:14 (20 years ago)
- Branches:
- 4.10, 4.11, 4.8, 4.9, 5, master
- Children:
- c7ff624c
- Parents:
- e900940
- Location:
- c/src/libchip
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
c/src/libchip/ChangeLog
re900940 r754ca59b 1 2003-07-25 Ralf Corsepius <corsepiu@faw.uni-ulm.de> 2 3 * network/if_fxp.c: Replace deprecated b* funcs by mem* funcs. 4 1 5 2003-07-18 Greg Menke <gregory.menke@gsfc.nasa.gov> 2 6 -
c/src/libchip/network/if_fxp.c
re900940 r754ca59b 443 443 } 444 444 445 bzero(sc, sizeof(*sc));445 memset(sc, 0, sizeof(*sc)); 446 446 #ifdef NOTUSED 447 447 sc->dev = dev; … … 618 618 goto failmem; 619 619 else 620 bzero(sc->cbl_base,sizeof(struct fxp_cb_tx) * FXP_NTXCB);620 memset(sc->cbl_base, 0, sizeof(struct fxp_cb_tx) * FXP_NTXCB); 621 621 622 622 sc->fxp_stats = malloc(sizeof(struct fxp_stats), M_DEVBUF, … … 626 626 goto failmem; 627 627 else 628 bzero(sc->fxp_stats,sizeof(struct fxp_stats));628 memset(sc->fxp_stats, 0, sizeof(struct fxp_stats)); 629 629 630 630 sc->mcsp = malloc(sizeof(struct fxp_cb_mcs), M_DEVBUF, M_NOWAIT); … … 1721 1721 1722 1722 /* 1723 * This bcopy is kind of disgusting, but there are a bunch of must be1723 * This memcpy is kind of disgusting, but there are a bunch of must be 1724 1724 * zero and must be one bits in this structure and this is the easiest 1725 1725 * way to initialize them all to proper values. 1726 1726 */ 1727 bcopy(fxp_cb_config_template,1728 (void *)(u_int32_t *)(volatile void *)&cbp->cb_status,1727 memcpy( (void *)(u_int32_t *)(volatile void *)&cbp->cb_status, 1728 fxp_cb_config_template, 1729 1729 sizeof(fxp_cb_config_template)); 1730 1730 … … 1831 1831 cb_ias->cb_command = FXP_CB_COMMAND_IAS | FXP_CB_COMMAND_EL; 1832 1832 cb_ias->link_addr = -1; 1833 bcopy(sc->arpcom.ac_enaddr,1834 (void *)(u_int32_t *)(volatile void *)cb_ias->macaddr,1833 memcpy((void *)(u_int32_t *)(volatile void *)cb_ias->macaddr, 1834 sc->arpcom.ac_enaddr, 1835 1835 sizeof(sc->arpcom.ac_enaddr)); 1836 1836 … … 1850 1850 DBGLVL_PRINTK(5,"fxp_init: initialize TxCB list\n"); 1851 1851 txp = sc->cbl_base; 1852 bzero(txp, sizeof(struct fxp_cb_tx) * FXP_NTXCB);1852 memset(txp, 0, sizeof(struct fxp_cb_tx) * FXP_NTXCB); 1853 1853 for (i = 0; i < FXP_NTXCB; i++) { 1854 1854 txp[i].cb_status = FXP_CB_STATUS_C | FXP_CB_STATUS_OK; … … 2273 2273 break; 2274 2274 } 2275 bcopy(LLADDR((struct sockaddr_dl *)ifma->ifma_addr),2276 (void *)(uintptr_t)(volatile void *)2277 &sc->mcsp->mc_addr[nmcasts][0], 6);2275 memcpy((void *)(uintptr_t)(volatile void *) 2276 &sc->mcsp->mc_addr[nmcasts][0], 2277 LLADDR((struct sockaddr_dl *)ifma->ifma_addr), 6); 2278 2278 nmcasts++; 2279 2279 }
Note: See TracChangeset
for help on using the changeset viewer.