#define pr_fmt(fmt) …
#include <linux/module.h>
#include <linux/kmod.h>
#include <linux/net.h>
#include <linux/atm.h>
#include <linux/atmdev.h>
#include <linux/atmclip.h>
#include <linux/atmarp.h>
#include <linux/capability.h>
#include <linux/sonet.h>
#include <linux/atmsvc.h>
#include <linux/atmmpc.h>
#include <net/atmclip.h>
#include <linux/atmlec.h>
#include <linux/mutex.h>
#include <asm/ioctls.h>
#include <net/compat.h>
#include "resources.h"
#include "signaling.h"
#include "common.h"
static DEFINE_MUTEX(ioctl_mutex);
static LIST_HEAD(ioctl_list);
void register_atm_ioctl(struct atm_ioctl *ioctl)
{ … }
EXPORT_SYMBOL(…);
void deregister_atm_ioctl(struct atm_ioctl *ioctl)
{ … }
EXPORT_SYMBOL(…);
static int do_vcc_ioctl(struct socket *sock, unsigned int cmd,
unsigned long arg, int compat)
{ … }
int vcc_ioctl(struct socket *sock, unsigned int cmd, unsigned long arg)
{ … }
#ifdef CONFIG_COMPAT
#define ATM_GETLINKRATE32 …
#define ATM_GETNAMES32 …
#define ATM_GETTYPE32 …
#define ATM_GETESI32 …
#define ATM_GETADDR32 …
#define ATM_RSTADDR32 …
#define ATM_ADDADDR32 …
#define ATM_DELADDR32 …
#define ATM_GETCIRANGE32 …
#define ATM_SETCIRANGE32 …
#define ATM_SETESI32 …
#define ATM_SETESIF32 …
#define ATM_GETSTAT32 …
#define ATM_GETSTATZ32 …
#define ATM_GETLOOP32 …
#define ATM_SETLOOP32 …
#define ATM_QUERYLOOP32 …
static struct { … } atm_ioctl_map[] = …;
#define NR_ATM_IOCTL …
static int do_atm_iobuf(struct socket *sock, unsigned int cmd,
unsigned long arg)
{ … }
static int do_atmif_sioc(struct socket *sock, unsigned int cmd,
unsigned long arg)
{ … }
static int do_atm_ioctl(struct socket *sock, unsigned int cmd32,
unsigned long arg)
{ … }
int vcc_compat_ioctl(struct socket *sock, unsigned int cmd,
unsigned long arg)
{ … }
#endif