summaryrefslogtreecommitdiffstats
path: root/sys
diff options
context:
space:
mode:
authorscottl <scottl@FreeBSD.org>2004-05-19 17:46:34 +0000
committerscottl <scottl@FreeBSD.org>2004-05-19 17:46:34 +0000
commit7a171af108859031e1999b5b061ec62dd6f5308e (patch)
treec511c2bbbf444e21fb4f4e692d05089c9b93cf81 /sys
parent5393c978958fc0e63c0edccf49c5955872f37ca2 (diff)
downloadFreeBSD-src-7a171af108859031e1999b5b061ec62dd6f5308e.zip
FreeBSD-src-7a171af108859031e1999b5b061ec62dd6f5308e.tar.gz
Update from vendor. This also adds support for newer management tools.
Submitted by: Achim Leubner
Diffstat (limited to 'sys')
-rw-r--r--sys/dev/iir/iir.c25
-rw-r--r--sys/dev/iir/iir.h16
-rw-r--r--sys/dev/iir/iir_ctrl.c2
3 files changed, 16 insertions, 27 deletions
diff --git a/sys/dev/iir/iir.c b/sys/dev/iir/iir.c
index a98c0eb..0cedf4d 100644
--- a/sys/dev/iir/iir.c
+++ b/sys/dev/iir/iir.c
@@ -1,7 +1,7 @@
/*
- * Copyright (c) 2000-03 ICP vortex GmbH
- * Copyright (c) 2002-03 Intel Corporation
- * Copyright (c) 2003 Adaptec Inc.
+ * Copyright (c) 2000-04 ICP vortex GmbH
+ * Copyright (c) 2002-04 Intel Corporation
+ * Copyright (c) 2003-04 Adaptec Inc.
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
@@ -39,7 +39,7 @@
* Mike Smith; Some driver source code.
* FreeBSD.ORG; Great O/S to work on and for.
*
- * $Id: iir.c 1.4 2003/08/26 12:29:44 achim Exp $"
+ * $Id: iir.c 1.5 2004/03/30 10:17:53 achim Exp $"
*/
#include <sys/cdefs.h>
@@ -291,27 +291,12 @@ iir_init(struct gdt_softc *gdt)
return (1);
}
- if (!gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_INIT,
- GDT_LINUX_OS, 0, 0)) {
- printf("iir%d: Cache service initialization error %d\n",
- gdt->sc_hanum, gdt->sc_status);
- gdt_free_ccb(gdt, gccb);
- return (1);
- }
gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_UNFREEZE_IO,
0, 0, 0);
- if (!gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_MOUNT,
- 0xffff, 1, 0)) {
- printf("iir%d: Cache service mount error %d\n",
- gdt->sc_hanum, gdt->sc_status);
- gdt_free_ccb(gdt, gccb);
- return (1);
- }
-
if (!gdt_internal_cmd(gdt, gccb, GDT_CACHESERVICE, GDT_INIT,
GDT_LINUX_OS, 0, 0)) {
- printf("iir%d: Cache service post-mount initialization error %d\n",
+ printf("iir%d: Cache service initialization error %d\n",
gdt->sc_hanum, gdt->sc_status);
gdt_free_ccb(gdt, gccb);
return (1);
diff --git a/sys/dev/iir/iir.h b/sys/dev/iir/iir.h
index e29f769..44c4cf5 100644
--- a/sys/dev/iir/iir.h
+++ b/sys/dev/iir/iir.h
@@ -1,8 +1,8 @@
/* $FreeBSD$ */
/*
- * Copyright (c) 2000-03 ICP vortex GmbH
- * Copyright (c) 2002-03 Intel Corporation
- * Copyright (c) 2003 Adaptec Inc.
+ * Copyright (c) 2000-04 ICP vortex GmbH
+ * Copyright (c) 2002-04 Intel Corporation
+ * Copyright (c) 2003-04 Adaptec Inc.
* All Rights Reserved
*
* Redistribution and use in source and binary forms, with or without
@@ -41,14 +41,14 @@
* credits: Niklas Hallqvist; OpenBSD driver for the ICP Controllers.
* FreeBSD.ORG; Great O/S to work on and for.
*
- * $Id: iir.h 1.5 2003/08/26 12:28:21 achim Exp $"
+ * $Id: iir.h 1.6 2004/03/30 10:19:44 achim Exp $"
*/
#ifndef _IIR_H
#define _IIR_H
#define IIR_DRIVER_VERSION 1
-#define IIR_DRIVER_SUBVERSION 4
+#define IIR_DRIVER_SUBVERSION 5
/* OEM IDs */
#define OEM_ID_ICP 0x941c
@@ -152,8 +152,10 @@
/* IOCTLs */
#define GDT_IOCTL_GENERAL _IOWR('J', 0, gdt_ucmd_t) /* general IOCTL */
-#define GDT_IOCTL_DRVERS _IOWR('J', 1, int) /* get driver version */
-#define GDT_IOCTL_CTRTYPE _IOR('J', 2, gdt_ctrt_t) /* get ctr. type */
+#define GDT_IOCTL_DRVERS _IOR('J', 1, int) /* get driver version */
+#define GDT_IOCTL_CTRTYPE _IOWR('J', 2, gdt_ctrt_t) /* get ctr. type */
+#define GDT_IOCTL_DRVERS_OLD _IOWR('J', 1, int) /* get driver version */
+#define GDT_IOCTL_CTRTYPE_OLD _IOR('J', 2, gdt_ctrt_t) /* get ctr. type */
#define GDT_IOCTL_OSVERS _IOR('J', 3, gdt_osv_t) /* get OS version */
#define GDT_IOCTL_CTRCNT _IOR('J', 5, int) /* get ctr. count */
#define GDT_IOCTL_EVENT _IOWR('J', 8, gdt_event_t) /* get event */
diff --git a/sys/dev/iir/iir_ctrl.c b/sys/dev/iir/iir_ctrl.c
index 9aeb099..87275b5 100644
--- a/sys/dev/iir/iir_ctrl.c
+++ b/sys/dev/iir/iir_ctrl.c
@@ -261,11 +261,13 @@ iir_ioctl(dev_t dev, u_long cmd, caddr_t cmdarg, int flags, d_thread_t * p)
}
case GDT_IOCTL_DRVERS:
+ case GDT_IOCTL_DRVERS_OLD:
*(int *)cmdarg =
(IIR_DRIVER_VERSION << 8) | IIR_DRIVER_SUBVERSION;
break;
case GDT_IOCTL_CTRTYPE:
+ case GDT_IOCTL_CTRTYPE_OLD:
{
gdt_ctrt_t *p;
struct gdt_softc *gdt;
OpenPOWER on IntegriCloud