2008-11-21 12:27:11 +00:00
|
|
|
/*
|
|
|
|
* node_device.h: node device enumeration
|
|
|
|
*
|
|
|
|
* Copyright (C) 2008 Virtual Iron Software, Inc.
|
|
|
|
* Copyright (C) 2008 David F. Lively
|
|
|
|
*
|
|
|
|
* This library is free software; you can redistribute it and/or
|
|
|
|
* modify it under the terms of the GNU Lesser General Public
|
|
|
|
* License as published by the Free Software Foundation; either
|
|
|
|
* version 2.1 of the License, or (at your option) any later version.
|
|
|
|
*
|
|
|
|
* This library is distributed in the hope that it will be useful,
|
|
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
|
|
|
* Lesser General Public License for more details.
|
|
|
|
*
|
|
|
|
* You should have received a copy of the GNU Lesser General Public
|
|
|
|
* License along with this library; if not, write to the Free Software
|
|
|
|
* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
|
|
|
|
*
|
|
|
|
* Author: David F. Lively <dlively@virtualiron.com>
|
|
|
|
*/
|
|
|
|
|
|
|
|
#ifndef __VIR_NODE_DEVICE_H__
|
|
|
|
#define __VIR_NODE_DEVICE_H__
|
|
|
|
|
|
|
|
#include "internal.h"
|
|
|
|
#include "driver.h"
|
2008-12-04 21:48:31 +00:00
|
|
|
#include "node_device_conf.h"
|
2008-11-21 12:27:11 +00:00
|
|
|
|
|
|
|
#ifdef HAVE_HAL
|
|
|
|
int halNodeRegister(void);
|
|
|
|
#endif
|
|
|
|
#ifdef HAVE_DEVKIT
|
|
|
|
int devkitNodeRegister(void);
|
|
|
|
#endif
|
|
|
|
|
2008-12-04 21:48:31 +00:00
|
|
|
void nodeDeviceLock(virDeviceMonitorStatePtr driver);
|
|
|
|
void nodeDeviceUnlock(virDeviceMonitorStatePtr driver);
|
|
|
|
|
2008-11-21 12:27:11 +00:00
|
|
|
void registerCommonNodeFuncs(virDeviceMonitorPtr mon);
|
|
|
|
|
|
|
|
int nodedevRegister(void);
|
|
|
|
|
|
|
|
#endif /* __VIR_NODE_DEVICE_H__ */
|