Make UEFI boot-platform build again
[haiku.git] / headers / private / drivers / random.h
blobcc4d1d51747a9f068e5a5bf55927149c5bc7513f
1 /*
2 * Copyright 2013, Haiku, Inc. All Rights Reserved.
3 * Distributed under the terms of the MIT License.
5 * Authors:
6 * Jérôme Duval, korli@berlios.de
7 */
8 #ifndef _RANDOM_H
9 #define _RANDOM_H
12 #include <device_manager.h>
15 typedef struct {
16 driver_module_info info;
17 } random_for_controller_interface;
20 #define RANDOM_FOR_CONTROLLER_MODULE_NAME "bus_managers/random/controller/driver_v1"
22 // Bus manager interface used by Random controller drivers.
23 typedef struct random_module_info {
24 driver_module_info info;
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;
31 #endif /* _RANDOM_H */