mirror of
https://github.com/Dasharo/linux.git
synced 2026-03-06 15:25:10 -08:00
staging: gpib: Add GPIB common core driver
This is the common core driver that interfaces with the userland code and creates the gpib device files. Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://lore.kernel.org/r/20240918121908.19366-6-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
2da03e7e31
commit
9dde4559e9
6
drivers/staging/gpib/common/Makefile
Normal file
6
drivers/staging/gpib/common/Makefile
Normal file
@@ -0,0 +1,6 @@
|
||||
|
||||
obj-m += gpib_common.o
|
||||
|
||||
gpib_common-objs := gpib_os.o iblib.o
|
||||
|
||||
|
||||
2320
drivers/staging/gpib/common/gpib_os.c
Normal file
2320
drivers/staging/gpib/common/gpib_os.c
Normal file
File diff suppressed because it is too large
Load Diff
740
drivers/staging/gpib/common/iblib.c
Normal file
740
drivers/staging/gpib/common/iblib.c
Normal file
File diff suppressed because it is too large
Load Diff
28
drivers/staging/gpib/common/ibsys.h
Normal file
28
drivers/staging/gpib/common/ibsys.h
Normal file
@@ -0,0 +1,28 @@
|
||||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
|
||||
#include "gpibP.h"
|
||||
|
||||
#include <linux/kernel.h>
|
||||
#include <linux/sched.h>
|
||||
#include <linux/errno.h>
|
||||
#include <linux/major.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/slab.h>
|
||||
#include <linux/mm.h>
|
||||
#include <linux/timer.h>
|
||||
|
||||
#include <linux/io.h>
|
||||
#include <linux/uaccess.h>
|
||||
#include <asm/irq.h>
|
||||
#include <asm/dma.h>
|
||||
|
||||
int gpib_allocate_board(gpib_board_t *board);
|
||||
void gpib_deallocate_board(gpib_board_t *board);
|
||||
|
||||
unsigned int num_status_bytes(const gpib_status_queue_t *dev);
|
||||
int push_status_byte(gpib_status_queue_t *device, uint8_t poll_byte);
|
||||
int pop_status_byte(gpib_status_queue_t *device, uint8_t *poll_byte);
|
||||
gpib_status_queue_t *get_gpib_status_queue(gpib_board_t *board, unsigned int pad, int sad);
|
||||
int get_serial_poll_byte(gpib_board_t *board, unsigned int pad, int sad,
|
||||
unsigned int usec_timeout, uint8_t *poll_byte);
|
||||
int autopoll_all_devices(gpib_board_t *board);
|
||||
Reference in New Issue
Block a user