2 * Driver for Dell laptop extras
6 * Based on documentation in the libsmbios package, Copyright (C) 2005 Dell
9 * This program is free software; you can redistribute it and/or modify
10 * it under the terms of the GNU General Public License version 2 as
11 * published by the Free Software Foundation.
14 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
16 #include <linux/module.h>
17 #include <linux/kernel.h>
18 #include <linux/init.h>
19 #include <linux/platform_device.h>
20 #include <linux/backlight.h>
21 #include <linux/err.h>
22 #include <linux/dmi.h>
24 #include <linux/rfkill.h>
25 #include <linux/power_supply.h>
26 #include <linux/acpi.h>
28 #include <linux/i8042.h>
29 #include <linux/slab.h>
30 #include <linux/debugfs.h>
31 #include <linux/seq_file.h>
32 #include "../../firmware/dcdbas.h"
34 #define BRIGHTNESS_TOKEN 0x7d
36 /* This structure will be modified by the firmware when we enter
37 * system management mode, hence the volatiles */
39 struct calling_interface_buffer {
42 volatile u32 input[4];
43 volatile u32 output[4];
46 struct calling_interface_token {
55 struct calling_interface_structure {
56 struct dmi_header header;
60 struct calling_interface_token tokens[];
67 static struct quirk_entry *quirks;
69 static struct quirk_entry quirk_dell_vostro_v130 = {
73 static int __init dmi_matched(const struct dmi_system_id *dmi)
75 quirks = dmi->driver_data;
79 static int da_command_address;
80 static int da_command_code;
81 static int da_num_tokens;
82 static struct calling_interface_token *da_tokens;
84 static struct platform_driver platform_driver = {
86 .name = "dell-laptop",
90 static struct platform_device *platform_device;
91 static struct backlight_device *dell_backlight_device;
92 static struct rfkill *wifi_rfkill;
93 static struct rfkill *bluetooth_rfkill;
94 static struct rfkill *wwan_rfkill;
95 static bool force_rfkill;
97 module_param(force_rfkill, bool, 0444);
98 MODULE_PARM_DESC(force_rfkill, "enable rfkill on non whitelisted models");
100 static const struct dmi_system_id dell_device_table[] __initconst = {
102 .ident = "Dell laptop",
104 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
105 DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
110 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
111 DMI_MATCH(DMI_CHASSIS_TYPE, "9"), /*Laptop*/
115 .ident = "Dell Computer Corporation",
117 DMI_MATCH(DMI_SYS_VENDOR, "Dell Computer Corporation"),
118 DMI_MATCH(DMI_CHASSIS_TYPE, "8"),
123 MODULE_DEVICE_TABLE(dmi, dell_device_table);
125 static const struct dmi_system_id dell_quirks[] __initconst = {
127 .callback = dmi_matched,
128 .ident = "Dell Vostro V130",
130 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
131 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro V130"),
133 .driver_data = &quirk_dell_vostro_v130,
136 .callback = dmi_matched,
137 .ident = "Dell Vostro V131",
139 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
140 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro V131"),
142 .driver_data = &quirk_dell_vostro_v130,
145 .callback = dmi_matched,
146 .ident = "Dell Vostro 3350",
148 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
149 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3350"),
151 .driver_data = &quirk_dell_vostro_v130,
154 .callback = dmi_matched,
155 .ident = "Dell Vostro 3555",
157 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
158 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3555"),
160 .driver_data = &quirk_dell_vostro_v130,
163 .callback = dmi_matched,
164 .ident = "Dell Inspiron N311z",
166 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
167 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron N311z"),
169 .driver_data = &quirk_dell_vostro_v130,
172 .callback = dmi_matched,
173 .ident = "Dell Inspiron M5110",
175 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
176 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron M5110"),
178 .driver_data = &quirk_dell_vostro_v130,
181 .callback = dmi_matched,
182 .ident = "Dell Vostro 3360",
184 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
185 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3360"),
187 .driver_data = &quirk_dell_vostro_v130,
190 .callback = dmi_matched,
191 .ident = "Dell Vostro 3460",
193 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
194 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3460"),
196 .driver_data = &quirk_dell_vostro_v130,
199 .callback = dmi_matched,
200 .ident = "Dell Vostro 3560",
202 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
203 DMI_MATCH(DMI_PRODUCT_NAME, "Vostro 3560"),
205 .driver_data = &quirk_dell_vostro_v130,
208 .callback = dmi_matched,
209 .ident = "Dell Vostro 3450",
211 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
212 DMI_MATCH(DMI_PRODUCT_NAME, "Dell System Vostro 3450"),
214 .driver_data = &quirk_dell_vostro_v130,
217 .callback = dmi_matched,
218 .ident = "Dell Inspiron 5420",
220 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
221 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5420"),
223 .driver_data = &quirk_dell_vostro_v130,
226 .callback = dmi_matched,
227 .ident = "Dell Inspiron 5520",
229 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
230 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5520"),
232 .driver_data = &quirk_dell_vostro_v130,
235 .callback = dmi_matched,
236 .ident = "Dell Inspiron 5720",
238 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
239 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 5720"),
241 .driver_data = &quirk_dell_vostro_v130,
244 .callback = dmi_matched,
245 .ident = "Dell Inspiron 7420",
247 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
248 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7420"),
250 .driver_data = &quirk_dell_vostro_v130,
253 .callback = dmi_matched,
254 .ident = "Dell Inspiron 7520",
256 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
257 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7520"),
259 .driver_data = &quirk_dell_vostro_v130,
262 .callback = dmi_matched,
263 .ident = "Dell Inspiron 7720",
265 DMI_MATCH(DMI_SYS_VENDOR, "Dell Inc."),
266 DMI_MATCH(DMI_PRODUCT_NAME, "Inspiron 7720"),
268 .driver_data = &quirk_dell_vostro_v130,
273 static struct calling_interface_buffer *buffer;
274 static struct page *bufferpage;
275 static DEFINE_MUTEX(buffer_mutex);
277 static int hwswitch_state;
279 static void get_buffer(void)
281 mutex_lock(&buffer_mutex);
282 memset(buffer, 0, sizeof(struct calling_interface_buffer));
285 static void release_buffer(void)
287 mutex_unlock(&buffer_mutex);
290 static void __init parse_da_table(const struct dmi_header *dm)
292 /* Final token is a terminator, so we don't want to copy it */
293 int tokens = (dm->length-11)/sizeof(struct calling_interface_token)-1;
294 struct calling_interface_token *new_da_tokens;
295 struct calling_interface_structure *table =
296 container_of(dm, struct calling_interface_structure, header);
298 /* 4 bytes of table header, plus 7 bytes of Dell header, plus at least
304 da_command_address = table->cmdIOAddress;
305 da_command_code = table->cmdIOCode;
307 new_da_tokens = krealloc(da_tokens, (da_num_tokens + tokens) *
308 sizeof(struct calling_interface_token),
313 da_tokens = new_da_tokens;
315 memcpy(da_tokens+da_num_tokens, table->tokens,
316 sizeof(struct calling_interface_token) * tokens);
318 da_num_tokens += tokens;
321 static void __init find_tokens(const struct dmi_header *dm, void *dummy)
324 case 0xd4: /* Indexed IO */
325 case 0xd5: /* Protected Area Type 1 */
326 case 0xd6: /* Protected Area Type 2 */
328 case 0xda: /* Calling interface */
334 static int find_token_location(int tokenid)
337 for (i = 0; i < da_num_tokens; i++) {
338 if (da_tokens[i].tokenID == tokenid)
339 return da_tokens[i].location;
345 static struct calling_interface_buffer *
346 dell_send_request(struct calling_interface_buffer *buffer, int class,
349 struct smi_cmd command;
351 command.magic = SMI_CMD_MAGIC;
352 command.command_address = da_command_address;
353 command.command_code = da_command_code;
354 command.ebx = virt_to_phys(buffer);
355 command.ecx = 0x42534931;
357 buffer->class = class;
358 buffer->select = select;
360 dcdbas_smi_request(&command);
365 /* Derived from information in DellWirelessCtl.cpp:
366 Class 17, select 11 is radio control. It returns an array of 32-bit values.
368 Input byte 0 = 0: Wireless information
370 result[0]: return code
372 Bit 0: Hardware switch supported
373 Bit 1: Wifi locator supported
374 Bit 2: Wifi is supported
375 Bit 3: Bluetooth is supported
376 Bit 4: WWAN is supported
377 Bit 5: Wireless keyboard supported
379 Bit 8: Wifi is installed
380 Bit 9: Bluetooth is installed
381 Bit 10: WWAN is installed
383 Bit 16: Hardware switch is on
384 Bit 17: Wifi is blocked
385 Bit 18: Bluetooth is blocked
386 Bit 19: WWAN is blocked
388 result[2]: NVRAM size in bytes
389 result[3]: NVRAM format version number
391 Input byte 0 = 2: Wireless switch configuration
392 result[0]: return code
394 Bit 0: Wifi controlled by switch
395 Bit 1: Bluetooth controlled by switch
396 Bit 2: WWAN controlled by switch
398 Bit 7: Wireless switch config locked
399 Bit 8: Wifi locator enabled
401 Bit 15: Wifi locator setting locked
405 static int dell_rfkill_set(void *data, bool blocked)
407 int disable = blocked ? 1 : 0;
408 unsigned long radio = (unsigned long)data;
409 int hwswitch_bit = (unsigned long)data - 1;
412 dell_send_request(buffer, 17, 11);
414 /* If the hardware switch controls this radio, and the hardware
415 switch is disabled, always disable the radio */
416 if ((hwswitch_state & BIT(hwswitch_bit)) &&
417 !(buffer->output[1] & BIT(16)))
420 buffer->input[0] = (1 | (radio<<8) | (disable << 16));
421 dell_send_request(buffer, 17, 11);
427 /* Must be called with the buffer held */
428 static void dell_rfkill_update_sw_state(struct rfkill *rfkill, int radio,
431 if (status & BIT(0)) {
432 /* Has hw-switch, sync sw_state to BIOS */
433 int block = rfkill_blocked(rfkill);
434 buffer->input[0] = (1 | (radio << 8) | (block << 16));
435 dell_send_request(buffer, 17, 11);
437 /* No hw-switch, sync BIOS state to sw_state */
438 rfkill_set_sw_state(rfkill, !!(status & BIT(radio + 16)));
442 static void dell_rfkill_update_hw_state(struct rfkill *rfkill, int radio,
445 if (hwswitch_state & (BIT(radio - 1)))
446 rfkill_set_hw_state(rfkill, !(status & BIT(16)));
449 static void dell_rfkill_query(struct rfkill *rfkill, void *data)
454 dell_send_request(buffer, 17, 11);
455 status = buffer->output[1];
457 dell_rfkill_update_hw_state(rfkill, (unsigned long)data, status);
462 static const struct rfkill_ops dell_rfkill_ops = {
463 .set_block = dell_rfkill_set,
464 .query = dell_rfkill_query,
467 static struct dentry *dell_laptop_dir;
469 static int dell_debugfs_show(struct seq_file *s, void *data)
474 dell_send_request(buffer, 17, 11);
475 status = buffer->output[1];
478 seq_printf(s, "status:\t0x%X\n", status);
479 seq_printf(s, "Bit 0 : Hardware switch supported: %lu\n",
481 seq_printf(s, "Bit 1 : Wifi locator supported: %lu\n",
482 (status & BIT(1)) >> 1);
483 seq_printf(s, "Bit 2 : Wifi is supported: %lu\n",
484 (status & BIT(2)) >> 2);
485 seq_printf(s, "Bit 3 : Bluetooth is supported: %lu\n",
486 (status & BIT(3)) >> 3);
487 seq_printf(s, "Bit 4 : WWAN is supported: %lu\n",
488 (status & BIT(4)) >> 4);
489 seq_printf(s, "Bit 5 : Wireless keyboard supported: %lu\n",
490 (status & BIT(5)) >> 5);
491 seq_printf(s, "Bit 8 : Wifi is installed: %lu\n",
492 (status & BIT(8)) >> 8);
493 seq_printf(s, "Bit 9 : Bluetooth is installed: %lu\n",
494 (status & BIT(9)) >> 9);
495 seq_printf(s, "Bit 10: WWAN is installed: %lu\n",
496 (status & BIT(10)) >> 10);
497 seq_printf(s, "Bit 16: Hardware switch is on: %lu\n",
498 (status & BIT(16)) >> 16);
499 seq_printf(s, "Bit 17: Wifi is blocked: %lu\n",
500 (status & BIT(17)) >> 17);
501 seq_printf(s, "Bit 18: Bluetooth is blocked: %lu\n",
502 (status & BIT(18)) >> 18);
503 seq_printf(s, "Bit 19: WWAN is blocked: %lu\n",
504 (status & BIT(19)) >> 19);
506 seq_printf(s, "\nhwswitch_state:\t0x%X\n", hwswitch_state);
507 seq_printf(s, "Bit 0 : Wifi controlled by switch: %lu\n",
508 hwswitch_state & BIT(0));
509 seq_printf(s, "Bit 1 : Bluetooth controlled by switch: %lu\n",
510 (hwswitch_state & BIT(1)) >> 1);
511 seq_printf(s, "Bit 2 : WWAN controlled by switch: %lu\n",
512 (hwswitch_state & BIT(2)) >> 2);
513 seq_printf(s, "Bit 7 : Wireless switch config locked: %lu\n",
514 (hwswitch_state & BIT(7)) >> 7);
515 seq_printf(s, "Bit 8 : Wifi locator enabled: %lu\n",
516 (hwswitch_state & BIT(8)) >> 8);
517 seq_printf(s, "Bit 15: Wifi locator setting locked: %lu\n",
518 (hwswitch_state & BIT(15)) >> 15);
523 static int dell_debugfs_open(struct inode *inode, struct file *file)
525 return single_open(file, dell_debugfs_show, inode->i_private);
528 static const struct file_operations dell_debugfs_fops = {
529 .owner = THIS_MODULE,
530 .open = dell_debugfs_open,
533 .release = single_release,
536 static void dell_update_rfkill(struct work_struct *ignored)
541 dell_send_request(buffer, 17, 11);
542 status = buffer->output[1];
545 dell_rfkill_update_hw_state(wifi_rfkill, 1, status);
546 dell_rfkill_update_sw_state(wifi_rfkill, 1, status);
548 if (bluetooth_rfkill) {
549 dell_rfkill_update_hw_state(bluetooth_rfkill, 2, status);
550 dell_rfkill_update_sw_state(bluetooth_rfkill, 2, status);
553 dell_rfkill_update_hw_state(wwan_rfkill, 3, status);
554 dell_rfkill_update_sw_state(wwan_rfkill, 3, status);
559 static DECLARE_DELAYED_WORK(dell_rfkill_work, dell_update_rfkill);
561 static bool dell_laptop_i8042_filter(unsigned char data, unsigned char str,
564 static bool extended;
566 if (str & I8042_STR_AUXDATA)
569 if (unlikely(data == 0xe0)) {
572 } else if (unlikely(extended)) {
575 schedule_delayed_work(&dell_rfkill_work,
576 round_jiffies_relative(HZ / 4));
585 static int __init dell_setup_rfkill(void)
587 int status, ret, whitelisted;
591 * rfkill support causes trouble on various models, mostly Inspirons.
592 * So we whitelist certain series, and don't support rfkill on others.
595 product = dmi_get_system_info(DMI_PRODUCT_NAME);
596 if (product && (strncmp(product, "Latitude", 8) == 0 ||
597 strncmp(product, "Precision", 9) == 0))
599 if (!force_rfkill && !whitelisted)
603 dell_send_request(buffer, 17, 11);
604 status = buffer->output[1];
605 buffer->input[0] = 0x2;
606 dell_send_request(buffer, 17, 11);
607 hwswitch_state = buffer->output[1];
610 if (!(status & BIT(0))) {
612 /* No hwsitch, clear all hw-controlled bits */
613 hwswitch_state &= ~7;
615 /* rfkill is only tested on laptops with a hwswitch */
620 if ((status & (1<<2|1<<8)) == (1<<2|1<<8)) {
621 wifi_rfkill = rfkill_alloc("dell-wifi", &platform_device->dev,
623 &dell_rfkill_ops, (void *) 1);
628 ret = rfkill_register(wifi_rfkill);
633 if ((status & (1<<3|1<<9)) == (1<<3|1<<9)) {
634 bluetooth_rfkill = rfkill_alloc("dell-bluetooth",
635 &platform_device->dev,
636 RFKILL_TYPE_BLUETOOTH,
637 &dell_rfkill_ops, (void *) 2);
638 if (!bluetooth_rfkill) {
642 ret = rfkill_register(bluetooth_rfkill);
647 if ((status & (1<<4|1<<10)) == (1<<4|1<<10)) {
648 wwan_rfkill = rfkill_alloc("dell-wwan",
649 &platform_device->dev,
651 &dell_rfkill_ops, (void *) 3);
656 ret = rfkill_register(wwan_rfkill);
661 ret = i8042_install_filter(dell_laptop_i8042_filter);
663 pr_warn("Unable to install key filter\n");
670 rfkill_unregister(wwan_rfkill);
672 rfkill_destroy(wwan_rfkill);
673 if (bluetooth_rfkill)
674 rfkill_unregister(bluetooth_rfkill);
676 rfkill_destroy(bluetooth_rfkill);
678 rfkill_unregister(wifi_rfkill);
680 rfkill_destroy(wifi_rfkill);
685 static void dell_cleanup_rfkill(void)
688 rfkill_unregister(wifi_rfkill);
689 rfkill_destroy(wifi_rfkill);
691 if (bluetooth_rfkill) {
692 rfkill_unregister(bluetooth_rfkill);
693 rfkill_destroy(bluetooth_rfkill);
696 rfkill_unregister(wwan_rfkill);
697 rfkill_destroy(wwan_rfkill);
701 static int dell_send_intensity(struct backlight_device *bd)
706 buffer->input[0] = find_token_location(BRIGHTNESS_TOKEN);
707 buffer->input[1] = bd->props.brightness;
709 if (buffer->input[0] == -1) {
714 if (power_supply_is_system_supplied() > 0)
715 dell_send_request(buffer, 1, 2);
717 dell_send_request(buffer, 1, 1);
724 static int dell_get_intensity(struct backlight_device *bd)
729 buffer->input[0] = find_token_location(BRIGHTNESS_TOKEN);
731 if (buffer->input[0] == -1) {
736 if (power_supply_is_system_supplied() > 0)
737 dell_send_request(buffer, 0, 2);
739 dell_send_request(buffer, 0, 1);
741 ret = buffer->output[1];
748 static const struct backlight_ops dell_ops = {
749 .get_brightness = dell_get_intensity,
750 .update_status = dell_send_intensity,
753 static void touchpad_led_on(void)
757 i8042_command(&data, command | 1 << 12);
760 static void touchpad_led_off(void)
764 i8042_command(&data, command | 1 << 12);
767 static void touchpad_led_set(struct led_classdev *led_cdev,
768 enum led_brightness value)
776 static struct led_classdev touchpad_led = {
777 .name = "dell-laptop::touchpad",
778 .brightness_set = touchpad_led_set,
779 .flags = LED_CORE_SUSPENDRESUME,
782 static int __init touchpad_led_init(struct device *dev)
784 return led_classdev_register(dev, &touchpad_led);
787 static void touchpad_led_exit(void)
789 led_classdev_unregister(&touchpad_led);
792 static int __init dell_init(void)
794 int max_intensity = 0;
797 if (!dmi_check_system(dell_device_table))
801 /* find if this machine support other functions */
802 dmi_check_system(dell_quirks);
804 dmi_walk(find_tokens, NULL);
807 pr_info("Unable to find dmi tokens\n");
811 ret = platform_driver_register(&platform_driver);
813 goto fail_platform_driver;
814 platform_device = platform_device_alloc("dell-laptop", -1);
815 if (!platform_device) {
817 goto fail_platform_device1;
819 ret = platform_device_add(platform_device);
821 goto fail_platform_device2;
824 * Allocate buffer below 4GB for SMI data--only 32-bit physical addr
825 * is passed to SMI handler.
827 bufferpage = alloc_page(GFP_KERNEL | GFP_DMA32);
832 buffer = page_address(bufferpage);
834 ret = dell_setup_rfkill();
837 pr_warn("Unable to setup rfkill\n");
841 if (quirks && quirks->touchpad_led)
842 touchpad_led_init(&platform_device->dev);
844 dell_laptop_dir = debugfs_create_dir("dell_laptop", NULL);
845 if (dell_laptop_dir != NULL)
846 debugfs_create_file("rfkill", 0444, dell_laptop_dir, NULL,
850 /* In the event of an ACPI backlight being available, don't
851 * register the platform controller.
853 if (acpi_video_backlight_support())
858 buffer->input[0] = find_token_location(BRIGHTNESS_TOKEN);
859 if (buffer->input[0] != -1) {
860 dell_send_request(buffer, 0, 2);
861 max_intensity = buffer->output[3];
866 struct backlight_properties props;
867 memset(&props, 0, sizeof(struct backlight_properties));
868 props.type = BACKLIGHT_PLATFORM;
869 props.max_brightness = max_intensity;
870 dell_backlight_device = backlight_device_register("dell_backlight",
871 &platform_device->dev,
876 if (IS_ERR(dell_backlight_device)) {
877 ret = PTR_ERR(dell_backlight_device);
878 dell_backlight_device = NULL;
882 dell_backlight_device->props.brightness =
883 dell_get_intensity(dell_backlight_device);
884 backlight_update_status(dell_backlight_device);
890 i8042_remove_filter(dell_laptop_i8042_filter);
891 cancel_delayed_work_sync(&dell_rfkill_work);
892 dell_cleanup_rfkill();
894 free_page((unsigned long)bufferpage);
896 platform_device_del(platform_device);
897 fail_platform_device2:
898 platform_device_put(platform_device);
899 fail_platform_device1:
900 platform_driver_unregister(&platform_driver);
901 fail_platform_driver:
906 static void __exit dell_exit(void)
908 debugfs_remove_recursive(dell_laptop_dir);
909 if (quirks && quirks->touchpad_led)
911 i8042_remove_filter(dell_laptop_i8042_filter);
912 cancel_delayed_work_sync(&dell_rfkill_work);
913 backlight_device_unregister(dell_backlight_device);
914 dell_cleanup_rfkill();
915 if (platform_device) {
916 platform_device_unregister(platform_device);
917 platform_driver_unregister(&platform_driver);
920 free_page((unsigned long)buffer);
923 module_init(dell_init);
924 module_exit(dell_exit);
927 MODULE_DESCRIPTION("Dell laptop driver");
928 MODULE_LICENSE("GPL");