if_tx.c (61906) | if_tx.c (63090) |
---|---|
1/* $OpenBSD: if_tx.c,v 1.9.2.1 2000/02/21 22:29:13 niklas Exp $ */ | 1/* $OpenBSD: if_tx.c,v 1.9.2.1 2000/02/21 22:29:13 niklas Exp $ */ |
2/* $FreeBSD: head/sys/dev/tx/if_tx.c 61906 2000-06-21 19:19:49Z semenu $ */ | 2/* $FreeBSD: head/sys/dev/tx/if_tx.c 63090 2000-07-13 22:54:34Z archie $ */ |
3 4/*- 5 * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 534 unchanged lines hidden (view full) --- 545 printf("%c",(u_int8_t)tmp); 546 tmp >>= 8; 547 if( ' ' == (u_int8_t)tmp ) break; 548 printf("%c",(u_int8_t)tmp); 549 } 550 printf ("\n"); 551 552 /* Attach to OS's managers */ | 3 4/*- 5 * Copyright (c) 1997 Semen Ustimenko (semen@iclub.nsu.ru) 6 * All rights reserved. 7 * 8 * Redistribution and use in source and binary forms, with or without 9 * modification, are permitted provided that the following conditions 10 * are met: --- 534 unchanged lines hidden (view full) --- 545 printf("%c",(u_int8_t)tmp); 546 tmp >>= 8; 547 if( ' ' == (u_int8_t)tmp ) break; 548 printf("%c",(u_int8_t)tmp); 549 } 550 printf ("\n"); 551 552 /* Attach to OS's managers */ |
553 if_attach(ifp); 554 ether_ifattach(ifp); | 553 ether_ifattach(ifp, ETHER_BPF_SUPPORTED); |
555 callout_handle_init(&sc->stat_ch); 556 | 554 callout_handle_init(&sc->stat_ch); 555 |
557 bpfattach(ifp, DLT_EN10MB, sizeof(struct ether_header)); 558 | |
559fail: 560 splx(s); 561 562 return(error); 563} 564 565/* 566 * Detach driver and free resources --- 6 unchanged lines hidden (view full) --- 573 epic_softc_t *sc; 574 int s; 575 576 s = splimp(); 577 578 sc = device_get_softc(dev); 579 ifp = &sc->arpcom.ac_if; 580 | 556fail: 557 splx(s); 558 559 return(error); 560} 561 562/* 563 * Detach driver and free resources --- 6 unchanged lines hidden (view full) --- 570 epic_softc_t *sc; 571 int s; 572 573 s = splimp(); 574 575 sc = device_get_softc(dev); 576 ifp = &sc->arpcom.ac_if; 577 |
581 bpfdetach(ifp); 582 if_detach(ifp); | 578 ether_ifdetach(ifp, ETHER_BPF_SUPPORTED); |
583 584 epic_stop(sc); 585 586 bus_generic_detach(dev); 587 device_delete_child(dev, sc->miibus); 588 589 bus_teardown_intr(dev, sc->irq, sc->sc_ih); 590 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq); --- 1215 unchanged lines hidden --- | 579 580 epic_stop(sc); 581 582 bus_generic_detach(dev); 583 device_delete_child(dev, sc->miibus); 584 585 bus_teardown_intr(dev, sc->irq, sc->sc_ih); 586 bus_release_resource(dev, SYS_RES_IRQ, 0, sc->irq); --- 1215 unchanged lines hidden --- |