2 * File...........: linux/drivers/s390x/idals.c
3 * Author(s)......: Holger Smolinski <Holger.Smolinski@de.ibm.com>
4 * Bugreports.to..: <Linux390@de.ibm.com>
5 * (C) IBM Corporation, IBM Deutschland Entwicklung GmbH, 2000a
9 * 12/13/00 changed IDALs to 4kByte-IDALs
12 #include <linux/module.h>
13 #include <linux/config.h>
14 #include <linux/slab.h>
17 #include <asm/idals.h>
19 #ifdef CONFIG_ARCH_S390X
21 unsigned long __create_idal (unsigned long address, int count)
24 unsigned long *idal, *tmp;
26 nridaws = ((address & (IDA_BLOCK_SIZE-1)) + count +
27 (IDA_BLOCK_SIZE-1)) >> IDA_SIZE_LOG;
28 idal = idal_alloc(nridaws);
32 address &= -IDA_BLOCK_SIZE;
33 while (--nridaws > 0) {
34 address += IDA_BLOCK_SIZE;
38 return (unsigned long) idal;
41 EXPORT_SYMBOL (__create_idal);