xref: /haiku/src/tests/system/kernel/device_manager/playground/bus.h (revision cc6e7cb3477cdb34c23be8ce246203d2b7f002de)
1 /*
2  * Copyright 2008, Axel Dörfler, axeld@pinc-software.de. All rights reserved.
3  * Distributed under the terms of the MIT License.
4  */
5 #ifndef BUS_H
6 #define BUS_H
7 
8 
9 #include "device_manager.h"
10 
11 
12 struct bus_info {
13 	uint16	vendor_id;
14 	uint16	device_id;
15 };
16 
17 struct bus_for_driver_module_info {
18 	driver_module_info info;
19 
20 	status_t (*get_bus_info)(void* cookie, bus_info* info);
21 };
22 
23 #define BUS_FOR_DRIVER_NAME "bus_managers/sample_bus/device/driver_v1"
24 #define BUS_NAME "mybus"
25 
26 #endif	// BUS_H
27