blob: fa896210ed7b2af40136dd7784737929fbf80b28 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/*
Bartlomiej Zolnierkiewicz59bca8c2008-02-01 23:09:33 +01002 * Copyright (C) 1994-1998 Linus Torvalds & authors (see below)
Pavel Machekfc410692008-07-23 19:56:02 +02003 * Copyright (C) 2003-2005, 2007 Bartlomiej Zolnierkiewicz
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 */
5
6/*
7 * Mostly written by Mark Lord <mlord@pobox.com>
8 * and Gadi Oxman <gadio@netvision.net.il>
9 * and Andre Hedrick <andre@linux-ide.org>
10 *
11 * See linux/MAINTAINERS for address of current maintainer.
12 *
13 * This is the multiple IDE interface driver, as evolved from hd.c.
14 * It supports up to MAX_HWIFS IDE interfaces, on one or more IRQs
15 * (usually 14 & 15).
16 * There can be up to two drives per interface, as per the ATA-2 spec.
17 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070018 * ...
19 *
20 * From hd.c:
21 * |
22 * | It traverses the request-list, using interrupts to jump between functions.
23 * | As nearly all functions can be called within interrupts, we may not sleep.
24 * | Special care is recommended. Have Fun!
25 * |
26 * | modified by Drew Eckhardt to check nr of hd's from the CMOS.
27 * |
28 * | Thanks to Branko Lankester, lankeste@fwi.uva.nl, who found a bug
29 * | in the early extended-partition checks and added DM partitions.
30 * |
31 * | Early work on error handling by Mika Liljeberg (liljeber@cs.Helsinki.FI).
32 * |
33 * | IRQ-unmask, drive-id, multiple-mode, support for ">16 heads",
34 * | and general streamlining by Mark Lord (mlord@pobox.com).
35 *
36 * October, 1994 -- Complete line-by-line overhaul for linux 1.1.x, by:
37 *
38 * Mark Lord (mlord@pobox.com) (IDE Perf.Pkg)
39 * Delman Lee (delman@ieee.org) ("Mr. atdisk2")
40 * Scott Snyder (snyder@fnald0.fnal.gov) (ATAPI IDE cd-rom)
41 *
42 * This was a rewrite of just about everything from hd.c, though some original
43 * code is still sprinkled about. Think of it as a major evolution, with
44 * inspiration from lots of linux users, esp. hamish@zot.apana.org.au
Linus Torvalds1da177e2005-04-16 15:20:36 -070045 */
46
Linus Torvalds1da177e2005-04-16 15:20:36 -070047#include <linux/module.h>
48#include <linux/types.h>
49#include <linux/string.h>
50#include <linux/kernel.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070051#include <linux/interrupt.h>
52#include <linux/major.h>
53#include <linux/errno.h>
54#include <linux/genhd.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070055#include <linux/init.h>
56#include <linux/pci.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070057#include <linux/ide.h>
Bartlomiej Zolnierkiewicz3ceca722008-10-10 22:39:27 +020058#include <linux/hdreg.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070059#include <linux/completion.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070060#include <linux/device.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070061
Bartlomiej Zolnierkiewiczf74c9142008-04-18 00:46:23 +020062struct class *ide_port_class;
63
Bartlomiej Zolnierkiewicz08da5912008-07-24 22:53:15 +020064/**
65 * ide_device_get - get an additional reference to a ide_drive_t
66 * @drive: device to get a reference to
67 *
68 * Gets a reference to the ide_drive_t and increments the use count of the
69 * underlying LLDD module.
70 */
71int ide_device_get(ide_drive_t *drive)
72{
73 struct device *host_dev;
74 struct module *module;
75
76 if (!get_device(&drive->gendev))
77 return -ENXIO;
78
79 host_dev = drive->hwif->host->dev[0];
80 module = host_dev ? host_dev->driver->owner : NULL;
81
82 if (module && !try_module_get(module)) {
83 put_device(&drive->gendev);
84 return -ENXIO;
85 }
86
87 return 0;
88}
89EXPORT_SYMBOL_GPL(ide_device_get);
90
91/**
92 * ide_device_put - release a reference to a ide_drive_t
93 * @drive: device to release a reference on
94 *
95 * Release a reference to the ide_drive_t and decrements the use count of
96 * the underlying LLDD module.
97 */
98void ide_device_put(ide_drive_t *drive)
99{
100#ifdef CONFIG_MODULE_UNLOAD
101 struct device *host_dev = drive->hwif->host->dev[0];
102 struct module *module = host_dev ? host_dev->driver->owner : NULL;
103
104 if (module)
105 module_put(module);
106#endif
107 put_device(&drive->gendev);
108}
109EXPORT_SYMBOL_GPL(ide_device_put);
110
Bartlomiej Zolnierkiewicz8604aff2005-05-26 14:55:34 +0200111static int ide_bus_match(struct device *dev, struct device_driver *drv)
112{
113 return 1;
114}
115
Kay Sievers7eff2e72007-08-14 15:15:12 +0200116static int ide_uevent(struct device *dev, struct kobj_uevent_env *env)
Kay Sievers263756e2005-12-12 18:03:44 +0100117{
118 ide_drive_t *drive = to_ide_device(dev);
Kay Sievers263756e2005-12-12 18:03:44 +0100119
Bartlomiej Zolnierkiewiczebdab072009-01-02 16:12:48 +0100120 add_uevent_var(env, "MEDIA=%s", ide_media_string(drive));
Kay Sievers7eff2e72007-08-14 15:15:12 +0200121 add_uevent_var(env, "DRIVENAME=%s", drive->name);
Bartlomiej Zolnierkiewiczebdab072009-01-02 16:12:48 +0100122 add_uevent_var(env, "MODALIAS=ide:m-%s", ide_media_string(drive));
Kay Sievers263756e2005-12-12 18:03:44 +0100123 return 0;
124}
125
Russell King4031bbe2006-01-06 11:41:00 +0000126static int generic_ide_probe(struct device *dev)
127{
128 ide_drive_t *drive = to_ide_device(dev);
Bartlomiej Zolnierkiewicz7f3c8682009-01-06 17:20:53 +0100129 struct ide_driver *drv = to_ide_driver(dev->driver);
Russell King4031bbe2006-01-06 11:41:00 +0000130
131 return drv->probe ? drv->probe(drive) : -ENODEV;
132}
133
134static int generic_ide_remove(struct device *dev)
135{
136 ide_drive_t *drive = to_ide_device(dev);
Bartlomiej Zolnierkiewicz7f3c8682009-01-06 17:20:53 +0100137 struct ide_driver *drv = to_ide_driver(dev->driver);
Russell King4031bbe2006-01-06 11:41:00 +0000138
139 if (drv->remove)
140 drv->remove(drive);
141
142 return 0;
143}
144
145static void generic_ide_shutdown(struct device *dev)
146{
147 ide_drive_t *drive = to_ide_device(dev);
Bartlomiej Zolnierkiewicz7f3c8682009-01-06 17:20:53 +0100148 struct ide_driver *drv = to_ide_driver(dev->driver);
Russell King4031bbe2006-01-06 11:41:00 +0000149
150 if (dev->driver && drv->shutdown)
151 drv->shutdown(drive);
152}
153
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154struct bus_type ide_bus_type = {
155 .name = "ide",
Bartlomiej Zolnierkiewicz8604aff2005-05-26 14:55:34 +0200156 .match = ide_bus_match,
Kay Sievers263756e2005-12-12 18:03:44 +0100157 .uevent = ide_uevent,
Russell King4031bbe2006-01-06 11:41:00 +0000158 .probe = generic_ide_probe,
159 .remove = generic_ide_remove,
160 .shutdown = generic_ide_shutdown,
Kay Sievers263756e2005-12-12 18:03:44 +0100161 .dev_attrs = ide_dev_attrs,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162 .suspend = generic_ide_suspend,
163 .resume = generic_ide_resume,
164};
165
Bartlomiej Zolnierkiewicz8604aff2005-05-26 14:55:34 +0200166EXPORT_SYMBOL_GPL(ide_bus_type);
167
Bartlomiej Zolnierkiewiczebae41a2008-04-27 15:38:29 +0200168int ide_vlb_clk;
169EXPORT_SYMBOL_GPL(ide_vlb_clk);
170
171module_param_named(vlb_clock, ide_vlb_clk, int, 0);
172MODULE_PARM_DESC(vlb_clock, "VLB clock frequency (in MHz)");
173
174int ide_pci_clk;
175EXPORT_SYMBOL_GPL(ide_pci_clk);
176
177module_param_named(pci_clock, ide_pci_clk, int, 0);
178MODULE_PARM_DESC(pci_clock, "PCI bus clock frequency (in MHz)");
179
Rusty Russell1a8bff52010-08-11 23:04:38 -0600180static int ide_set_dev_param_mask(const char *s, const struct kernel_param *kp)
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200181{
182 int a, b, i, j = 1;
183 unsigned int *dev_param_mask = (unsigned int *)kp->arg;
184
David Fries0af80c02009-02-25 20:28:21 +0100185 /* controller . device (0 or 1) [ : 1 (set) | 0 (clear) ] */
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200186 if (sscanf(s, "%d.%d:%d", &a, &b, &j) != 3 &&
187 sscanf(s, "%d.%d", &a, &b) != 2)
188 return -EINVAL;
189
190 i = a * MAX_DRIVES + b;
191
192 if (i >= MAX_HWIFS * MAX_DRIVES || j < 0 || j > 1)
193 return -EINVAL;
194
195 if (j)
196 *dev_param_mask |= (1 << i);
197 else
David Fries0af80c02009-02-25 20:28:21 +0100198 *dev_param_mask &= ~(1 << i);
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200199
200 return 0;
201}
202
Rusty Russell1a8bff52010-08-11 23:04:38 -0600203static struct kernel_param_ops param_ops_ide_dev_mask = {
204 .set = ide_set_dev_param_mask
205};
206
207#define param_check_ide_dev_mask(name, p) param_check_uint(name, p)
208
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200209static unsigned int ide_nodma;
210
Rusty Russell1a8bff52010-08-11 23:04:38 -0600211module_param_named(nodma, ide_nodma, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200212MODULE_PARM_DESC(nodma, "disallow DMA for a device");
213
214static unsigned int ide_noflush;
215
Rusty Russell1a8bff52010-08-11 23:04:38 -0600216module_param_named(noflush, ide_noflush, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200217MODULE_PARM_DESC(noflush, "disable flush requests for a device");
218
Bartlomiej Zolnierkiewicz075affc2009-06-07 13:52:52 +0200219static unsigned int ide_nohpa;
220
Rusty Russell1a8bff52010-08-11 23:04:38 -0600221module_param_named(nohpa, ide_nohpa, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz075affc2009-06-07 13:52:52 +0200222MODULE_PARM_DESC(nohpa, "disable Host Protected Area for a device");
223
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200224static unsigned int ide_noprobe;
225
Rusty Russell1a8bff52010-08-11 23:04:38 -0600226module_param_named(noprobe, ide_noprobe, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200227MODULE_PARM_DESC(noprobe, "skip probing for a device");
228
229static unsigned int ide_nowerr;
230
Rusty Russell1a8bff52010-08-11 23:04:38 -0600231module_param_named(nowerr, ide_nowerr, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz3a7d2482008-10-10 22:39:21 +0200232MODULE_PARM_DESC(nowerr, "ignore the ATA_DF bit for a device");
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200233
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200234static unsigned int ide_cdroms;
235
Rusty Russell1a8bff52010-08-11 23:04:38 -0600236module_param_named(cdrom, ide_cdroms, ide_dev_mask, 0);
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200237MODULE_PARM_DESC(cdrom, "force device as a CD-ROM");
238
239struct chs_geom {
240 unsigned int cyl;
241 u8 head;
242 u8 sect;
243};
244
245static unsigned int ide_disks;
246static struct chs_geom ide_disks_chs[MAX_HWIFS * MAX_DRIVES];
247
248static int ide_set_disk_chs(const char *str, struct kernel_param *kp)
249{
250 int a, b, c = 0, h = 0, s = 0, i, j = 1;
251
David Fries0af80c02009-02-25 20:28:21 +0100252 /* controller . device (0 or 1) : Cylinders , Heads , Sectors */
253 /* controller . device (0 or 1) : 1 (use CHS) | 0 (ignore CHS) */
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200254 if (sscanf(str, "%d.%d:%d,%d,%d", &a, &b, &c, &h, &s) != 5 &&
255 sscanf(str, "%d.%d:%d", &a, &b, &j) != 3)
256 return -EINVAL;
257
258 i = a * MAX_DRIVES + b;
259
260 if (i >= MAX_HWIFS * MAX_DRIVES || j < 0 || j > 1)
261 return -EINVAL;
262
263 if (c > INT_MAX || h > 255 || s > 255)
264 return -EINVAL;
265
266 if (j)
267 ide_disks |= (1 << i);
268 else
David Fries0af80c02009-02-25 20:28:21 +0100269 ide_disks &= ~(1 << i);
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200270
271 ide_disks_chs[i].cyl = c;
272 ide_disks_chs[i].head = h;
273 ide_disks_chs[i].sect = s;
274
275 return 0;
276}
277
278module_param_call(chs, ide_set_disk_chs, NULL, NULL, 0);
279MODULE_PARM_DESC(chs, "force device as a disk (using CHS)");
280
Bartlomiej Zolnierkiewicz123995b2008-10-13 21:39:40 +0200281static void ide_dev_apply_params(ide_drive_t *drive, u8 unit)
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200282{
Bartlomiej Zolnierkiewicz123995b2008-10-13 21:39:40 +0200283 int i = drive->hwif->index * MAX_DRIVES + unit;
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200284
285 if (ide_nodma & (1 << i)) {
286 printk(KERN_INFO "ide: disallowing DMA for %s\n", drive->name);
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200287 drive->dev_flags |= IDE_DFLAG_NODMA;
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200288 }
289 if (ide_noflush & (1 << i)) {
290 printk(KERN_INFO "ide: disabling flush requests for %s\n",
291 drive->name);
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200292 drive->dev_flags |= IDE_DFLAG_NOFLUSH;
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200293 }
Bartlomiej Zolnierkiewicz075affc2009-06-07 13:52:52 +0200294 if (ide_nohpa & (1 << i)) {
295 printk(KERN_INFO "ide: disabling Host Protected Area for %s\n",
296 drive->name);
297 drive->dev_flags |= IDE_DFLAG_NOHPA;
298 }
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200299 if (ide_noprobe & (1 << i)) {
300 printk(KERN_INFO "ide: skipping probe for %s\n", drive->name);
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200301 drive->dev_flags |= IDE_DFLAG_NOPROBE;
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200302 }
303 if (ide_nowerr & (1 << i)) {
Bartlomiej Zolnierkiewicz3a7d2482008-10-10 22:39:21 +0200304 printk(KERN_INFO "ide: ignoring the ATA_DF bit for %s\n",
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200305 drive->name);
306 drive->bad_wstat = BAD_R_STAT;
307 }
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200308 if (ide_cdroms & (1 << i)) {
309 printk(KERN_INFO "ide: forcing %s as a CD-ROM\n", drive->name);
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200310 drive->dev_flags |= IDE_DFLAG_PRESENT;
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200311 drive->media = ide_cdrom;
312 /* an ATAPI device ignores DRDY */
313 drive->ready_stat = 0;
314 }
315 if (ide_disks & (1 << i)) {
316 drive->cyl = drive->bios_cyl = ide_disks_chs[i].cyl;
317 drive->head = drive->bios_head = ide_disks_chs[i].head;
318 drive->sect = drive->bios_sect = ide_disks_chs[i].sect;
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200319
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200320 printk(KERN_INFO "ide: forcing %s as a disk (%d/%d/%d)\n",
321 drive->name,
322 drive->cyl, drive->head, drive->sect);
Bartlomiej Zolnierkiewicz97100fc2008-10-13 21:39:36 +0200323
324 drive->dev_flags |= IDE_DFLAG_FORCED_GEOM | IDE_DFLAG_PRESENT;
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200325 drive->media = ide_disk;
Bartlomiej Zolnierkiewicz3a7d2482008-10-10 22:39:21 +0200326 drive->ready_stat = ATA_DRDY;
Bartlomiej Zolnierkiewicz4706a7e2008-04-27 15:38:30 +0200327 }
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200328}
329
Bartlomiej Zolnierkiewicz9fd91d92008-04-27 15:38:23 +0200330static unsigned int ide_ignore_cable;
331
332static int ide_set_ignore_cable(const char *s, struct kernel_param *kp)
333{
334 int i, j = 1;
335
David Fries0af80c02009-02-25 20:28:21 +0100336 /* controller (ignore) */
337 /* controller : 1 (ignore) | 0 (use) */
Bartlomiej Zolnierkiewicz9fd91d92008-04-27 15:38:23 +0200338 if (sscanf(s, "%d:%d", &i, &j) != 2 && sscanf(s, "%d", &i) != 1)
339 return -EINVAL;
340
341 if (i >= MAX_HWIFS || j < 0 || j > 1)
342 return -EINVAL;
343
344 if (j)
345 ide_ignore_cable |= (1 << i);
346 else
David Fries0af80c02009-02-25 20:28:21 +0100347 ide_ignore_cable &= ~(1 << i);
Bartlomiej Zolnierkiewicz9fd91d92008-04-27 15:38:23 +0200348
349 return 0;
350}
351
352module_param_call(ignore_cable, ide_set_ignore_cable, NULL, NULL, 0);
353MODULE_PARM_DESC(ignore_cable, "ignore cable detection");
354
355void ide_port_apply_params(ide_hwif_t *hwif)
356{
Bartlomiej Zolnierkiewicz2bd24a12009-01-06 17:20:56 +0100357 ide_drive_t *drive;
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200358 int i;
359
Bartlomiej Zolnierkiewicz9fd91d92008-04-27 15:38:23 +0200360 if (ide_ignore_cable & (1 << hwif->index)) {
361 printk(KERN_INFO "ide: ignoring cable detection for %s\n",
362 hwif->name);
363 hwif->cbl = ATA_CBL_PATA40_SHORT;
364 }
Bartlomiej Zolnierkiewicz6e875432008-04-27 15:38:30 +0200365
Bartlomiej Zolnierkiewicz2bd24a12009-01-06 17:20:56 +0100366 ide_port_for_each_dev(i, drive, hwif)
367 ide_dev_apply_params(drive, i);
Bartlomiej Zolnierkiewicz9fd91d92008-04-27 15:38:23 +0200368}
369
Linus Torvalds1da177e2005-04-16 15:20:36 -0700370/*
371 * This is gets invoked once during initialization, to set *everything* up
372 */
373static int __init ide_init(void)
374{
Randy Dunlap349ae232006-10-03 01:14:23 -0700375 int ret;
376
Bartlomiej Zolnierkiewiczeba8ff92008-02-11 00:32:13 +0100377 printk(KERN_INFO "Uniform Multi-Platform E-IDE driver\n");
Bartlomiej Zolnierkiewicz537f06c2008-02-01 23:09:35 +0100378
Randy Dunlap349ae232006-10-03 01:14:23 -0700379 ret = bus_register(&ide_bus_type);
380 if (ret < 0) {
381 printk(KERN_WARNING "IDE: bus_register error: %d\n", ret);
382 return ret;
383 }
Linus Torvalds1da177e2005-04-16 15:20:36 -0700384
Bartlomiej Zolnierkiewiczf74c9142008-04-18 00:46:23 +0200385 ide_port_class = class_create(THIS_MODULE, "ide_port");
386 if (IS_ERR(ide_port_class)) {
387 ret = PTR_ERR(ide_port_class);
388 goto out_port_class;
389 }
Bartlomiej Zolnierkiewiczf74c9142008-04-18 00:46:23 +0200390
Bartlomiej Zolnierkiewicz8b803bd2009-03-24 23:22:41 +0100391 ide_acpi_init();
392
Bartlomiej Zolnierkiewicz5cbf79c2007-05-10 00:01:11 +0200393 proc_ide_create();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700394
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395 return 0;
Bartlomiej Zolnierkiewiczf74c9142008-04-18 00:46:23 +0200396
397out_port_class:
398 bus_unregister(&ide_bus_type);
399
400 return ret;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700401}
402
Bartlomiej Zolnierkiewicz931ee0d2008-07-15 21:21:47 +0200403static void __exit ide_exit(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700404{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405 proc_ide_destroy();
Linus Torvalds1da177e2005-04-16 15:20:36 -0700406
Bartlomiej Zolnierkiewiczf74c9142008-04-18 00:46:23 +0200407 class_destroy(ide_port_class);
408
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409 bus_unregister(&ide_bus_type);
410}
411
Linus Torvalds1da177e2005-04-16 15:20:36 -0700412module_init(ide_init);
Bartlomiej Zolnierkiewicz931ee0d2008-07-15 21:21:47 +0200413module_exit(ide_exit);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700414
Bartlomiej Zolnierkiewicz931ee0d2008-07-15 21:21:47 +0200415MODULE_LICENSE("GPL");