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