summaryrefslogtreecommitdiffstats
path: root/sys/scsi/su.c
diff options
context:
space:
mode:
authorbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
committerbde <bde@FreeBSD.org>1995-11-06 00:36:19 +0000
commit08b652fb6584a6e35dd3b2b51861b90f852b6d95 (patch)
tree91dcf848840fefc35bc4b406b8a5599bdac59cbb /sys/scsi/su.c
parentaa3705d78b7fc12ce3cf9e9a7437407154f241c8 (diff)
downloadFreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.zip
FreeBSD-src-08b652fb6584a6e35dd3b2b51861b90f852b6d95.tar.gz
Replaced bogus macros for dummy devswitch entries by functions.
These functions went away: enosys (hasn't been used for some time) enxio enodev enoioctl (was used only once, actually for a vop) if_tun.c: Continued cleaning up... conf.h: Probably fixed the type of d_reset_t. It is hard to tell the correct type because there are no non-dummy device reset functions. Removed last vestige of ambiguous sleep message strings.
Diffstat (limited to 'sys/scsi/su.c')
-rw-r--r--sys/scsi/su.c20
1 files changed, 2 insertions, 18 deletions
diff --git a/sys/scsi/su.c b/sys/scsi/su.c
index dd73c2b..71f21bb 100644
--- a/sys/scsi/su.c
+++ b/sys/scsi/su.c
@@ -44,7 +44,7 @@
* SUCH DAMAGE.
*End copyright
*
- * $Id: su.c,v 1.4 1995/03/04 20:51:07 dufault Exp $
+ * $Id: su.c,v 1.5 1995/05/03 18:09:20 dufault Exp $
*
* Tabstops 4
*/
@@ -71,22 +71,6 @@
*/
#define OLD_DEV(NEWDEV, OLDDEV) ((OLDDEV) | ((NEWDEV) & 0x080000FF))
-/* XXX: These are taken from, and perhaps belong in, conf.c
- */
-#define nxopen (d_open_t *)enxio
-#define nxclose (d_close_t *)enxio
-#define nxread (d_rdwr_t *)enxio
-#define nxwrite nxread
-#define nxstrategy (d_strategy_t *)enxio
-#define nxioctl (d_ioctl_t *)enxio
-#define nxdump (d_dump_t *)enxio
-#define nxstop (d_stop_t *)enxio
-#define nxreset (d_reset_t *)enxio
-#define nxselect (d_select_t *)enxio
-#define nxmmap (d_mmap_t *)enxio
-#define nxdevtotty (d_ttycv_t *)nullop
-#define zerosize (d_psize_t *)0
-
/* bnxio, cnxio: non existent device entries
*/
static struct bdevsw bnxio = {
@@ -95,7 +79,7 @@ static struct bdevsw bnxio = {
nxstrategy,
nxioctl,
nxdump,
- zerosize,
+ nxpsize,
0
};
OpenPOWER on IntegriCloud