1*65791Smckusick /*-
2*65791Smckusick * Copyright (c) 1982, 1986, 1990, 1993
3*65791Smckusick * The Regents of the University of California. All rights reserved.
4*65791Smckusick * (c) UNIX System Laboratories, Inc.
5*65791Smckusick * All or some portions of this file are derived from material licensed
6*65791Smckusick * to the University of California by American Telephone and Telegraph
7*65791Smckusick * Co. or Unix System Laboratories, Inc. and are reproduced herein with
8*65791Smckusick * the permission of UNIX System Laboratories, Inc.
949677Smckusick *
1049677Smckusick * %sccs.include.redist.c%
1149677Smckusick *
12*65791Smckusick * from: @(#)kern_physio.c 8.1 (Berkeley) 6/10/93
1349677Smckusick */
1449677Smckusick
15*65791Smckusick #include <sys/param.h>
16*65791Smckusick #include <sys/systm.h>
17*65791Smckusick #include <sys/buf.h>
18*65791Smckusick #include <sys/conf.h>
19*65791Smckusick #include <sys/proc.h>
2049677Smckusick
21*65791Smckusick physio(a1, a2, a3, a4, a5, a6)
22*65791Smckusick int (*a1)();
23*65791Smckusick struct buf *a2;
24*65791Smckusick dev_t a3;
25*65791Smckusick int a4;
26*65791Smckusick u_int (*a5)();
27*65791Smckusick struct uio *a6;
2849677Smckusick {
2949677Smckusick
3049677Smckusick /*
3149677Smckusick * Body deleted.
3249677Smckusick */
3349677Smckusick return (EIO);
3449677Smckusick }
3549677Smckusick
3649677Smckusick u_int
minphys(a1)37*65791Smckusick minphys(a1)
38*65791Smckusick struct buf *a1;
3949677Smckusick {
4049677Smckusick
4149677Smckusick /*
4249677Smckusick * Body deleted.
4349677Smckusick */
44*65791Smckusick return (0);
4549677Smckusick }
4649677Smckusick
4749677Smckusick /*
4849677Smckusick * Do a read on a device for a user process.
4949677Smckusick */
rawread(dev,uio)5049677Smckusick rawread(dev, uio)
5149677Smckusick dev_t dev;
5249677Smckusick struct uio *uio;
5349677Smckusick {
5449677Smckusick return (physio(cdevsw[major(dev)].d_strategy, (struct buf *)NULL,
5549677Smckusick dev, B_READ, minphys, uio));
5649677Smckusick }
5749677Smckusick
5849677Smckusick /*
5949677Smckusick * Do a write on a device for a user process.
6049677Smckusick */
rawwrite(dev,uio)6149677Smckusick rawwrite(dev, uio)
6249677Smckusick dev_t dev;
6349677Smckusick struct uio *uio;
6449677Smckusick {
6549677Smckusick return (physio(cdevsw[major(dev)].d_strategy, (struct buf *)NULL,
6649677Smckusick dev, B_WRITE, minphys, uio));
6749677Smckusick }
68