summaryrefslogtreecommitdiffstats
path: root/sys/dev/twe/twe.c
diff options
context:
space:
mode:
authorvkashyap <vkashyap@FreeBSD.org>2005-02-17 19:05:42 +0000
committervkashyap <vkashyap@FreeBSD.org>2005-02-17 19:05:42 +0000
commitfcb0c9784b57f325a17b1870efc2148a646c3d2a (patch)
tree82e4d00d1191f556feaddc6e9bbb8148f03171e9 /sys/dev/twe/twe.c
parent25e3641222f6bbae8f81ea39fe0e0ebd3e265300 (diff)
downloadFreeBSD-src-fcb0c9784b57f325a17b1870efc2148a646c3d2a.zip
FreeBSD-src-fcb0c9784b57f325a17b1870efc2148a646c3d2a.tar.gz
Undoing recent changes to make 3ware's i386 tools work on amd64, since there are
now amd64 versions of CLI and 3DM2 available.
Diffstat (limited to 'sys/dev/twe/twe.c')
-rw-r--r--sys/dev/twe/twe.c36
1 files changed, 0 insertions, 36 deletions
diff --git a/sys/dev/twe/twe.c b/sys/dev/twe/twe.c
index 3ecd19d..96dc538 100644
--- a/sys/dev/twe/twe.c
+++ b/sys/dev/twe/twe.c
@@ -500,25 +500,9 @@ twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
struct twe_request *tr;
u_int8_t srid;
int s, error;
-#ifdef __amd64__
- struct twe_paramcommand32 *tp32 = (struct twe_paramcommand32 *)addr;
- struct twe_usercommand32 *tu32 = (struct twe_usercommand32 *)addr;
- struct twe_paramcommand tp_swab;
- struct twe_usercommand tu_swab;
-#endif
error = 0;
switch(ioctlcmd) {
-
-#ifdef __amd64__
- case TWEIO_COMMAND32:
- tu_swab.tu_command = tu32->tu_command;
- tu_swab.tu_data = (void *)(uintptr_t)tu32->tu_data;
- tu_swab.tu_size = tu32->tu_size;
- tu = &tu_swab;
- /* FALLTHROUGH */
-#endif
-
/* handle a command from userspace */
case TWEIO_COMMAND:
/* get a request */
@@ -604,16 +588,6 @@ twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
splx(s);
break;
-#ifdef __amd64__
- case TWEIO_GET_PARAM32:
- tp_swab.tp_table_id = tp32->tp_table_id;
- tp_swab.tp_param_id = tp32->tp_param_id;
- tp_swab.tp_data = (void *)(uintptr_t)tp32->tp_data;
- tp_swab.tp_size = tp32->tp_size;
- tp = &tp_swab;
- /* FALLTHROUGH */
-#endif
-
case TWEIO_GET_PARAM:
if ((param = twe_get_param(sc, tp->tp_table_id, tp->tp_param_id, tp->tp_size, NULL)) == NULL) {
twe_printf(sc, "TWEIO_GET_PARAM failed for 0x%x/0x%x/%d\n",
@@ -631,16 +605,6 @@ twe_ioctl(struct twe_softc *sc, int ioctlcmd, void *addr)
}
break;
-#ifdef __amd64__
- case TWEIO_SET_PARAM32:
- tp_swab.tp_table_id = tp32->tp_table_id;
- tp_swab.tp_param_id = tp32->tp_param_id;
- tp_swab.tp_data = (void *)(uintptr_t)tp32->tp_data;
- tp_swab.tp_size = tp32->tp_size;
- tp = &tp_swab;
- /* FALLTHROUGH */
-#endif
-
case TWEIO_SET_PARAM:
if ((data = malloc(tp->tp_size, M_DEVBUF, M_WAITOK)) == NULL) {
error = ENOMEM;
OpenPOWER on IntegriCloud