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>
50 lines
2.3 KiB
C
50 lines
2.3 KiB
C
/* SPDX-License-Identifier: GPL-2.0 */
|
|
|
|
#ifndef GPIB_PROTO_INCLUDED
|
|
#define GPIB_PROTO_INCLUDED
|
|
|
|
#include <linux/fs.h>
|
|
|
|
int ibopen(struct inode *inode, struct file *filep);
|
|
int ibclose(struct inode *inode, struct file *file);
|
|
long ibioctl(struct file *filep, unsigned int cmd, unsigned long arg);
|
|
void os_start_timer(struct gpib_board *board, unsigned int usec_timeout);
|
|
void os_remove_timer(struct gpib_board *board);
|
|
void init_gpib_board(struct gpib_board *board);
|
|
static inline unsigned long usec_to_jiffies(unsigned int usec)
|
|
{
|
|
unsigned long usec_per_jiffy = 1000000 / HZ;
|
|
|
|
return 1 + (usec + usec_per_jiffy - 1) / usec_per_jiffy;
|
|
};
|
|
|
|
int serial_poll_all(struct gpib_board *board, unsigned int usec_timeout);
|
|
void init_gpib_descriptor(struct gpib_descriptor *desc);
|
|
int dvrsp(struct gpib_board *board, unsigned int pad, int sad,
|
|
unsigned int usec_timeout, u8 *result);
|
|
int ibcac(struct gpib_board *board, int sync, int fallback_to_async);
|
|
int ibcmd(struct gpib_board *board, u8 *buf, size_t length, size_t *bytes_written);
|
|
int ibgts(struct gpib_board *board);
|
|
int ibonline(struct gpib_board *board);
|
|
int iboffline(struct gpib_board *board);
|
|
int iblines(const struct gpib_board *board, short *lines);
|
|
int ibrd(struct gpib_board *board, u8 *buf, size_t length, int *end_flag, size_t *bytes_read);
|
|
int ibrpp(struct gpib_board *board, u8 *buf);
|
|
int ibrsv2(struct gpib_board *board, u8 status_byte, int new_reason_for_service);
|
|
int ibrsc(struct gpib_board *board, int request_control);
|
|
int ibsic(struct gpib_board *board, unsigned int usec_duration);
|
|
int ibsre(struct gpib_board *board, int enable);
|
|
int ibpad(struct gpib_board *board, unsigned int addr);
|
|
int ibsad(struct gpib_board *board, int addr);
|
|
int ibeos(struct gpib_board *board, int eos, int eosflags);
|
|
int ibwait(struct gpib_board *board, int wait_mask, int clear_mask, int set_mask,
|
|
int *status, unsigned long usec_timeout, struct gpib_descriptor *desc);
|
|
int ibwrt(struct gpib_board *board, u8 *buf, size_t cnt, int send_eoi, size_t *bytes_written);
|
|
int ibstatus(struct gpib_board *board);
|
|
int general_ibstatus(struct gpib_board *board, const struct gpib_status_queue *device,
|
|
int clear_mask, int set_mask, struct gpib_descriptor *desc);
|
|
int io_timed_out(struct gpib_board *board);
|
|
int ibppc(struct gpib_board *board, u8 configuration);
|
|
|
|
#endif /* GPIB_PROTO_INCLUDED */
|