xref: /haiku/src/add-ons/kernel/drivers/network/ether/nforce/glue.c (revision 4a55cc230cf7566cadcbb23b1928eefff8aea9a2)
1 /*
2  * Copyright 2007, Axel Dörfler, axeld@pinc-software.de. All Rights Reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 
6 
7 #include <sys/bus.h>
8 
9 
10 HAIKU_FBSD_DRIVER_GLUE(nforce, nfe, pci)
11 
12 HAIKU_DRIVER_REQUIREMENTS(FBSD_SWI_TASKQUEUE);
13 NO_HAIKU_CHECK_DISABLE_INTERRUPTS();
14 NO_HAIKU_REENABLE_INTERRUPTS();
15 
16 extern driver_t *DRIVER_MODULE_NAME(ciphy, miibus);
17 extern driver_t *DRIVER_MODULE_NAME(ukphy, miibus);
18 
19 
20 driver_t *
21 __haiku_select_miibus_driver(device_t dev)
22 {
23 	driver_t *drivers[] = {
24 		DRIVER_MODULE_NAME(ciphy, miibus),
25 		DRIVER_MODULE_NAME(ukphy, miibus),
26 		NULL
27 	};
28 
29 	return __haiku_probe_miibus(dev, drivers);
30 }
31 
32