1 /* cg6.c: CGSIX (GX, GXplus, TGX) frame buffer driver
3 * Copyright (C) 2003, 2006 David S. Miller (davem@davemloft.net)
4 * Copyright (C) 1996,1998 Jakub Jelinek (jj@ultra.linux.cz)
5 * Copyright (C) 1996 Miguel de Icaza (miguel@nuclecu.unam.mx)
6 * Copyright (C) 1996 Eddie C. Dost (ecd@skynet.be)
8 * Driver layout based loosely on tgafb.c, see that file for credits.
11 #include <linux/module.h>
12 #include <linux/kernel.h>
13 #include <linux/errno.h>
14 #include <linux/string.h>
15 #include <linux/slab.h>
16 #include <linux/delay.h>
17 #include <linux/init.h>
22 #include <asm/of_device.h>
31 static int cg6_setcolreg(unsigned, unsigned, unsigned, unsigned,
32 unsigned, struct fb_info *);
33 static int cg6_blank(int, struct fb_info *);
35 static void cg6_imageblit(struct fb_info *, const struct fb_image *);
36 static void cg6_fillrect(struct fb_info *, const struct fb_fillrect *);
37 static int cg6_sync(struct fb_info *);
38 static int cg6_mmap(struct fb_info *, struct vm_area_struct *);
39 static int cg6_ioctl(struct fb_info *, unsigned int, unsigned long);
42 * Frame buffer operations
45 static struct fb_ops cg6_ops = {
47 .fb_setcolreg = cg6_setcolreg,
48 .fb_blank = cg6_blank,
49 .fb_fillrect = cg6_fillrect,
50 .fb_copyarea = cfb_copyarea,
51 .fb_imageblit = cg6_imageblit,
54 .fb_ioctl = cg6_ioctl,
56 .fb_compat_ioctl = sbusfb_compat_ioctl,
60 /* Offset of interesting structures in the OBIO space */
62 * Brooktree is the video dac and is funny to program on the cg6.
63 * (it's even funnier on the cg3)
64 * The FBC could be the frame buffer control
65 * The FHC could is the frame buffer hardware control.
67 #define CG6_ROM_OFFSET 0x0UL
68 #define CG6_BROOKTREE_OFFSET 0x200000UL
69 #define CG6_DHC_OFFSET 0x240000UL
70 #define CG6_ALT_OFFSET 0x280000UL
71 #define CG6_FHC_OFFSET 0x300000UL
72 #define CG6_THC_OFFSET 0x301000UL
73 #define CG6_FBC_OFFSET 0x700000UL
74 #define CG6_TEC_OFFSET 0x701000UL
75 #define CG6_RAM_OFFSET 0x800000UL
78 #define CG6_FHC_FBID_SHIFT 24
79 #define CG6_FHC_FBID_MASK 255
80 #define CG6_FHC_REV_SHIFT 20
81 #define CG6_FHC_REV_MASK 15
82 #define CG6_FHC_FROP_DISABLE (1 << 19)
83 #define CG6_FHC_ROW_DISABLE (1 << 18)
84 #define CG6_FHC_SRC_DISABLE (1 << 17)
85 #define CG6_FHC_DST_DISABLE (1 << 16)
86 #define CG6_FHC_RESET (1 << 15)
87 #define CG6_FHC_LITTLE_ENDIAN (1 << 13)
88 #define CG6_FHC_RES_MASK (3 << 11)
89 #define CG6_FHC_1024 (0 << 11)
90 #define CG6_FHC_1152 (1 << 11)
91 #define CG6_FHC_1280 (2 << 11)
92 #define CG6_FHC_1600 (3 << 11)
93 #define CG6_FHC_CPU_MASK (3 << 9)
94 #define CG6_FHC_CPU_SPARC (0 << 9)
95 #define CG6_FHC_CPU_68020 (1 << 9)
96 #define CG6_FHC_CPU_386 (2 << 9)
97 #define CG6_FHC_TEST (1 << 8)
98 #define CG6_FHC_TEST_X_SHIFT 4
99 #define CG6_FHC_TEST_X_MASK 15
100 #define CG6_FHC_TEST_Y_SHIFT 0
101 #define CG6_FHC_TEST_Y_MASK 15
103 /* FBC mode definitions */
104 #define CG6_FBC_BLIT_IGNORE 0x00000000
105 #define CG6_FBC_BLIT_NOSRC 0x00100000
106 #define CG6_FBC_BLIT_SRC 0x00200000
107 #define CG6_FBC_BLIT_ILLEGAL 0x00300000
108 #define CG6_FBC_BLIT_MASK 0x00300000
110 #define CG6_FBC_VBLANK 0x00080000
112 #define CG6_FBC_MODE_IGNORE 0x00000000
113 #define CG6_FBC_MODE_COLOR8 0x00020000
114 #define CG6_FBC_MODE_COLOR1 0x00040000
115 #define CG6_FBC_MODE_HRMONO 0x00060000
116 #define CG6_FBC_MODE_MASK 0x00060000
118 #define CG6_FBC_DRAW_IGNORE 0x00000000
119 #define CG6_FBC_DRAW_RENDER 0x00008000
120 #define CG6_FBC_DRAW_PICK 0x00010000
121 #define CG6_FBC_DRAW_ILLEGAL 0x00018000
122 #define CG6_FBC_DRAW_MASK 0x00018000
124 #define CG6_FBC_BWRITE0_IGNORE 0x00000000
125 #define CG6_FBC_BWRITE0_ENABLE 0x00002000
126 #define CG6_FBC_BWRITE0_DISABLE 0x00004000
127 #define CG6_FBC_BWRITE0_ILLEGAL 0x00006000
128 #define CG6_FBC_BWRITE0_MASK 0x00006000
130 #define CG6_FBC_BWRITE1_IGNORE 0x00000000
131 #define CG6_FBC_BWRITE1_ENABLE 0x00000800
132 #define CG6_FBC_BWRITE1_DISABLE 0x00001000
133 #define CG6_FBC_BWRITE1_ILLEGAL 0x00001800
134 #define CG6_FBC_BWRITE1_MASK 0x00001800
136 #define CG6_FBC_BREAD_IGNORE 0x00000000
137 #define CG6_FBC_BREAD_0 0x00000200
138 #define CG6_FBC_BREAD_1 0x00000400
139 #define CG6_FBC_BREAD_ILLEGAL 0x00000600
140 #define CG6_FBC_BREAD_MASK 0x00000600
142 #define CG6_FBC_BDISP_IGNORE 0x00000000
143 #define CG6_FBC_BDISP_0 0x00000080
144 #define CG6_FBC_BDISP_1 0x00000100
145 #define CG6_FBC_BDISP_ILLEGAL 0x00000180
146 #define CG6_FBC_BDISP_MASK 0x00000180
148 #define CG6_FBC_INDEX_MOD 0x00000040
149 #define CG6_FBC_INDEX_MASK 0x00000030
151 /* THC definitions */
152 #define CG6_THC_MISC_REV_SHIFT 16
153 #define CG6_THC_MISC_REV_MASK 15
154 #define CG6_THC_MISC_RESET (1 << 12)
155 #define CG6_THC_MISC_VIDEO (1 << 10)
156 #define CG6_THC_MISC_SYNC (1 << 9)
157 #define CG6_THC_MISC_VSYNC (1 << 8)
158 #define CG6_THC_MISC_SYNC_ENAB (1 << 7)
159 #define CG6_THC_MISC_CURS_RES (1 << 6)
160 #define CG6_THC_MISC_INT_ENAB (1 << 5)
161 #define CG6_THC_MISC_INT (1 << 4)
162 #define CG6_THC_MISC_INIT 0x9f
164 /* The contents are unknown */
173 u32 thc_hs; /* hsync timing */
176 u32 thc_vs; /* vsync timing */
181 u32 thc_cursxy; /* cursor x,y position (16 bits each) */
182 u32 thc_cursmask[32]; /* cursor mask bits */
183 u32 thc_cursbits[32]; /* what to show where mask enabled */
196 u32 x0, y0, z0, color0;
197 u32 x1, y1, z1, color1;
198 u32 x2, y2, z2, color2;
199 u32 x3, y3, z3, color3;
204 u32 clipminx, clipminy;
206 u32 clipmaxx, clipmaxy;
217 u32 apointx, apointy, apointz;
219 u32 rpointx, rpointy, rpointz;
221 u32 pointr, pointg, pointb, pointa;
222 u32 alinex, aliney, alinez;
224 u32 rlinex, rliney, rlinez;
226 u32 liner, lineg, lineb, linea;
227 u32 atrix, atriy, atriz;
229 u32 rtrix, rtriy, rtriz;
231 u32 trir, trig, trib, tria;
232 u32 aquadx, aquady, aquadz;
234 u32 rquadx, rquady, rquadz;
236 u32 quadr, quadg, quadb, quada;
237 u32 arectx, arecty, arectz;
239 u32 rrectx, rrecty, rrectz;
241 u32 rectr, rectg, rectb, recta;
253 struct bt_regs __iomem *bt;
254 struct cg6_fbc __iomem *fbc;
255 struct cg6_thc __iomem *thc;
256 struct cg6_tec __iomem *tec;
260 #define CG6_FLAG_BLANKED 0x00000001
262 unsigned long physbase;
263 unsigned long which_io;
264 unsigned long fbsize;
267 static int cg6_sync(struct fb_info *info)
269 struct cg6_par *par = (struct cg6_par *)info->par;
270 struct cg6_fbc __iomem *fbc = par->fbc;
274 if (!(sbus_readl(&fbc->s) & 0x10000000))
277 } while (--limit > 0);
283 * cg6_fillrect - Draws a rectangle on the screen.
285 * @info: frame buffer structure that represents a single frame buffer
286 * @rect: structure defining the rectagle and operation.
288 static void cg6_fillrect(struct fb_info *info, const struct fb_fillrect *rect)
290 struct cg6_par *par = (struct cg6_par *)info->par;
291 struct cg6_fbc __iomem *fbc = par->fbc;
295 /* XXX doesn't handle ROP_XOR */
297 spin_lock_irqsave(&par->lock, flags);
299 sbus_writel(rect->color, &fbc->fg);
300 sbus_writel(~(u32)0, &fbc->pixelm);
301 sbus_writel(0xea80ff00, &fbc->alu);
302 sbus_writel(0, &fbc->s);
303 sbus_writel(0, &fbc->clip);
304 sbus_writel(~(u32)0, &fbc->pm);
305 sbus_writel(rect->dy, &fbc->arecty);
306 sbus_writel(rect->dx, &fbc->arectx);
307 sbus_writel(rect->dy + rect->height, &fbc->arecty);
308 sbus_writel(rect->dx + rect->width, &fbc->arectx);
310 val = sbus_readl(&fbc->draw);
311 } while (val < 0 && (val & 0x20000000));
312 spin_unlock_irqrestore(&par->lock, flags);
316 * cg6_imageblit - Copies a image from system memory to the screen.
318 * @info: frame buffer structure that represents a single frame buffer
319 * @image: structure defining the image.
321 static void cg6_imageblit(struct fb_info *info, const struct fb_image *image)
323 struct cg6_par *par = (struct cg6_par *)info->par;
324 struct cg6_fbc __iomem *fbc = par->fbc;
325 const u8 *data = image->data;
330 if (image->depth > 1) {
331 cfb_imageblit(info, image);
335 spin_lock_irqsave(&par->lock, flags);
339 sbus_writel(image->fg_color, &fbc->fg);
340 sbus_writel(image->bg_color, &fbc->bg);
341 sbus_writel(0x140000, &fbc->mode);
342 sbus_writel(0xe880fc30, &fbc->alu);
343 sbus_writel(~(u32)0, &fbc->pixelm);
344 sbus_writel(0, &fbc->s);
345 sbus_writel(0, &fbc->clip);
346 sbus_writel(0xff, &fbc->pm);
347 sbus_writel(32, &fbc->incx);
348 sbus_writel(0, &fbc->incy);
352 for (i = 0; i < image->height; i++) {
353 width = image->width;
355 while (width >= 32) {
358 sbus_writel(y, &fbc->y0);
359 sbus_writel(x, &fbc->x0);
360 sbus_writel(x + 32 - 1, &fbc->x1);
362 val = ((u32)data[0] << 24) |
363 ((u32)data[1] << 16) |
364 ((u32)data[2] << 8) |
366 sbus_writel(val, &fbc->font);
375 sbus_writel(y, &fbc->y0);
376 sbus_writel(x, &fbc->x0);
377 sbus_writel(x + width - 1, &fbc->x1);
379 val = (u32) data[0] << 24;
381 } else if (width <= 16) {
382 val = ((u32) data[0] << 24) |
383 ((u32) data[1] << 16);
386 val = ((u32) data[0] << 24) |
387 ((u32) data[1] << 16) |
388 ((u32) data[2] << 8);
391 sbus_writel(val, &fbc->font);
398 spin_unlock_irqrestore(&par->lock, flags);
402 * cg6_setcolreg - Sets a color register.
404 * @regno: boolean, 0 copy local, 1 get_user() function
405 * @red: frame buffer colormap structure
406 * @green: The green value which can be up to 16 bits wide
407 * @blue: The blue value which can be up to 16 bits wide.
408 * @transp: If supported the alpha value which can be up to 16 bits wide.
409 * @info: frame buffer info structure
411 static int cg6_setcolreg(unsigned regno,
412 unsigned red, unsigned green, unsigned blue,
413 unsigned transp, struct fb_info *info)
415 struct cg6_par *par = (struct cg6_par *)info->par;
416 struct bt_regs __iomem *bt = par->bt;
426 spin_lock_irqsave(&par->lock, flags);
428 sbus_writel((u32)regno << 24, &bt->addr);
429 sbus_writel((u32)red << 24, &bt->color_map);
430 sbus_writel((u32)green << 24, &bt->color_map);
431 sbus_writel((u32)blue << 24, &bt->color_map);
433 spin_unlock_irqrestore(&par->lock, flags);
439 * cg6_blank - Blanks the display.
441 * @blank_mode: the blank mode we want.
442 * @info: frame buffer structure that represents a single frame buffer
444 static int cg6_blank(int blank, struct fb_info *info)
446 struct cg6_par *par = (struct cg6_par *)info->par;
447 struct cg6_thc __iomem *thc = par->thc;
451 spin_lock_irqsave(&par->lock, flags);
452 val = sbus_readl(&thc->thc_misc);
455 case FB_BLANK_UNBLANK: /* Unblanking */
456 val |= CG6_THC_MISC_VIDEO;
457 par->flags &= ~CG6_FLAG_BLANKED;
460 case FB_BLANK_NORMAL: /* Normal blanking */
461 case FB_BLANK_VSYNC_SUSPEND: /* VESA blank (vsync off) */
462 case FB_BLANK_HSYNC_SUSPEND: /* VESA blank (hsync off) */
463 case FB_BLANK_POWERDOWN: /* Poweroff */
464 val &= ~CG6_THC_MISC_VIDEO;
465 par->flags |= CG6_FLAG_BLANKED;
469 sbus_writel(val, &thc->thc_misc);
470 spin_unlock_irqrestore(&par->lock, flags);
475 static struct sbus_mmap_map cg6_mmap_map[] = {
478 .poff = CG6_FBC_OFFSET,
483 .poff = CG6_TEC_OFFSET,
488 .poff = CG6_BROOKTREE_OFFSET,
493 .poff = CG6_FHC_OFFSET,
498 .poff = CG6_THC_OFFSET,
503 .poff = CG6_ROM_OFFSET,
508 .poff = CG6_RAM_OFFSET,
509 .size = SBUS_MMAP_FBSIZE(1)
513 .poff = CG6_DHC_OFFSET,
519 static int cg6_mmap(struct fb_info *info, struct vm_area_struct *vma)
521 struct cg6_par *par = (struct cg6_par *)info->par;
523 return sbusfb_mmap_helper(cg6_mmap_map,
524 par->physbase, par->fbsize,
528 static int cg6_ioctl(struct fb_info *info, unsigned int cmd, unsigned long arg)
530 struct cg6_par *par = (struct cg6_par *)info->par;
532 return sbusfb_ioctl_helper(cmd, arg, info,
533 FBTYPE_SUNFAST_COLOR, 8, par->fbsize);
540 static void __devinit cg6_init_fix(struct fb_info *info, int linebytes)
542 struct cg6_par *par = (struct cg6_par *)info->par;
543 const char *cg6_cpu_name, *cg6_card_name;
546 conf = sbus_readl(par->fhc);
547 switch (conf & CG6_FHC_CPU_MASK) {
548 case CG6_FHC_CPU_SPARC:
549 cg6_cpu_name = "sparc";
551 case CG6_FHC_CPU_68020:
552 cg6_cpu_name = "68020";
555 cg6_cpu_name = "i386";
558 if (((conf >> CG6_FHC_REV_SHIFT) & CG6_FHC_REV_MASK) >= 11) {
559 if (par->fbsize <= 0x100000)
560 cg6_card_name = "TGX";
562 cg6_card_name = "TGX+";
564 if (par->fbsize <= 0x100000)
565 cg6_card_name = "GX";
567 cg6_card_name = "GX+";
570 sprintf(info->fix.id, "%s %s", cg6_card_name, cg6_cpu_name);
571 info->fix.id[sizeof(info->fix.id) - 1] = 0;
573 info->fix.type = FB_TYPE_PACKED_PIXELS;
574 info->fix.visual = FB_VISUAL_PSEUDOCOLOR;
576 info->fix.line_length = linebytes;
578 info->fix.accel = FB_ACCEL_SUN_CGSIX;
581 /* Initialize Brooktree DAC */
582 static void __devinit cg6_bt_init(struct cg6_par *par)
584 struct bt_regs __iomem *bt = par->bt;
586 sbus_writel(0x04 << 24, &bt->addr); /* color planes */
587 sbus_writel(0xff << 24, &bt->control);
588 sbus_writel(0x05 << 24, &bt->addr);
589 sbus_writel(0x00 << 24, &bt->control);
590 sbus_writel(0x06 << 24, &bt->addr); /* overlay plane */
591 sbus_writel(0x73 << 24, &bt->control);
592 sbus_writel(0x07 << 24, &bt->addr);
593 sbus_writel(0x00 << 24, &bt->control);
596 static void __devinit cg6_chip_init(struct fb_info *info)
598 struct cg6_par *par = (struct cg6_par *)info->par;
599 struct cg6_tec __iomem *tec = par->tec;
600 struct cg6_fbc __iomem *fbc = par->fbc;
604 /* Turn off stuff in the Transform Engine. */
605 sbus_writel(0, &tec->tec_matrix);
606 sbus_writel(0, &tec->tec_clip);
607 sbus_writel(0, &tec->tec_vdc);
609 /* Take care of bugs in old revisions. */
610 rev = (sbus_readl(par->fhc) >> CG6_FHC_REV_SHIFT) & CG6_FHC_REV_MASK;
612 conf = (sbus_readl(par->fhc) & CG6_FHC_RES_MASK) |
613 CG6_FHC_CPU_68020 | CG6_FHC_TEST |
614 (11 << CG6_FHC_TEST_X_SHIFT) |
615 (11 << CG6_FHC_TEST_Y_SHIFT);
617 conf |= CG6_FHC_DST_DISABLE;
618 sbus_writel(conf, par->fhc);
621 /* Set things in the FBC. Bad things appear to happen if we do
622 * back to back store/loads on the mode register, so copy it
624 mode = sbus_readl(&fbc->mode);
626 i = sbus_readl(&fbc->s);
627 } while (i & 0x10000000);
628 mode &= ~(CG6_FBC_BLIT_MASK | CG6_FBC_MODE_MASK |
629 CG6_FBC_DRAW_MASK | CG6_FBC_BWRITE0_MASK |
630 CG6_FBC_BWRITE1_MASK | CG6_FBC_BREAD_MASK |
632 mode |= (CG6_FBC_BLIT_SRC | CG6_FBC_MODE_COLOR8 |
633 CG6_FBC_DRAW_RENDER | CG6_FBC_BWRITE0_ENABLE |
634 CG6_FBC_BWRITE1_DISABLE | CG6_FBC_BREAD_0 |
636 sbus_writel(mode, &fbc->mode);
638 sbus_writel(0, &fbc->clip);
639 sbus_writel(0, &fbc->offx);
640 sbus_writel(0, &fbc->offy);
641 sbus_writel(0, &fbc->clipminx);
642 sbus_writel(0, &fbc->clipminy);
643 sbus_writel(info->var.xres - 1, &fbc->clipmaxx);
644 sbus_writel(info->var.yres - 1, &fbc->clipmaxy);
647 static void cg6_unmap_regs(struct of_device *op, struct fb_info *info,
651 of_iounmap(&op->resource[0], par->fbc, 4096);
653 of_iounmap(&op->resource[0], par->tec, sizeof(struct cg6_tec));
655 of_iounmap(&op->resource[0], par->thc, sizeof(struct cg6_thc));
657 of_iounmap(&op->resource[0], par->bt, sizeof(struct bt_regs));
659 of_iounmap(&op->resource[0], par->fhc, sizeof(u32));
661 if (info->screen_base)
662 of_iounmap(&op->resource[0], info->screen_base, par->fbsize);
665 static int __devinit cg6_probe(struct of_device *op,
666 const struct of_device_id *match)
668 struct device_node *dp = op->node;
669 struct fb_info *info;
674 info = framebuffer_alloc(sizeof(struct cg6_par), &op->dev);
681 spin_lock_init(&par->lock);
683 par->physbase = op->resource[0].start;
684 par->which_io = op->resource[0].flags & IORESOURCE_BITS;
686 sbusfb_fill_var(&info->var, dp->node, 8);
687 info->var.red.length = 8;
688 info->var.green.length = 8;
689 info->var.blue.length = 8;
691 linebytes = of_getintprop_default(dp, "linebytes",
693 par->fbsize = PAGE_ALIGN(linebytes * info->var.yres);
695 dblbuf = of_getintprop_default(dp, "dblbuf", 0);
699 par->fbc = of_ioremap(&op->resource[0], CG6_FBC_OFFSET,
701 par->tec = of_ioremap(&op->resource[0], CG6_TEC_OFFSET,
702 sizeof(struct cg6_tec), "cgsix tec");
703 par->thc = of_ioremap(&op->resource[0], CG6_THC_OFFSET,
704 sizeof(struct cg6_thc), "cgsix thc");
705 par->bt = of_ioremap(&op->resource[0], CG6_BROOKTREE_OFFSET,
706 sizeof(struct bt_regs), "cgsix dac");
707 par->fhc = of_ioremap(&op->resource[0], CG6_FHC_OFFSET,
708 sizeof(u32), "cgsix fhc");
710 info->flags = FBINFO_DEFAULT | FBINFO_HWACCEL_IMAGEBLIT |
711 FBINFO_HWACCEL_COPYAREA | FBINFO_HWACCEL_FILLRECT;
712 info->fbops = &cg6_ops;
714 info->screen_base = of_ioremap(&op->resource[0], CG6_RAM_OFFSET,
715 par->fbsize, "cgsix ram");
716 if (!par->fbc || !par->tec || !par->thc ||
717 !par->bt || !par->fhc || !info->screen_base)
720 info->var.accel_flags = FB_ACCELF_TEXT;
726 if (fb_alloc_cmap(&info->cmap, 256, 0))
729 fb_set_cmap(&info->cmap, info);
730 cg6_init_fix(info, linebytes);
732 err = register_framebuffer(info);
734 goto out_dealloc_cmap;
736 dev_set_drvdata(&op->dev, info);
738 printk("%s: CGsix [%s] at %lx:%lx\n",
739 dp->full_name, info->fix.id,
740 par->which_io, par->physbase);
745 fb_dealloc_cmap(&info->cmap);
748 cg6_unmap_regs(op, info, par);
754 static int __devexit cg6_remove(struct of_device *op)
756 struct fb_info *info = dev_get_drvdata(&op->dev);
757 struct cg6_par *par = info->par;
759 unregister_framebuffer(info);
760 fb_dealloc_cmap(&info->cmap);
762 cg6_unmap_regs(op, info, par);
764 framebuffer_release(info);
766 dev_set_drvdata(&op->dev, NULL);
771 static struct of_device_id cg6_match[] = {
780 MODULE_DEVICE_TABLE(of, cg6_match);
782 static struct of_platform_driver cg6_driver = {
784 .match_table = cg6_match,
786 .remove = __devexit_p(cg6_remove),
789 static int __init cg6_init(void)
791 if (fb_get_options("cg6fb", NULL))
794 return of_register_driver(&cg6_driver, &of_bus_type);
797 static void __exit cg6_exit(void)
799 of_unregister_driver(&cg6_driver);
802 module_init(cg6_init);
803 module_exit(cg6_exit);
805 MODULE_DESCRIPTION("framebuffer driver for CGsix chipsets");
806 MODULE_AUTHOR("David S. Miller <davem@davemloft.net>");
807 MODULE_VERSION("2.0");
808 MODULE_LICENSE("GPL");