Ticket #3124: reproduce.diff

File reproduce.diff, 1.8 KB (added by Adek336, 11 years ago)
  • src/add-ons/kernel/drivers/network/3com/pci/if_xl.c

     
    144144
    145145#include <pci/if_xlreg.h>
    146146
     147//QQQ
     148
     149extern const char *gDeviceNameList[];
     150
    147151/*
    148152 * TX Checksumming is disabled by default for two reasons:
    149153 * - TX Checksumming will occasionally produce corrupt packets
     
    10561060
    10571061    t = xl_devs;
    10581062
     1063
     1064    //QQQ
     1065    //continue as on device found
     1066    device_set_desc(dev, t->xl_name);
     1067    return (BUS_PROBE_DEFAULT);
     1068    //QQQ
     1069
     1070
    10591071    while (t->xl_name != NULL) {
    10601072        if ((pci_get_vendor(dev) == t->xl_vid) &&
    10611073            (pci_get_device(dev) == t->xl_did)) {
     
    12321244    mtx_init(&sc->xl_mtx, device_get_nameunit(dev), MTX_NETWORK_LOCK,
    12331245        MTX_DEF);
    12341246    ifmedia_init(&sc->ifmedia, 0, xl_ifmedia_upd, xl_ifmedia_sts);
     1247//QQQ
     1248    //init device name
     1249    ifp = sc->xl_ifp = if_alloc(IFT_ETHER);
     1250    if (ifp == NULL) {
     1251        device_printf(dev, "can not if_alloc()\n");
     1252        error = ENOSPC;
     1253        goto fail;
     1254    }
     1255    ifp->if_softc = sc;
     1256    ktrace_printf("3com: xl_attach: a, gDeviceNameList[0]=%s\n", gDeviceNameList[0]);
     1257    if_initname(ifp, device_get_name(dev), device_get_unit(dev));
     1258    ktrace_printf("3com: xl_attach: b, gDeviceNameList[0]=%s\n", gDeviceNameList[0]);
     1259    //continue as on failure
     1260    error=ENXIO;
     1261    goto fail;
     1262//QQQ
    12351263
    12361264    did = pci_get_device(dev);
    12371265
     
    17301758    if (sc->xl_res)
    17311759        bus_release_resource(dev, res, rid, sc->xl_res);
    17321760
     1761    ktrace_printf("xl_detach: aa, gDeviceNameList[0]=%s\n", gDeviceNameList[0]);
    17331762    if (ifp)
    17341763        if_free(ifp);
     1764    ktrace_printf("xl_detach: ab, gDeviceNameList[0]=%s\n", gDeviceNameList[0]);
    17351765
    17361766    if (sc->xl_mtag) {
    17371767        bus_dmamap_destroy(sc->xl_mtag, sc->xl_tmpmap);