1 /* 2 * Copyright 2009, Colin Günther, coling@gmx.de. 3 * All Rights Reserved. Distributed under the terms of the MIT License. 4 */ 5 6 7 #include <sys/bus.h> 8 #include <sys/kernel.h> 9 10 #include <net/if.h> 11 #include <net/ethernet.h> 12 #include <net/if_media.h> 13 14 #include <net80211/ieee80211_var.h> 15 16 #include <machine/bus.h> 17 18 #include <dev/an/if_aironet_ieee.h> 19 #include <dev/an/if_anreg.h> 20 21 22 // Netgraph function variables. 23 void (*ng_ether_attach_p)(struct ifnet *ifp) = NULL; 24 void (*ng_ether_detach_p)(struct ifnet *ifp) = NULL; 25 26 27 HAIKU_FBSD_WLAN_DRIVER_GLUE(aironetwifi, an, pci) 28 NO_HAIKU_FBSD_MII_DRIVER(); 29 NO_HAIKU_REENABLE_INTERRUPTS(); 30 HAIKU_DRIVER_REQUIREMENTS(FBSD_TASKQUEUES); 31 32 33 int 34 HAIKU_CHECK_DISABLE_INTERRUPTS(device_t dev) 35 { 36 struct an_softc* sc = (struct an_softc*)device_get_softc(dev); 37 38 if (sc->an_gone) 39 return 0; 40 41 CSR_WRITE_2(sc, AN_INT_EN(sc->mpi350), 0); 42 // Disable interrupts. 43 44 return 1; 45 } 46