Permalink
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
40 lines (28 sloc) 1.09 KB
/**
* BlueThunder - Device Manager
*
**/
#ifndef _BT_DEVMAN_H_
#define _BT_DEVMAN_H_
#include "bt_types.h"
#include "bt_resource.h"
#include "bt_device.h"
#include "bt_integrated_device.h"
#include "bt_integrated_driver.h"
#include "interfaces/bt_interfaces.h"
typedef const BT_IF_HANDLE *(*BT_MODULE_GETIF_FN)(void);
typedef BT_ERROR (*BT_MODULE_INIT_FN)(void);
typedef struct {
const BT_s8 *szpDeviceName;
BT_MODULE_INIT_FN pfnModuleEntry;
const BT_IF_HANDLE *pIf;
} BT_MODULE_ENTRY_DESCRIPTOR;
/*#define BT_MODULE_ENTRY(entry) BT_ATTRIBUTE_SECTION(".bt.module.entries") \
static const BT_MODULE_ENTRY_DESCRIPTOR *pModuleEntry = &entry;*/
BT_MACHINE_DESCRIPTION *BT_GetMachineDescription(BT_ERROR *pError);
//BT_INTEGRATED_DEVICE *BT_GetIntergratedDeviceByName(const BT_i8 *szpName);
BT_INTEGRATED_DRIVER *BT_GetIntegratedDriverByName(const BT_i8 *szpName);
BT_u32 BT_GetTotalIntegratedDriversByType(BT_DRIVER_TYPE eType);
BT_INTEGRATED_DRIVER *BT_GetIntegratedDriverByType(BT_DRIVER_TYPE eType, BT_u32 i);
BT_ERROR BT_ProbeIntegratedDevices(BT_HANDLE hLogDevice);
#endif