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 // Note: this file is also used by the device manager test to control the bus 24 // driver 25 26 #define BUS_MODULE_NAME "bus_managers/sample_bus/driver_v1" 27 #define BUS_FOR_DRIVER_NAME "bus_managers/sample_bus/device/driver_v1" 28 #define BUS_NAME "mybus" 29 30 extern void bus_trigger_device_removed(device_node* node); 31 extern void bus_trigger_device_added(device_node* node); 32 33 #endif // BUS_H 34