summaryrefslogtreecommitdiffstats
path: root/sys/dev/ata/atapi-tape.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
committerphk <phk@FreeBSD.org>1999-05-07 07:03:47 +0000
commit7f79e0b14a5e8b99418d156f26b7b4026a163eca (patch)
tree64910f3b88102ea4099d5b4c903f873d9a777b12 /sys/dev/ata/atapi-tape.c
parent87d0bb82afc01a49a3747975f2dda83e9e025bd1 (diff)
downloadFreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.zip
FreeBSD-src-7f79e0b14a5e8b99418d156f26b7b4026a163eca.tar.gz
Introduce two functions: physread() and physwrite() and use these directly
in *devsw[] rather than the 46 local copies of the same functions. (grog will do the same for vinum when he has time)
Diffstat (limited to 'sys/dev/ata/atapi-tape.c')
-rw-r--r--sys/dev/ata/atapi-tape.c18
1 files changed, 2 insertions, 16 deletions
diff --git a/sys/dev/ata/atapi-tape.c b/sys/dev/ata/atapi-tape.c
index e2ecce1..a436224 100644
--- a/sys/dev/ata/atapi-tape.c
+++ b/sys/dev/ata/atapi-tape.c
@@ -25,7 +25,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: atapi-tape.c,v 1.5 1999/03/28 18:57:19 sos Exp $
+ * $Id: atapi-tape.c,v 1.6 1999/04/10 18:53:35 sos Exp $
*/
#include "ata.h"
@@ -54,8 +54,6 @@
static d_open_t astopen;
static d_close_t astclose;
-static d_read_t astread;
-static d_write_t astwrite;
static d_ioctl_t astioctl;
static d_strategy_t aststrategy;
@@ -63,7 +61,7 @@ static d_strategy_t aststrategy;
#define CDEV_MAJOR 119
static struct cdevsw ast_cdevsw = {
- astopen, astclose, astread, astwrite,
+ astopen, astclose, physread, physwrite,
astioctl, nostop, nullreset, nodevtotty,
seltrue, nommap, aststrategy, "ast",
NULL, -1, nodump, nopsize,
@@ -260,18 +258,6 @@ astclose(dev_t dev, int32_t flags, int32_t fmt, struct proc *p)
return 0;
}
-static int
-astread(dev_t dev, struct uio *uio, int32_t ioflag)
-{
- return physio(aststrategy, NULL, dev, 1, minphys, uio);
-}
-
-static int
-astwrite(dev_t dev, struct uio *uio, int32_t ioflag)
-{
- return physio(aststrategy, NULL, dev, 0, minphys, uio);
-}
-
static int
astioctl(dev_t dev, u_long cmd, caddr_t addr, int32_t flag, struct proc *p)
{
OpenPOWER on IntegriCloud