2013-08-27 20:26:30 +04:00
|
|
|
/*
|
|
|
|
* Copyright 2013, Haiku, Inc. All Rights Reserved.
|
|
|
|
* Distributed under the terms of the MIT License.
|
|
|
|
*
|
|
|
|
* Authors:
|
|
|
|
* Jérôme Duval, korli@berlios.de
|
|
|
|
*/
|
|
|
|
#ifndef _RANDOM_H
|
|
|
|
#define _RANDOM_H
|
|
|
|
|
|
|
|
|
2013-08-28 02:07:17 +04:00
|
|
|
#include <device_manager.h>
|
|
|
|
|
|
|
|
|
|
|
|
typedef struct {
|
|
|
|
driver_module_info info;
|
|
|
|
} random_for_controller_interface;
|
|
|
|
|
|
|
|
|
|
|
|
#define RANDOM_FOR_CONTROLLER_MODULE_NAME "bus_managers/random/controller/driver_v1"
|
|
|
|
|
|
|
|
// Bus manager interface used by Random controller drivers.
|
2013-08-27 20:26:30 +04:00
|
|
|
typedef struct random_module_info {
|
2013-08-28 02:07:17 +04:00
|
|
|
driver_module_info info;
|
|
|
|
|
2013-08-29 20:38:46 +04:00
|
|
|
status_t (*read)(void* cookie, void *_buffer, size_t *_numBytes);
|
|
|
|
status_t (*write)(void* cookie, const void *_buffer, size_t *_numBytes);
|
|
|
|
} random_module_info;
|
2013-08-27 20:26:30 +04:00
|
|
|
|
|
|
|
|
|
|
|
#endif /* _RANDOM_H */
|