if_my.c (152315) | if_my.c (153084) |
---|---|
1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * 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: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> | 1/*- 2 * Written by: yen_cw@myson.com.tw 3 * Copyright (c) 2002 Myson Technology Inc. 4 * 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: --- 14 unchanged lines hidden (view full) --- 23 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 24 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 25 * SUCH DAMAGE. 26 * 27 * Myson fast ethernet PCI NIC driver, available at: http://www.myson.com.tw/ 28 */ 29 30#include <sys/cdefs.h> |
31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 152315 2005-11-11 16:04:59Z ru $"); | 31__FBSDID("$FreeBSD: head/sys/dev/my/if_my.c 153084 2005-12-04 10:06:06Z ru $"); |
32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 31 unchanged lines hidden (view full) --- 71#include "miibus_if.h" 72 73/* 74 * #define MY_USEIOSPACE 75 */ 76 77static int MY_USEIOSPACE = 1; 78 | 32 33#include <sys/param.h> 34#include <sys/systm.h> 35#include <sys/sockio.h> 36#include <sys/mbuf.h> 37#include <sys/malloc.h> 38#include <sys/kernel.h> 39#include <sys/socket.h> --- 31 unchanged lines hidden (view full) --- 71#include "miibus_if.h" 72 73/* 74 * #define MY_USEIOSPACE 75 */ 76 77static int MY_USEIOSPACE = 1; 78 |
79#if (MY_USEIOSPACE) | 79#ifdef MY_USEIOSPACE |
80#define MY_RES SYS_RES_IOPORT 81#define MY_RID MY_PCI_LOIO 82#else 83#define MY_RES SYS_RES_MEMORY 84#define MY_RID MY_PCI_LOMEM 85#endif 86 87 --- 1674 unchanged lines hidden --- | 80#define MY_RES SYS_RES_IOPORT 81#define MY_RID MY_PCI_LOIO 82#else 83#define MY_RES SYS_RES_MEMORY 84#define MY_RID MY_PCI_LOMEM 85#endif 86 87 --- 1674 unchanged lines hidden --- |