Commit 9d9baadd authored by Ken Cox's avatar Ken Cox Committed by Greg Kroah-Hartman
Browse files

staging: visorutil driver to provide common functionality to other s-Par drivers



The visorutil module is a support library required by all other s-Par
driver modules. Among its features it abstracts reading, writing, and
manipulating a block of memory.

Signed-off-by: default avatarKen Cox <jkc@redhat.com>
Cc: Ben Romer <sparmaintainer@unisys.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 6b029336
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -144,4 +144,6 @@ source "drivers/staging/gs_fpgaboot/Kconfig"

source "drivers/staging/nokia_h4p/Kconfig"

source "drivers/staging/unisys/Kconfig"

endif # STAGING
+1 −0
Original line number Diff line number Diff line
@@ -64,3 +64,4 @@ obj-$(CONFIG_DGAP) += dgap/
obj-$(CONFIG_MTD_SPINAND_MT29F)	+= mt29f_spinand/
obj-$(CONFIG_GS_FPGABOOT)	+= gs_fpgaboot/
obj-$(CONFIG_BT_NOKIA_H4P)	+= nokia_h4p/
obj-$(CONFIG_UNISYSSPAR)	+= unisys/
+14 −0
Original line number Diff line number Diff line
#
# Unisys SPAR driver configuration
#
menuconfig UNISYSSPAR
	bool "Unisys SPAR driver support"
	depends on X86_64
	---help---
	Support for the Unisys SPAR drivers

if UNISYSSPAR

source "drivers/staging/unisys/visorutil/Kconfig"

endif # UNISYSSPAR
+5 −0
Original line number Diff line number Diff line
#
# Makefile for Unisys SPAR drivers
#
obj-$(CONFIG_UNISYS_VISORUTIL)		+= visorutil/
+40 −0
Original line number Diff line number Diff line
/* periodic_work.h
 *
 * Copyright  2010 - 2013 UNISYS CORPORATION
 * All rights reserved.
 *
 * This program is free software; you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as published by
 * the Free Software Foundation; either version 2 of the License, or (at
 * your option) any later version.
 *
 * This program 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, GOOD TITLE or
 * NON INFRINGEMENT.  See the GNU General Public License for more
 * details.
 */

#ifndef __PERIODIC_WORK_H__
#define __PERIODIC_WORK_H__

#include "timskmod.h"



/* PERIODIC_WORK an opaque structure to users.
 * Fields are declared only in the implementation .c files.
 */
typedef struct PERIODIC_WORK_Tag PERIODIC_WORK;

PERIODIC_WORK *periodic_work_create(ulong jiffy_interval,
				     struct workqueue_struct *workqueue,
				     void (*workfunc)(void *),
				     void *workfuncarg,
				     const char *devnam);
void            periodic_work_destroy(PERIODIC_WORK *periodic_work);
BOOL            periodic_work_nextperiod(PERIODIC_WORK *periodic_work);
BOOL            periodic_work_start(PERIODIC_WORK *periodic_work);
BOOL            periodic_work_stop(PERIODIC_WORK *periodic_work);

#endif
Loading