Changeset 754ca59b in rtems


Ignore:
Timestamp:
Jul 25, 2003, 6:31:14 AM (17 years ago)
Author:
Ralf Corsepius <ralf.corsepius@…>
Branches:
4.10, 4.11, 4.8, 4.9, 5, master
Children:
c7ff624c
Parents:
e900940
Message:

2003-07-25 Ralf Corsepius <corsepiu@…>

  • network/if_fxp.c: Replace deprecated b* funcs by mem* funcs.
Location:
c/src/libchip
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • c/src/libchip/ChangeLog

    re900940 r754ca59b  
     12003-07-25      Ralf Corsepius <corsepiu@faw.uni-ulm.de>
     2
     3        * network/if_fxp.c: Replace deprecated b* funcs by mem* funcs.
     4
    152003-07-18      Greg Menke <gregory.menke@gsfc.nasa.gov>
    26
  • c/src/libchip/network/if_fxp.c

    re900940 r754ca59b  
    443443        }
    444444
    445         bzero(sc, sizeof(*sc));
     445        memset(sc, 0, sizeof(*sc));
    446446#ifdef NOTUSED
    447447        sc->dev = dev;
     
    618618                goto failmem;
    619619        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);
    621621
    622622        sc->fxp_stats = malloc(sizeof(struct fxp_stats), M_DEVBUF,
     
    626626                goto failmem;
    627627        else
    628                 bzero(sc->fxp_stats,sizeof(struct fxp_stats));
     628                memset(sc->fxp_stats, 0, sizeof(struct fxp_stats));
    629629
    630630        sc->mcsp = malloc(sizeof(struct fxp_cb_mcs), M_DEVBUF, M_NOWAIT);
     
    17211721
    17221722        /*
    1723          * This bcopy is kind of disgusting, but there are a bunch of must be
     1723         * This memcpy is kind of disgusting, but there are a bunch of must be
    17241724         * zero and must be one bits in this structure and this is the easiest
    17251725         * way to initialize them all to proper values.
    17261726         */
    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,
    17291729                sizeof(fxp_cb_config_template));
    17301730
     
    18311831        cb_ias->cb_command = FXP_CB_COMMAND_IAS | FXP_CB_COMMAND_EL;
    18321832        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,
    18351835            sizeof(sc->arpcom.ac_enaddr));
    18361836
     
    18501850        DBGLVL_PRINTK(5,"fxp_init: initialize TxCB list\n");
    18511851        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);
    18531853        for (i = 0; i < FXP_NTXCB; i++) {
    18541854                txp[i].cb_status = FXP_CB_STATUS_C | FXP_CB_STATUS_OK;
     
    22732273                                break;
    22742274                        }
    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);
    22782278                        nmcasts++;
    22792279                }
Note: See TracChangeset for help on using the changeset viewer.