-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathdrivermanager.h
42 lines (35 loc) · 903 Bytes
/
drivermanager.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
/*
* drivermanager.h
*
* Created on: 05.04.2017
* Author: pascal
*/
#ifndef DRIVERMANAGER_H_
#define DRIVERMANAGER_H_
#include "cdi.h"
/**
* \brief Initializes the driver manager.
*/
void drivermanager_init();
/**
* \brief Registers a driver in the driver manager.
*
* @param drv Driver to be registered
*/
void drivermanager_registerDriver(struct cdi_driver *drv);
/**
* \brief Gets the driver with the specified name.
*
* @param name Name of the driver
* @return the driver with a matching name or NULL
*/
struct cdi_driver *drivermanager_getDriver(const char *name);
/**
* \brief Gets the next suitable driver.
*
* @param type Type of the driver searched
* @param prev Previous returned driver
* @return a suitable driver or NULL
*/
struct cdi_driver *drivermanager_getNextDeviceDriver(cdi_device_type_t bus, struct cdi_driver *prev);
#endif /* DRIVERMANAGER_H_ */