if_fwip.c (177599) | if_fwip.c (188394) |
---|---|
1/*- 2 * Copyright (c) 2004 3 * Doug Rabson 4 * Copyright (c) 2002-2003 5 * Hidetoshi Shimokawa. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * | 1/*- 2 * Copyright (c) 2004 3 * Doug Rabson 4 * Copyright (c) 2002-2003 5 * Hidetoshi Shimokawa. All rights reserved. 6 * 7 * Redistribution and use in source and binary forms, with or without 8 * modification, are permitted provided that the following conditions --- 19 unchanged lines hidden (view full) --- 28 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 29 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS 30 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) 31 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT 32 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY 33 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF 34 * SUCH DAMAGE. 35 * |
36 * $FreeBSD: head/sys/dev/firewire/if_fwip.c 177599 2008-03-25 09:39:02Z ru $ | 36 * $FreeBSD: head/sys/dev/firewire/if_fwip.c 188394 2009-02-09 16:58:18Z fjoe $ |
37 */ 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_inet.h" 42#endif 43 44#include <sys/param.h> --- 377 unchanged lines hidden (view full) --- 422 break; 423 case SIOCADDMULTI: 424 case SIOCDELMULTI: 425 break; 426 case SIOCSIFCAP: 427#ifdef DEVICE_POLLING 428 { 429 struct ifreq *ifr = (struct ifreq *) data; | 37 */ 38 39#ifdef HAVE_KERNEL_OPTION_HEADERS 40#include "opt_device_polling.h" 41#include "opt_inet.h" 42#endif 43 44#include <sys/param.h> --- 377 unchanged lines hidden (view full) --- 422 break; 423 case SIOCADDMULTI: 424 case SIOCDELMULTI: 425 break; 426 case SIOCSIFCAP: 427#ifdef DEVICE_POLLING 428 { 429 struct ifreq *ifr = (struct ifreq *) data; |
430 struct firewire_comm *fc = fc = fwip->fd.fc; | 430 struct firewire_comm *fc = fwip->fd.fc; |
431 432 if (ifr->ifr_reqcap & IFCAP_POLLING && 433 !(ifp->if_capenable & IFCAP_POLLING)) { 434 error = ether_poll_register(fwip_poll, ifp); 435 if (error) 436 return(error); 437 /* Disable interrupts */ 438 fc->set_intr(fc, 0); --- 545 unchanged lines hidden --- | 431 432 if (ifr->ifr_reqcap & IFCAP_POLLING && 433 !(ifp->if_capenable & IFCAP_POLLING)) { 434 error = ether_poll_register(fwip_poll, ifp); 435 if (error) 436 return(error); 437 /* Disable interrupts */ 438 fc->set_intr(fc, 0); --- 545 unchanged lines hidden --- |