Deleted Added
full compact
if_tx.c (48645) if_tx.c (50107)
1/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
1/* $OpenBSD: if_tx.c,v 1.3 1998/10/10 04:30:09 jason Exp $ */
2/* $Id: if_tx.c,v 1.28 1999/07/03 20:17:05 peter Exp $ */
2/* $Id: if_tx.c,v 1.29 1999/07/06 19:23:30 des Exp $ */
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:

--- 362 unchanged lines hidden (view full) ---

373 epic_stop(sc);
374}
375
376#else /* __FreeBSD__ */
377/* -----------------------------FreeBSD------------------------------------- */
378
379static const char* epic_freebsd_probe __P((pcici_t, pcidi_t));
380static void epic_freebsd_attach __P((pcici_t, int));
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:

--- 362 unchanged lines hidden (view full) ---

373 epic_stop(sc);
374}
375
376#else /* __FreeBSD__ */
377/* -----------------------------FreeBSD------------------------------------- */
378
379static const char* epic_freebsd_probe __P((pcici_t, pcidi_t));
380static void epic_freebsd_attach __P((pcici_t, int));
381static void epic_shutdown __P((int, void *));
381static void epic_shutdown __P((void *, int));
382
383/* Global variables */
384static u_long epic_pci_count;
385static struct pci_device txdevice = {
386 "tx",
387 epic_freebsd_probe,
388 epic_freebsd_attach,
389 &epic_pci_count,

--- 151 unchanged lines hidden (view full) ---

541 /* Map interrupt */
542 if( !pci_map_int(config_id, epic_intr, (void*)sc, &net_imask) ) {
543 printf(": couldn't map interrupt\n");
544 free(sc, M_DEVBUF);
545 return;
546 }
547
548 /* Set shut down routine to stop DMA processes on reboot */
382
383/* Global variables */
384static u_long epic_pci_count;
385static struct pci_device txdevice = {
386 "tx",
387 epic_freebsd_probe,
388 epic_freebsd_attach,
389 &epic_pci_count,

--- 151 unchanged lines hidden (view full) ---

541 /* Map interrupt */
542 if( !pci_map_int(config_id, epic_intr, (void*)sc, &net_imask) ) {
543 printf(": couldn't map interrupt\n");
544 free(sc, M_DEVBUF);
545 return;
546 }
547
548 /* Set shut down routine to stop DMA processes on reboot */
549 at_shutdown(epic_shutdown, sc, SHUTDOWN_POST_SYNC);
549 EVENTHANDLER_REGISTER(shutdown_post_sync, epic_shutdown, sc,
550 SHUTDOWN_PRI_DEFAULT);
550
551 /* Attach to if manager */
552 if_attach(ifp);
553 ether_ifattach(ifp);
554
555#if NBPF > 0
556 bpfattach(ifp,DLT_EN10MB, sizeof(struct ether_header));
557#endif
558
559 splx(s);
560
561 printf("\n");
562
563 return;
564}
565
566static void
567epic_shutdown(
551
552 /* Attach to if manager */
553 if_attach(ifp);
554 ether_ifattach(ifp);
555
556#if NBPF > 0
557 bpfattach(ifp,DLT_EN10MB, sizeof(struct ether_header));
558#endif
559
560 splx(s);
561
562 printf("\n");
563
564 return;
565}
566
567static void
568epic_shutdown(
568 int howto,
569 void *sc)
569 void *sc,
570 int howto)
570{
571 epic_stop(sc);
572}
573
574#endif /* __OpenBSD__ */
575
576/* ------------------------------------------------------------------------
577 OS-independing part

--- 1463 unchanged lines hidden ---
571{
572 epic_stop(sc);
573}
574
575#endif /* __OpenBSD__ */
576
577/* ------------------------------------------------------------------------
578 OS-independing part

--- 1463 unchanged lines hidden ---