1 /* 2 * Copyright 2007-2008, Axel Dörfler, axeld@pinc-software.de. 3 * Distributed under the terms of the MIT License. 4 */ 5 6 #include <dev/pci/pcivar.h> 7 #include <sys/bus.h> 8 #include <sys/malloc.h> 9 #include <sys/rman.h> 10 #include <sys/systm.h> 11 12 #include <machine/bus.h> 13 14 #include <net/if.h> 15 #include <net/if_media.h> 16 17 18 HAIKU_FBSD_DRIVER_GLUE(rdc, vte, pci); 19 HAIKU_DRIVER_REQUIREMENTS(FBSD_SWI_TASKQUEUE); 20 NO_HAIKU_CHECK_DISABLE_INTERRUPTS(); 21 NO_HAIKU_REENABLE_INTERRUPTS(); 22 23 extern driver_t *DRIVER_MODULE_NAME(rdcphy, miibus); 24 25 driver_t * 26 __haiku_select_miibus_driver(device_t dev) 27 { 28 driver_t *drivers[] = { 29 DRIVER_MODULE_NAME(rdcphy, miibus), 30 NULL 31 }; 32 33 return __haiku_probe_miibus(dev, drivers); 34 } 35 36