1 /* 2 * Copyright 2013, Haiku, Inc. All Rights Reserved. 3 * Distributed under the terms of the MIT License. 4 * 5 * Authors: 6 * Jérôme Duval, korli@berlios.de 7 */ 8 #ifndef _RANDOM_H 9 #define _RANDOM_H 10 11 12 #include <device_manager.h> 13 14 15 typedef struct { 16 driver_module_info info; 17 } random_for_controller_interface; 18 19 20 #define RANDOM_FOR_CONTROLLER_MODULE_NAME "bus_managers/random/controller/driver_v1" 21 22 // Bus manager interface used by Random controller drivers. 23 typedef struct random_module_info { 24 driver_module_info info; 25 26 status_t (*read)(void* cookie, void *_buffer, size_t *_numBytes); 27 status_t (*write)(void* cookie, const void *_buffer, size_t *_numBytes); 28 } random_module_info; 29 30 31 #endif /* _RANDOM_H */ 32