aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio/qdio.h
diff options
context:
space:
mode:
authorMartin Schwidefsky <schwidefsky@de.ibm.com>2006-01-06 03:19:28 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2006-01-06 11:33:53 -0500
commit347a8dc3b815f0c0fa62a1df075184ffe4cbdcf1 (patch)
treea6ec76690127e87fe6efa42b6238caadd6c07e7b /drivers/s390/cio/qdio.h
parent9bbc8346fb21fad3f678220b067450e436e45dbf (diff)
[PATCH] s390: cleanup Kconfig
Sanitize some s390 Kconfig options. We have ARCH_S390, ARCH_S390X, ARCH_S390_31, 64BIT, S390_SUPPORT and COMPAT. Replace these 6 options by S390, 64BIT and COMPAT. Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com> Signed-off-by: Andrew Morton <akpm@osdl.org> Signed-off-by: Linus Torvalds <torvalds@osdl.org>
Diffstat (limited to 'drivers/s390/cio/qdio.h')
-rw-r--r--drivers/s390/cio/qdio.h34
1 files changed, 17 insertions, 17 deletions
diff --git a/drivers/s390/cio/qdio.h b/drivers/s390/cio/qdio.h
index 43b840af5300..fa385e761fe1 100644
--- a/drivers/s390/cio/qdio.h
+++ b/drivers/s390/cio/qdio.h
@@ -271,7 +271,7 @@ static inline int
271do_sqbs(unsigned long sch, unsigned char state, int queue, 271do_sqbs(unsigned long sch, unsigned char state, int queue,
272 unsigned int *start, unsigned int *count) 272 unsigned int *start, unsigned int *count)
273{ 273{
274#ifdef CONFIG_ARCH_S390X 274#ifdef CONFIG_64BIT
275 register unsigned long _ccq asm ("0") = *count; 275 register unsigned long _ccq asm ("0") = *count;
276 register unsigned long _sch asm ("1") = sch; 276 register unsigned long _sch asm ("1") = sch;
277 unsigned long _queuestart = ((unsigned long)queue << 32) | *start; 277 unsigned long _queuestart = ((unsigned long)queue << 32) | *start;
@@ -295,7 +295,7 @@ static inline int
295do_eqbs(unsigned long sch, unsigned char *state, int queue, 295do_eqbs(unsigned long sch, unsigned char *state, int queue,
296 unsigned int *start, unsigned int *count) 296 unsigned int *start, unsigned int *count)
297{ 297{
298#ifdef CONFIG_ARCH_S390X 298#ifdef CONFIG_64BIT
299 register unsigned long _ccq asm ("0") = *count; 299 register unsigned long _ccq asm ("0") = *count;
300 register unsigned long _sch asm ("1") = sch; 300 register unsigned long _sch asm ("1") = sch;
301 unsigned long _queuestart = ((unsigned long)queue << 32) | *start; 301 unsigned long _queuestart = ((unsigned long)queue << 32) | *start;
@@ -323,7 +323,7 @@ do_siga_sync(struct subchannel_id schid, unsigned int mask1, unsigned int mask2)
323{ 323{
324 int cc; 324 int cc;
325 325
326#ifndef CONFIG_ARCH_S390X 326#ifndef CONFIG_64BIT
327 asm volatile ( 327 asm volatile (
328 "lhi 0,2 \n\t" 328 "lhi 0,2 \n\t"
329 "lr 1,%1 \n\t" 329 "lr 1,%1 \n\t"
@@ -336,7 +336,7 @@ do_siga_sync(struct subchannel_id schid, unsigned int mask1, unsigned int mask2)
336 : "d" (schid), "d" (mask1), "d" (mask2) 336 : "d" (schid), "d" (mask1), "d" (mask2)
337 : "cc", "0", "1", "2", "3" 337 : "cc", "0", "1", "2", "3"
338 ); 338 );
339#else /* CONFIG_ARCH_S390X */ 339#else /* CONFIG_64BIT */
340 asm volatile ( 340 asm volatile (
341 "lghi 0,2 \n\t" 341 "lghi 0,2 \n\t"
342 "llgfr 1,%1 \n\t" 342 "llgfr 1,%1 \n\t"
@@ -349,7 +349,7 @@ do_siga_sync(struct subchannel_id schid, unsigned int mask1, unsigned int mask2)
349 : "d" (schid), "d" (mask1), "d" (mask2) 349 : "d" (schid), "d" (mask1), "d" (mask2)
350 : "cc", "0", "1", "2", "3" 350 : "cc", "0", "1", "2", "3"
351 ); 351 );
352#endif /* CONFIG_ARCH_S390X */ 352#endif /* CONFIG_64BIT */
353 return cc; 353 return cc;
354} 354}
355 355
@@ -358,7 +358,7 @@ do_siga_input(struct subchannel_id schid, unsigned int mask)
358{ 358{
359 int cc; 359 int cc;
360 360
361#ifndef CONFIG_ARCH_S390X 361#ifndef CONFIG_64BIT
362 asm volatile ( 362 asm volatile (
363 "lhi 0,1 \n\t" 363 "lhi 0,1 \n\t"
364 "lr 1,%1 \n\t" 364 "lr 1,%1 \n\t"
@@ -370,7 +370,7 @@ do_siga_input(struct subchannel_id schid, unsigned int mask)
370 : "d" (schid), "d" (mask) 370 : "d" (schid), "d" (mask)
371 : "cc", "0", "1", "2", "memory" 371 : "cc", "0", "1", "2", "memory"
372 ); 372 );
373#else /* CONFIG_ARCH_S390X */ 373#else /* CONFIG_64BIT */
374 asm volatile ( 374 asm volatile (
375 "lghi 0,1 \n\t" 375 "lghi 0,1 \n\t"
376 "llgfr 1,%1 \n\t" 376 "llgfr 1,%1 \n\t"
@@ -382,7 +382,7 @@ do_siga_input(struct subchannel_id schid, unsigned int mask)
382 : "d" (schid), "d" (mask) 382 : "d" (schid), "d" (mask)
383 : "cc", "0", "1", "2", "memory" 383 : "cc", "0", "1", "2", "memory"
384 ); 384 );
385#endif /* CONFIG_ARCH_S390X */ 385#endif /* CONFIG_64BIT */
386 386
387 return cc; 387 return cc;
388} 388}
@@ -394,7 +394,7 @@ do_siga_output(unsigned long schid, unsigned long mask, __u32 *bb,
394 int cc; 394 int cc;
395 __u32 busy_bit; 395 __u32 busy_bit;
396 396
397#ifndef CONFIG_ARCH_S390X 397#ifndef CONFIG_64BIT
398 asm volatile ( 398 asm volatile (
399 "lhi 0,0 \n\t" 399 "lhi 0,0 \n\t"
400 "lr 1,%2 \n\t" 400 "lr 1,%2 \n\t"
@@ -424,7 +424,7 @@ do_siga_output(unsigned long schid, unsigned long mask, __u32 *bb,
424 "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION) 424 "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION)
425 : "cc", "0", "1", "2", "memory" 425 : "cc", "0", "1", "2", "memory"
426 ); 426 );
427#else /* CONFIG_ARCH_S390X */ 427#else /* CONFIG_64BIT */
428 asm volatile ( 428 asm volatile (
429 "llgfr 0,%5 \n\t" 429 "llgfr 0,%5 \n\t"
430 "lgr 1,%2 \n\t" 430 "lgr 1,%2 \n\t"
@@ -449,7 +449,7 @@ do_siga_output(unsigned long schid, unsigned long mask, __u32 *bb,
449 "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION), "d" (fc) 449 "i" (QDIO_SIGA_ERROR_ACCESS_EXCEPTION), "d" (fc)
450 : "cc", "0", "1", "2", "memory" 450 : "cc", "0", "1", "2", "memory"
451 ); 451 );
452#endif /* CONFIG_ARCH_S390X */ 452#endif /* CONFIG_64BIT */
453 453
454 (*bb) = busy_bit; 454 (*bb) = busy_bit;
455 return cc; 455 return cc;
@@ -461,21 +461,21 @@ do_clear_global_summary(void)
461 461
462 unsigned long time; 462 unsigned long time;
463 463
464#ifndef CONFIG_ARCH_S390X 464#ifndef CONFIG_64BIT
465 asm volatile ( 465 asm volatile (
466 "lhi 1,3 \n\t" 466 "lhi 1,3 \n\t"
467 ".insn rre,0xb2650000,2,0 \n\t" 467 ".insn rre,0xb2650000,2,0 \n\t"
468 "lr %0,3 \n\t" 468 "lr %0,3 \n\t"
469 : "=d" (time) : : "cc", "1", "2", "3" 469 : "=d" (time) : : "cc", "1", "2", "3"
470 ); 470 );
471#else /* CONFIG_ARCH_S390X */ 471#else /* CONFIG_64BIT */
472 asm volatile ( 472 asm volatile (
473 "lghi 1,3 \n\t" 473 "lghi 1,3 \n\t"
474 ".insn rre,0xb2650000,2,0 \n\t" 474 ".insn rre,0xb2650000,2,0 \n\t"
475 "lgr %0,3 \n\t" 475 "lgr %0,3 \n\t"
476 : "=d" (time) : : "cc", "1", "2", "3" 476 : "=d" (time) : : "cc", "1", "2", "3"
477 ); 477 );
478#endif /* CONFIG_ARCH_S390X */ 478#endif /* CONFIG_64BIT */
479 479
480 return time; 480 return time;
481} 481}
@@ -542,11 +542,11 @@ struct qdio_perf_stats {
542 542
543#define MY_MODULE_STRING(x) #x 543#define MY_MODULE_STRING(x) #x
544 544
545#ifdef CONFIG_ARCH_S390X 545#ifdef CONFIG_64BIT
546#define QDIO_GET_ADDR(x) ((__u32)(unsigned long)x) 546#define QDIO_GET_ADDR(x) ((__u32)(unsigned long)x)
547#else /* CONFIG_ARCH_S390X */ 547#else /* CONFIG_64BIT */
548#define QDIO_GET_ADDR(x) ((__u32)(long)x) 548#define QDIO_GET_ADDR(x) ((__u32)(long)x)
549#endif /* CONFIG_ARCH_S390X */ 549#endif /* CONFIG_64BIT */
550 550
551struct qdio_q { 551struct qdio_q {
552 volatile struct slsb slsb; 552 volatile struct slsb slsb;