mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Use system noioctl() instead of homerolled.
This commit is contained in:
parent
c3dbde2864
commit
3512c1b386
1 changed files with 1 additions and 9 deletions
|
|
@ -87,7 +87,6 @@ static int amrd_detach(device_t dev);
|
|||
static d_open_t amrd_open;
|
||||
static d_close_t amrd_close;
|
||||
static d_strategy_t amrd_strategy;
|
||||
static d_ioctl_t amrd_ioctl;
|
||||
|
||||
#define AMRD_CDEV_MAJOR 133
|
||||
|
||||
|
|
@ -96,7 +95,7 @@ static struct cdevsw amrd_cdevsw = {
|
|||
/* close */ amrd_close,
|
||||
/* read */ physread,
|
||||
/* write */ physwrite,
|
||||
/* ioctl */ amrd_ioctl,
|
||||
/* ioctl */ noioctl,
|
||||
/* poll */ nopoll,
|
||||
/* mmap */ nommap,
|
||||
/* strategy */ amrd_strategy,
|
||||
|
|
@ -182,13 +181,6 @@ amrd_close(dev_t dev, int flags, int fmt, d_thread_t *td)
|
|||
return (0);
|
||||
}
|
||||
|
||||
static int
|
||||
amrd_ioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, d_thread_t *td)
|
||||
{
|
||||
|
||||
return (ENOTTY);
|
||||
}
|
||||
|
||||
/*
|
||||
* Read/write routine for a buffer. Finds the proper unit, range checks
|
||||
* arguments, and schedules the transfer. Does not wait for the transfer
|
||||
|
|
|
|||
Loading…
Reference in a new issue