aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio
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
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')
-rw-r--r--drivers/s390/cio/cio.c2
-rw-r--r--drivers/s390/cio/device_id.c2
-rw-r--r--drivers/s390/cio/ioasm.h4
-rw-r--r--drivers/s390/cio/qdio.c2
-rw-r--r--drivers/s390/cio/qdio.h34
5 files changed, 22 insertions, 22 deletions
diff --git a/drivers/s390/cio/cio.c b/drivers/s390/cio/cio.c
index 6f274f4f92eb..7376bc87206d 100644
--- a/drivers/s390/cio/cio.c
+++ b/drivers/s390/cio/cio.c
@@ -195,7 +195,7 @@ cio_start_key (struct subchannel *sch, /* subchannel structure */
195 sch->orb.spnd = sch->options.suspend; 195 sch->orb.spnd = sch->options.suspend;
196 sch->orb.ssic = sch->options.suspend && sch->options.inter; 196 sch->orb.ssic = sch->options.suspend && sch->options.inter;
197 sch->orb.lpm = (lpm != 0) ? (lpm & sch->opm) : sch->lpm; 197 sch->orb.lpm = (lpm != 0) ? (lpm & sch->opm) : sch->lpm;
198#ifdef CONFIG_ARCH_S390X 198#ifdef CONFIG_64BIT
199 /* 199 /*
200 * for 64 bit we always support 64 bit IDAWs with 4k page size only 200 * for 64 bit we always support 64 bit IDAWs with 4k page size only
201 */ 201 */
diff --git a/drivers/s390/cio/device_id.c b/drivers/s390/cio/device_id.c
index 3c77c3fd461d..04ceba343db8 100644
--- a/drivers/s390/cio/device_id.c
+++ b/drivers/s390/cio/device_id.c
@@ -27,7 +27,7 @@
27/* 27/*
28 * diag210 is used under VM to get information about a virtual device 28 * diag210 is used under VM to get information about a virtual device
29 */ 29 */
30#ifdef CONFIG_ARCH_S390X 30#ifdef CONFIG_64BIT
31int 31int
32diag210(struct diag210 * addr) 32diag210(struct diag210 * addr)
33{ 33{
diff --git a/drivers/s390/cio/ioasm.h b/drivers/s390/cio/ioasm.h
index 62b0e2ad507f..95a9462f9a91 100644
--- a/drivers/s390/cio/ioasm.h
+++ b/drivers/s390/cio/ioasm.h
@@ -50,7 +50,7 @@ static inline int stsch_err(struct subchannel_id schid,
50 "0: ipm %0\n" 50 "0: ipm %0\n"
51 " srl %0,28\n" 51 " srl %0,28\n"
52 "1:\n" 52 "1:\n"
53#ifdef CONFIG_ARCH_S390X 53#ifdef CONFIG_64BIT
54 ".section __ex_table,\"a\"\n" 54 ".section __ex_table,\"a\"\n"
55 " .align 8\n" 55 " .align 8\n"
56 " .quad 0b,1b\n" 56 " .quad 0b,1b\n"
@@ -95,7 +95,7 @@ static inline int msch_err(struct subchannel_id schid,
95 "0: ipm %0\n" 95 "0: ipm %0\n"
96 " srl %0,28\n" 96 " srl %0,28\n"
97 "1:\n" 97 "1:\n"
98#ifdef CONFIG_ARCH_S390X 98#ifdef CONFIG_64BIT
99 ".section __ex_table,\"a\"\n" 99 ".section __ex_table,\"a\"\n"
100 " .align 8\n" 100 " .align 8\n"
101 " .quad 0b,1b\n" 101 " .quad 0b,1b\n"
diff --git a/drivers/s390/cio/qdio.c b/drivers/s390/cio/qdio.c
index 035c77af9cd3..30a836ffc31f 100644
--- a/drivers/s390/cio/qdio.c
+++ b/drivers/s390/cio/qdio.c
@@ -2394,7 +2394,7 @@ tiqdio_check_chsc_availability(void)
2394 sprintf(dbf_text,"hydrati%1x", hydra_thinints); 2394 sprintf(dbf_text,"hydrati%1x", hydra_thinints);
2395 QDIO_DBF_TEXT0(0,setup,dbf_text); 2395 QDIO_DBF_TEXT0(0,setup,dbf_text);
2396 2396
2397#ifdef CONFIG_ARCH_S390X 2397#ifdef CONFIG_64BIT
2398 /* Check for QEBSM support in general (bit 58). */ 2398 /* Check for QEBSM support in general (bit 58). */
2399 is_passthrough = css_general_characteristics.qebsm; 2399 is_passthrough = css_general_characteristics.qebsm;
2400#endif 2400#endif
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;