if_tx.c (41607) | if_tx.c (41771) |
---|---|
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.18 1998/12/07 21:58:46 archie Exp $ */ | 2/* $Id: if_tx.c,v 1.19 1998/12/09 01:12:18 eivind 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: --- 344 unchanged lines hidden (view full) --- 355 void *sc) 356{ 357 epic_stop(sc); 358} 359 360#else /* __FreeBSD__ */ 361/* -----------------------------FreeBSD------------------------------------- */ 362 | 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: --- 344 unchanged lines hidden (view full) --- 355 void *sc) 356{ 357 epic_stop(sc); 358} 359 360#else /* __FreeBSD__ */ 361/* -----------------------------FreeBSD------------------------------------- */ 362 |
363static char* epic_freebsd_probe __P((pcici_t, pcidi_t)); | 363static const char* epic_freebsd_probe __P((pcici_t, pcidi_t)); |
364static void epic_freebsd_attach __P((pcici_t, int)); 365static void epic_shutdown __P((int, void *)); 366 367/* Global variables */ 368static u_long epic_pci_count; 369static struct pci_device txdevice = { 370 "tx", 371 epic_freebsd_probe, 372 epic_freebsd_attach, 373 &epic_pci_count, 374 NULL }; 375 376/* Append this driver to pci drivers list */ 377DATA_SET ( pcidevice_set, txdevice ); 378 379/* Synopsis: Check if device id corresponds with SMC83C170 id. */ | 364static void epic_freebsd_attach __P((pcici_t, int)); 365static void epic_shutdown __P((int, void *)); 366 367/* Global variables */ 368static u_long epic_pci_count; 369static struct pci_device txdevice = { 370 "tx", 371 epic_freebsd_probe, 372 epic_freebsd_attach, 373 &epic_pci_count, 374 NULL }; 375 376/* Append this driver to pci drivers list */ 377DATA_SET ( pcidevice_set, txdevice ); 378 379/* Synopsis: Check if device id corresponds with SMC83C170 id. */ |
380static char* | 380static const char* |
381epic_freebsd_probe( 382 pcici_t config_id, 383 pcidi_t device_id) 384{ 385 if( PCI_VENDORID(device_id) != SMC_VENDORID ) 386 return NULL; 387 388 if( PCI_CHIPID(device_id) == CHIPID_83C170 ) --- 1486 unchanged lines hidden --- | 381epic_freebsd_probe( 382 pcici_t config_id, 383 pcidi_t device_id) 384{ 385 if( PCI_VENDORID(device_id) != SMC_VENDORID ) 386 return NULL; 387 388 if( PCI_CHIPID(device_id) == CHIPID_83C170 ) --- 1486 unchanged lines hidden --- |