mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
Move the gpib drivers out of staging and into the "real" part of the kernel. This entails: - Remove the gpib Kconfig menu and Makefile build rule from staging. - Remove gpib/uapi from the header file search path in subdir-ccflags of the gpib Makefile - move the gpib/uapi files to include/uapi/linux - Move the gpib tree out of staging to drivers. - Remove the word "Linux" from the gpib Kconfig file. - Add the gpib Kconfig menu and Makefile build rule to drivers Signed-off-by: Dave Penkler <dpenkler@gmail.com> Link: https://patch.msgid.link/20251117144021.23569-5-dpenkler@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
35 lines
1.1 KiB
C
35 lines
1.1 KiB
C
/* 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>
|
|
|
|
#define MAX_GPIB_PRIMARY_ADDRESS 30
|
|
#define MAX_GPIB_SECONDARY_ADDRESS 31
|
|
|
|
int gpib_allocate_board(struct gpib_board *board);
|
|
void gpib_deallocate_board(struct gpib_board *board);
|
|
|
|
unsigned int num_status_bytes(const struct gpib_status_queue *dev);
|
|
int push_status_byte(struct gpib_board *board, struct gpib_status_queue *device,
|
|
u8 poll_byte);
|
|
int pop_status_byte(struct gpib_board *board, struct gpib_status_queue *device,
|
|
u8 *poll_byte);
|
|
struct gpib_status_queue *get_gpib_status_queue(struct gpib_board *board,
|
|
unsigned int pad, int sad);
|
|
int get_serial_poll_byte(struct gpib_board *board, unsigned int pad, int sad,
|
|
unsigned int usec_timeout, u8 *poll_byte);
|
|
int autopoll_all_devices(struct gpib_board *board);
|