if_sis.c (151297) | if_sis.c (151545) |
---|---|
1/*- 2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org> 3 * Copyright (c) 1997, 1998, 1999 4 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> | 1/*- 2 * Copyright (c) 2005 Poul-Henning Kamp <phk@FreeBSD.org> 3 * Copyright (c) 1997, 1998, 1999 4 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved. 5 * 6 * Redistribution and use in source and binary forms, with or without 7 * modification, are permitted provided that the following conditions 8 * are met: --- 18 unchanged lines hidden (view full) --- 27 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 28 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 29 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 30 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF 31 * THE POSSIBILITY OF SUCH DAMAGE. 32 */ 33 34#include <sys/cdefs.h> |
35__FBSDID("$FreeBSD: head/sys/pci/if_sis.c 151297 2005-10-13 21:11:20Z ru $"); | 35__FBSDID("$FreeBSD: head/sys/pci/if_sis.c 151545 2005-10-22 05:06:55Z imp $"); |
36 37/* 38 * SiS 900/SiS 7016 fast ethernet PCI NIC driver. Datasheets are 39 * available from http://www.sis.com.tw. 40 * 41 * This driver also supports the NatSemi DP83815. Datasheets are 42 * available from http://www.national.com. 43 * --- 52 unchanged lines hidden (view full) --- 96#define SIS_USEIOSPACE 97 98#include <pci/if_sisreg.h> 99 100MODULE_DEPEND(sis, pci, 1, 1, 1); 101MODULE_DEPEND(sis, ether, 1, 1, 1); 102MODULE_DEPEND(sis, miibus, 1, 1, 1); 103 | 36 37/* 38 * SiS 900/SiS 7016 fast ethernet PCI NIC driver. Datasheets are 39 * available from http://www.sis.com.tw. 40 * 41 * This driver also supports the NatSemi DP83815. Datasheets are 42 * available from http://www.national.com. 43 * --- 52 unchanged lines hidden (view full) --- 96#define SIS_USEIOSPACE 97 98#include <pci/if_sisreg.h> 99 100MODULE_DEPEND(sis, pci, 1, 1, 1); 101MODULE_DEPEND(sis, ether, 1, 1, 1); 102MODULE_DEPEND(sis, miibus, 1, 1, 1); 103 |
104/* "controller miibus0" required. See GENERIC if you get errors here. */ | 104/* "device miibus" required. See GENERIC if you get errors here. */ |
105#include "miibus_if.h" 106 107#define SIS_LOCK(_sc) mtx_lock(&(_sc)->sis_mtx) 108#define SIS_UNLOCK(_sc) mtx_unlock(&(_sc)->sis_mtx) 109#define SIS_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sis_mtx, MA_OWNED) 110 111/* 112 * register space access macros --- 2190 unchanged lines hidden --- | 105#include "miibus_if.h" 106 107#define SIS_LOCK(_sc) mtx_lock(&(_sc)->sis_mtx) 108#define SIS_UNLOCK(_sc) mtx_unlock(&(_sc)->sis_mtx) 109#define SIS_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sis_mtx, MA_OWNED) 110 111/* 112 * register space access macros --- 2190 unchanged lines hidden --- |