blob: f927a7b1a8d4c3a82df0e1c9f4ff243dccda49c0 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001/* cg3.c: CGTHREE frame buffer driver
2 *
David S. Miller50312ce2006-06-29 14:35:52 -07003 * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net)
Linus Torvalds1da177e2005-04-16 15:20:36 -07004 * Copyright (C) 1996,1998 Jakub Jelinek (jj@ultra.linux.cz)
5 * Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
6 * Copyright (C) 1997 Eddie C. Dost (ecd@skynet.be)
7 *
8 * Driver layout based loosely on tgafb.c, see that file for credits.
9 */
10
11#include <linux/module.h>
12#include <linux/kernel.h>
13#include <linux/errno.h>
14#include <linux/string.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070015#include <linux/delay.h>
16#include <linux/init.h>
17#include <linux/fb.h>
18#include <linux/mm.h>
Robert Reif6cd5a862008-05-08 21:37:30 -070019#include <linux/of_device.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070020
21#include <asm/io.h>
Linus Torvalds1da177e2005-04-16 15:20:36 -070022#include <asm/fbio.h>
23
24#include "sbuslib.h"
25
26/*
27 * Local functions.
28 */
29
30static int cg3_setcolreg(unsigned, unsigned, unsigned, unsigned,
31 unsigned, struct fb_info *);
32static int cg3_blank(int, struct fb_info *);
33
Christoph Hellwig216d5262006-01-14 13:21:25 -080034static int cg3_mmap(struct fb_info *, struct vm_area_struct *);
Christoph Hellwig67a66802006-01-14 13:21:25 -080035static int cg3_ioctl(struct fb_info *, unsigned int, unsigned long);
Linus Torvalds1da177e2005-04-16 15:20:36 -070036
37/*
38 * Frame buffer operations
39 */
40
41static struct fb_ops cg3_ops = {
42 .owner = THIS_MODULE,
43 .fb_setcolreg = cg3_setcolreg,
44 .fb_blank = cg3_blank,
45 .fb_fillrect = cfb_fillrect,
46 .fb_copyarea = cfb_copyarea,
47 .fb_imageblit = cfb_imageblit,
48 .fb_mmap = cg3_mmap,
49 .fb_ioctl = cg3_ioctl,
Christoph Hellwig9ffb83b2005-11-12 12:11:12 -080050#ifdef CONFIG_COMPAT
51 .fb_compat_ioctl = sbusfb_compat_ioctl,
52#endif
Linus Torvalds1da177e2005-04-16 15:20:36 -070053};
54
55
56/* Control Register Constants */
57#define CG3_CR_ENABLE_INTS 0x80
58#define CG3_CR_ENABLE_VIDEO 0x40
59#define CG3_CR_ENABLE_TIMING 0x20
60#define CG3_CR_ENABLE_CURCMP 0x10
61#define CG3_CR_XTAL_MASK 0x0c
62#define CG3_CR_DIVISOR_MASK 0x03
63
64/* Status Register Constants */
65#define CG3_SR_PENDING_INT 0x80
66#define CG3_SR_RES_MASK 0x70
67#define CG3_SR_1152_900_76_A 0x40
68#define CG3_SR_1152_900_76_B 0x60
69#define CG3_SR_ID_MASK 0x0f
70#define CG3_SR_ID_COLOR 0x01
71#define CG3_SR_ID_MONO 0x02
72#define CG3_SR_ID_MONO_ECL 0x03
73
74enum cg3_type {
75 CG3_AT_66HZ = 0,
76 CG3_AT_76HZ,
77 CG3_RDI
78};
79
80struct bt_regs {
David S. Miller50312ce2006-06-29 14:35:52 -070081 u32 addr;
82 u32 color_map;
83 u32 control;
84 u32 cursor;
Linus Torvalds1da177e2005-04-16 15:20:36 -070085};
86
87struct cg3_regs {
88 struct bt_regs cmap;
David S. Miller50312ce2006-06-29 14:35:52 -070089 u8 control;
90 u8 status;
91 u8 cursor_start;
92 u8 cursor_end;
93 u8 h_blank_start;
94 u8 h_blank_end;
95 u8 h_sync_start;
96 u8 h_sync_end;
97 u8 comp_sync_end;
98 u8 v_blank_start_high;
99 u8 v_blank_start_low;
100 u8 v_blank_end;
101 u8 v_sync_start;
102 u8 v_sync_end;
103 u8 xfer_holdoff_start;
104 u8 xfer_holdoff_end;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105};
106
107/* Offset of interesting structures in the OBIO space */
108#define CG3_REGS_OFFSET 0x400000UL
109#define CG3_RAM_OFFSET 0x800000UL
110
111struct cg3_par {
112 spinlock_t lock;
113 struct cg3_regs __iomem *regs;
114 u32 sw_cmap[((256 * 3) + 3) / 4];
115
116 u32 flags;
117#define CG3_FLAG_BLANKED 0x00000001
118#define CG3_FLAG_RDI 0x00000002
119
David S. Miller50312ce2006-06-29 14:35:52 -0700120 unsigned long which_io;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700121};
122
123/**
124 * cg3_setcolreg - Optional function. Sets a color register.
125 * @regno: boolean, 0 copy local, 1 get_user() function
126 * @red: frame buffer colormap structure
127 * @green: The green value which can be up to 16 bits wide
128 * @blue: The blue value which can be up to 16 bits wide.
129 * @transp: If supported the alpha value which can be up to 16 bits wide.
130 * @info: frame buffer info structure
131 *
132 * The cg3 palette is loaded with 4 color values at each time
133 * so you end up with: (rgb)(r), (gb)(rg), (b)(rgb), and so on.
134 * We keep a sw copy of the hw cmap to assist us in this esoteric
135 * loading procedure.
136 */
137static int cg3_setcolreg(unsigned regno,
138 unsigned red, unsigned green, unsigned blue,
139 unsigned transp, struct fb_info *info)
140{
141 struct cg3_par *par = (struct cg3_par *) info->par;
142 struct bt_regs __iomem *bt = &par->regs->cmap;
143 unsigned long flags;
144 u32 *p32;
145 u8 *p8;
146 int count;
147
148 if (regno >= 256)
149 return 1;
150
151 red >>= 8;
152 green >>= 8;
153 blue >>= 8;
154
155 spin_lock_irqsave(&par->lock, flags);
156
157 p8 = (u8 *)par->sw_cmap + (regno * 3);
158 p8[0] = red;
159 p8[1] = green;
160 p8[2] = blue;
161
162#define D4M3(x) ((((x)>>2)<<1) + ((x)>>2)) /* (x/4)*3 */
163#define D4M4(x) ((x)&~0x3) /* (x/4)*4 */
164
165 count = 3;
166 p32 = &par->sw_cmap[D4M3(regno)];
167 sbus_writel(D4M4(regno), &bt->addr);
168 while (count--)
169 sbus_writel(*p32++, &bt->color_map);
170
171#undef D4M3
172#undef D4M4
173
174 spin_unlock_irqrestore(&par->lock, flags);
175
176 return 0;
177}
178
179/**
180 * cg3_blank - Optional function. Blanks the display.
181 * @blank_mode: the blank mode we want.
182 * @info: frame buffer structure that represents a single frame buffer
183 */
Robert Reifa7177512007-03-28 12:50:56 -0700184static int cg3_blank(int blank, struct fb_info *info)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700185{
186 struct cg3_par *par = (struct cg3_par *) info->par;
187 struct cg3_regs __iomem *regs = par->regs;
188 unsigned long flags;
189 u8 val;
190
191 spin_lock_irqsave(&par->lock, flags);
192
193 switch (blank) {
194 case FB_BLANK_UNBLANK: /* Unblanking */
195 val = sbus_readb(&regs->control);
196 val |= CG3_CR_ENABLE_VIDEO;
197 sbus_writeb(val, &regs->control);
198 par->flags &= ~CG3_FLAG_BLANKED;
199 break;
200
201 case FB_BLANK_NORMAL: /* Normal blanking */
202 case FB_BLANK_VSYNC_SUSPEND: /* VESA blank (vsync off) */
203 case FB_BLANK_HSYNC_SUSPEND: /* VESA blank (hsync off) */
204 case FB_BLANK_POWERDOWN: /* Poweroff */
205 val = sbus_readb(&regs->control);
206 val &= ~CG3_CR_ENABLE_VIDEO;
207 sbus_writeb(val, &regs->control);
208 par->flags |= CG3_FLAG_BLANKED;
209 break;
210 }
211
212 spin_unlock_irqrestore(&par->lock, flags);
213
214 return 0;
215}
216
217static struct sbus_mmap_map cg3_mmap_map[] = {
218 {
219 .voff = CG3_MMAP_OFFSET,
220 .poff = CG3_RAM_OFFSET,
221 .size = SBUS_MMAP_FBSIZE(1)
222 },
223 { .size = 0 }
224};
225
Christoph Hellwig216d5262006-01-14 13:21:25 -0800226static int cg3_mmap(struct fb_info *info, struct vm_area_struct *vma)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700227{
228 struct cg3_par *par = (struct cg3_par *)info->par;
229
230 return sbusfb_mmap_helper(cg3_mmap_map,
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000231 info->fix.smem_start, info->fix.smem_len,
David S. Miller50312ce2006-06-29 14:35:52 -0700232 par->which_io,
Linus Torvalds1da177e2005-04-16 15:20:36 -0700233 vma);
234}
235
Christoph Hellwig67a66802006-01-14 13:21:25 -0800236static int cg3_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700237{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700238 return sbusfb_ioctl_helper(cmd, arg, info,
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000239 FBTYPE_SUN3COLOR, 8, info->fix.smem_len);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240}
241
242/*
243 * Initialisation
244 */
245
Robert Reifa7177512007-03-28 12:50:56 -0700246static void __devinit cg3_init_fix(struct fb_info *info, int linebytes,
247 struct device_node *dp)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248{
David S. Miller50312ce2006-06-29 14:35:52 -0700249 strlcpy(info->fix.id, dp->name, sizeof(info->fix.id));
Linus Torvalds1da177e2005-04-16 15:20:36 -0700250
251 info->fix.type = FB_TYPE_PACKED_PIXELS;
252 info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
253
254 info->fix.line_length = linebytes;
255
256 info->fix.accel = FB_ACCEL_SUN_CGTHREE;
257}
258
Robert Reifa7177512007-03-28 12:50:56 -0700259static void __devinit cg3_rdi_maybe_fixup_var(struct fb_var_screeninfo *var,
260 struct device_node *dp)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261{
Stephen Rothwellccf0dec2007-03-29 00:49:54 -0700262 const char *params;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263 char *p;
264 int ww, hh;
265
David S. Miller50312ce2006-06-29 14:35:52 -0700266 params = of_get_property(dp, "params", NULL);
267 if (params) {
268 ww = simple_strtoul(params, &p, 10);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269 if (ww && *p == 'x') {
270 hh = simple_strtoul(p + 1, &p, 10);
271 if (hh && *p == '-') {
272 if (var->xres != ww ||
273 var->yres != hh) {
274 var->xres = var->xres_virtual = ww;
275 var->yres = var->yres_virtual = hh;
276 }
277 }
278 }
279 }
280}
281
Robert Reifa7177512007-03-28 12:50:56 -0700282static u8 cg3regvals_66hz[] __devinitdata = { /* 1152 x 900, 66 Hz */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700283 0x14, 0xbb, 0x15, 0x2b, 0x16, 0x04, 0x17, 0x14,
284 0x18, 0xae, 0x19, 0x03, 0x1a, 0xa8, 0x1b, 0x24,
285 0x1c, 0x01, 0x1d, 0x05, 0x1e, 0xff, 0x1f, 0x01,
286 0x10, 0x20, 0
287};
288
Robert Reifa7177512007-03-28 12:50:56 -0700289static u8 cg3regvals_76hz[] __devinitdata = { /* 1152 x 900, 76 Hz */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700290 0x14, 0xb7, 0x15, 0x27, 0x16, 0x03, 0x17, 0x0f,
291 0x18, 0xae, 0x19, 0x03, 0x1a, 0xae, 0x1b, 0x2a,
292 0x1c, 0x01, 0x1d, 0x09, 0x1e, 0xff, 0x1f, 0x01,
293 0x10, 0x24, 0
294};
295
Robert Reifa7177512007-03-28 12:50:56 -0700296static u8 cg3regvals_rdi[] __devinitdata = { /* 640 x 480, cgRDI */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700297 0x14, 0x70, 0x15, 0x20, 0x16, 0x08, 0x17, 0x10,
298 0x18, 0x06, 0x19, 0x02, 0x1a, 0x31, 0x1b, 0x51,
299 0x1c, 0x06, 0x1d, 0x0c, 0x1e, 0xff, 0x1f, 0x01,
300 0x10, 0x22, 0
301};
302
Robert Reifa7177512007-03-28 12:50:56 -0700303static u8 *cg3_regvals[] __devinitdata = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700304 cg3regvals_66hz, cg3regvals_76hz, cg3regvals_rdi
305};
306
Robert Reifa7177512007-03-28 12:50:56 -0700307static u_char cg3_dacvals[] __devinitdata = {
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308 4, 0xff, 5, 0x00, 6, 0x70, 7, 0x00, 0
309};
310
David S. Miller6c8f5b92007-08-24 22:33:15 -0700311static int __devinit cg3_do_default_mode(struct cg3_par *par)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312{
313 enum cg3_type type;
314 u8 *p;
315
316 if (par->flags & CG3_FLAG_RDI)
317 type = CG3_RDI;
318 else {
319 u8 status = sbus_readb(&par->regs->status), mon;
320 if ((status & CG3_SR_ID_MASK) == CG3_SR_ID_COLOR) {
321 mon = status & CG3_SR_RES_MASK;
322 if (mon == CG3_SR_1152_900_76_A ||
323 mon == CG3_SR_1152_900_76_B)
324 type = CG3_AT_76HZ;
325 else
326 type = CG3_AT_66HZ;
327 } else {
David S. Miller6c8f5b92007-08-24 22:33:15 -0700328 printk(KERN_ERR "cgthree: can't handle SR %02x\n",
329 status);
330 return -EINVAL;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331 }
332 }
333
334 for (p = cg3_regvals[type]; *p; p += 2) {
335 u8 __iomem *regp = &((u8 __iomem *)par->regs)[p[0]];
336 sbus_writeb(p[1], regp);
337 }
338 for (p = cg3_dacvals; *p; p += 2) {
David S. Miller50312ce2006-06-29 14:35:52 -0700339 u8 __iomem *regp;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340
David S. Miller50312ce2006-06-29 14:35:52 -0700341 regp = (u8 __iomem *)&par->regs->cmap.addr;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342 sbus_writeb(p[0], regp);
David S. Miller50312ce2006-06-29 14:35:52 -0700343 regp = (u8 __iomem *)&par->regs->cmap.control;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700344 sbus_writeb(p[1], regp);
345 }
David S. Miller6c8f5b92007-08-24 22:33:15 -0700346 return 0;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700347}
348
Grant Likely28541d02011-02-22 21:07:43 -0700349static int __devinit cg3_probe(struct platform_device *op)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700350{
Anatolij Gustschind4b8b2c2010-06-03 02:20:44 +0200351 struct device_node *dp = op->dev.of_node;
David S. Millerc7f439b2007-07-27 22:31:46 -0700352 struct fb_info *info;
353 struct cg3_par *par;
354 int linebytes, err;
Linus Torvalds1da177e2005-04-16 15:20:36 -0700355
David S. Millerc7f439b2007-07-27 22:31:46 -0700356 info = framebuffer_alloc(sizeof(struct cg3_par), &op->dev);
357
358 err = -ENOMEM;
359 if (!info)
360 goto out_err;
361 par = info->par;
362
363 spin_lock_init(&par->lock);
364
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000365 info->fix.smem_start = op->resource[0].start;
David S. Millerc7f439b2007-07-27 22:31:46 -0700366 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
367
Robert Reif6cd5a862008-05-08 21:37:30 -0700368 sbusfb_fill_var(&info->var, dp, 8);
David S. Millerc7f439b2007-07-27 22:31:46 -0700369 info->var.red.length = 8;
370 info->var.green.length = 8;
371 info->var.blue.length = 8;
372 if (!strcmp(dp->name, "cgRDI"))
373 par->flags |= CG3_FLAG_RDI;
374 if (par->flags & CG3_FLAG_RDI)
375 cg3_rdi_maybe_fixup_var(&info->var, dp);
376
377 linebytes = of_getintprop_default(dp, "linebytes",
378 info->var.xres);
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000379 info->fix.smem_len = PAGE_ALIGN(linebytes * info->var.yres);
David S. Millerc7f439b2007-07-27 22:31:46 -0700380
381 par->regs = of_ioremap(&op->resource[0], CG3_REGS_OFFSET,
382 sizeof(struct cg3_regs), "cg3 regs");
383 if (!par->regs)
384 goto out_release_fb;
385
386 info->flags = FBINFO_DEFAULT;
387 info->fbops = &cg3_ops;
388 info->screen_base = of_ioremap(&op->resource[0], CG3_RAM_OFFSET,
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000389 info->fix.smem_len, "cg3 ram");
David S. Millerc7f439b2007-07-27 22:31:46 -0700390 if (!info->screen_base)
391 goto out_unmap_regs;
392
Robert Reif59f71372008-05-03 21:12:00 -0700393 cg3_blank(FB_BLANK_UNBLANK, info);
David S. Millerc7f439b2007-07-27 22:31:46 -0700394
David S. Miller6c8f5b92007-08-24 22:33:15 -0700395 if (!of_find_property(dp, "width", NULL)) {
396 err = cg3_do_default_mode(par);
397 if (err)
398 goto out_unmap_screen;
399 }
David S. Millerc7f439b2007-07-27 22:31:46 -0700400
401 if (fb_alloc_cmap(&info->cmap, 256, 0))
402 goto out_unmap_screen;
403
404 fb_set_cmap(&info->cmap, info);
405
406 cg3_init_fix(info, linebytes, dp);
407
408 err = register_framebuffer(info);
409 if (err < 0)
410 goto out_dealloc_cmap;
411
412 dev_set_drvdata(&op->dev, info);
413
Robert Reif194f1a682008-04-27 15:18:57 -0700414 printk(KERN_INFO "%s: cg3 at %lx:%lx\n",
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000415 dp->full_name, par->which_io, info->fix.smem_start);
David S. Millerc7f439b2007-07-27 22:31:46 -0700416
417 return 0;
418
419out_dealloc_cmap:
420 fb_dealloc_cmap(&info->cmap);
421
422out_unmap_screen:
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000423 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
David S. Millerc7f439b2007-07-27 22:31:46 -0700424
425out_unmap_regs:
426 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
427
428out_release_fb:
429 framebuffer_release(info);
430
431out_err:
432 return err;
David S. Miller50312ce2006-06-29 14:35:52 -0700433}
434
Grant Likely2dc11582010-08-06 09:25:50 -0600435static int __devexit cg3_remove(struct platform_device *op)
David S. Miller50312ce2006-06-29 14:35:52 -0700436{
David S. Millerc7f439b2007-07-27 22:31:46 -0700437 struct fb_info *info = dev_get_drvdata(&op->dev);
438 struct cg3_par *par = info->par;
David S. Miller50312ce2006-06-29 14:35:52 -0700439
David S. Millerc7f439b2007-07-27 22:31:46 -0700440 unregister_framebuffer(info);
441 fb_dealloc_cmap(&info->cmap);
David S. Miller50312ce2006-06-29 14:35:52 -0700442
David S. Millerc7f439b2007-07-27 22:31:46 -0700443 of_iounmap(&op->resource[0], par->regs, sizeof(struct cg3_regs));
Krzysztof Helt9fbfd4b2009-05-04 10:37:46 +0000444 of_iounmap(&op->resource[0], info->screen_base, info->fix.smem_len);
David S. Miller50312ce2006-06-29 14:35:52 -0700445
David S. Millerc7f439b2007-07-27 22:31:46 -0700446 framebuffer_release(info);
David S. Miller50312ce2006-06-29 14:35:52 -0700447
David S. Millere3a411a32006-12-28 21:01:32 -0800448 dev_set_drvdata(&op->dev, NULL);
David S. Miller50312ce2006-06-29 14:35:52 -0700449
450 return 0;
451}
452
David S. Millerfd098312008-08-31 01:23:17 -0700453static const struct of_device_id cg3_match[] = {
David S. Miller50312ce2006-06-29 14:35:52 -0700454 {
455 .name = "cgthree",
456 },
457 {
458 .name = "cgRDI",
459 },
460 {},
461};
462MODULE_DEVICE_TABLE(of, cg3_match);
463
Grant Likely28541d02011-02-22 21:07:43 -0700464static struct platform_driver cg3_driver = {
Grant Likely40182942010-04-13 16:13:02 -0700465 .driver = {
466 .name = "cg3",
467 .owner = THIS_MODULE,
468 .of_match_table = cg3_match,
469 },
David S. Miller50312ce2006-06-29 14:35:52 -0700470 .probe = cg3_probe,
471 .remove = __devexit_p(cg3_remove),
472};
473
474static int __init cg3_init(void)
475{
Linus Torvalds1da177e2005-04-16 15:20:36 -0700476 if (fb_get_options("cg3fb", NULL))
477 return -ENODEV;
478
Grant Likely28541d02011-02-22 21:07:43 -0700479 return platform_driver_register(&cg3_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480}
481
David S. Miller50312ce2006-06-29 14:35:52 -0700482static void __exit cg3_exit(void)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700483{
Grant Likely28541d02011-02-22 21:07:43 -0700484 platform_driver_unregister(&cg3_driver);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700485}
486
487module_init(cg3_init);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700488module_exit(cg3_exit);
Linus Torvalds1da177e2005-04-16 15:20:36 -0700489
490MODULE_DESCRIPTION("framebuffer driver for CGthree chipsets");
David S. Miller50312ce2006-06-29 14:35:52 -0700491MODULE_AUTHOR("David S. Miller <davem@davemloft.net>");
492MODULE_VERSION("2.0");
Linus Torvalds1da177e2005-04-16 15:20:36 -0700493MODULE_LICENSE("GPL");