dcdbas.c 16 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658
  1. /*
  2. * dcdbas.c: Dell Systems Management Base Driver
  3. *
  4. * The Dell Systems Management Base Driver provides a sysfs interface for
  5. * systems management software to perform System Management Interrupts (SMIs)
  6. * and Host Control Actions (power cycle or power off after OS shutdown) on
  7. * Dell systems.
  8. *
  9. * See Documentation/dcdbas.txt for more information.
  10. *
  11. * Copyright (C) 1995-2006 Dell Inc.
  12. *
  13. * This program is free software; you can redistribute it and/or modify
  14. * it under the terms of the GNU General Public License v2.0 as published by
  15. * the Free Software Foundation.
  16. *
  17. * This program is distributed in the hope that it will be useful,
  18. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  19. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  20. * GNU General Public License for more details.
  21. */
  22. #include <linux/platform_device.h>
  23. #include <linux/dma-mapping.h>
  24. #include <linux/errno.h>
  25. #include <linux/gfp.h>
  26. #include <linux/init.h>
  27. #include <linux/kernel.h>
  28. #include <linux/mc146818rtc.h>
  29. #include <linux/module.h>
  30. #include <linux/reboot.h>
  31. #include <linux/sched.h>
  32. #include <linux/smp.h>
  33. #include <linux/spinlock.h>
  34. #include <linux/string.h>
  35. #include <linux/types.h>
  36. #include <linux/mutex.h>
  37. #include <asm/io.h>
  38. #include "dcdbas.h"
  39. #define DRIVER_NAME "dcdbas"
  40. #define DRIVER_VERSION "5.6.0-3.2"
  41. #define DRIVER_DESCRIPTION "Dell Systems Management Base Driver"
  42. static struct platform_device *dcdbas_pdev;
  43. static u8 *smi_data_buf;
  44. static dma_addr_t smi_data_buf_handle;
  45. static unsigned long smi_data_buf_size;
  46. static u32 smi_data_buf_phys_addr;
  47. static DEFINE_MUTEX(smi_data_lock);
  48. static unsigned int host_control_action;
  49. static unsigned int host_control_smi_type;
  50. static unsigned int host_control_on_shutdown;
  51. /**
  52. * smi_data_buf_free: free SMI data buffer
  53. */
  54. static void smi_data_buf_free(void)
  55. {
  56. if (!smi_data_buf)
  57. return;
  58. dev_dbg(&dcdbas_pdev->dev, "%s: phys: %x size: %lu\n",
  59. __func__, smi_data_buf_phys_addr, smi_data_buf_size);
  60. dma_free_coherent(&dcdbas_pdev->dev, smi_data_buf_size, smi_data_buf,
  61. smi_data_buf_handle);
  62. smi_data_buf = NULL;
  63. smi_data_buf_handle = 0;
  64. smi_data_buf_phys_addr = 0;
  65. smi_data_buf_size = 0;
  66. }
  67. /**
  68. * smi_data_buf_realloc: grow SMI data buffer if needed
  69. */
  70. static int smi_data_buf_realloc(unsigned long size)
  71. {
  72. void *buf;
  73. dma_addr_t handle;
  74. if (smi_data_buf_size >= size)
  75. return 0;
  76. if (size > MAX_SMI_DATA_BUF_SIZE)
  77. return -EINVAL;
  78. /* new buffer is needed */
  79. buf = dma_alloc_coherent(&dcdbas_pdev->dev, size, &handle, GFP_KERNEL);
  80. if (!buf) {
  81. dev_dbg(&dcdbas_pdev->dev,
  82. "%s: failed to allocate memory size %lu\n",
  83. __func__, size);
  84. return -ENOMEM;
  85. }
  86. /* memory zeroed by dma_alloc_coherent */
  87. if (smi_data_buf)
  88. memcpy(buf, smi_data_buf, smi_data_buf_size);
  89. /* free any existing buffer */
  90. smi_data_buf_free();
  91. /* set up new buffer for use */
  92. smi_data_buf = buf;
  93. smi_data_buf_handle = handle;
  94. smi_data_buf_phys_addr = (u32) virt_to_phys(buf);
  95. smi_data_buf_size = size;
  96. dev_dbg(&dcdbas_pdev->dev, "%s: phys: %x size: %lu\n",
  97. __func__, smi_data_buf_phys_addr, smi_data_buf_size);
  98. return 0;
  99. }
  100. static ssize_t smi_data_buf_phys_addr_show(struct device *dev,
  101. struct device_attribute *attr,
  102. char *buf)
  103. {
  104. return sprintf(buf, "%x\n", smi_data_buf_phys_addr);
  105. }
  106. static ssize_t smi_data_buf_size_show(struct device *dev,
  107. struct device_attribute *attr,
  108. char *buf)
  109. {
  110. return sprintf(buf, "%lu\n", smi_data_buf_size);
  111. }
  112. static ssize_t smi_data_buf_size_store(struct device *dev,
  113. struct device_attribute *attr,
  114. const char *buf, size_t count)
  115. {
  116. unsigned long buf_size;
  117. ssize_t ret;
  118. buf_size = simple_strtoul(buf, NULL, 10);
  119. /* make sure SMI data buffer is at least buf_size */
  120. mutex_lock(&smi_data_lock);
  121. ret = smi_data_buf_realloc(buf_size);
  122. mutex_unlock(&smi_data_lock);
  123. if (ret)
  124. return ret;
  125. return count;
  126. }
  127. static ssize_t smi_data_read(struct file *filp, struct kobject *kobj,
  128. struct bin_attribute *bin_attr,
  129. char *buf, loff_t pos, size_t count)
  130. {
  131. ssize_t ret;
  132. mutex_lock(&smi_data_lock);
  133. ret = memory_read_from_buffer(buf, count, &pos, smi_data_buf,
  134. smi_data_buf_size);
  135. mutex_unlock(&smi_data_lock);
  136. return ret;
  137. }
  138. static ssize_t smi_data_write(struct file *filp, struct kobject *kobj,
  139. struct bin_attribute *bin_attr,
  140. char *buf, loff_t pos, size_t count)
  141. {
  142. ssize_t ret;
  143. if ((pos + count) > MAX_SMI_DATA_BUF_SIZE)
  144. return -EINVAL;
  145. mutex_lock(&smi_data_lock);
  146. ret = smi_data_buf_realloc(pos + count);
  147. if (ret)
  148. goto out;
  149. memcpy(smi_data_buf + pos, buf, count);
  150. ret = count;
  151. out:
  152. mutex_unlock(&smi_data_lock);
  153. return ret;
  154. }
  155. static ssize_t host_control_action_show(struct device *dev,
  156. struct device_attribute *attr,
  157. char *buf)
  158. {
  159. return sprintf(buf, "%u\n", host_control_action);
  160. }
  161. static ssize_t host_control_action_store(struct device *dev,
  162. struct device_attribute *attr,
  163. const char *buf, size_t count)
  164. {
  165. ssize_t ret;
  166. /* make sure buffer is available for host control command */
  167. mutex_lock(&smi_data_lock);
  168. ret = smi_data_buf_realloc(sizeof(struct apm_cmd));
  169. mutex_unlock(&smi_data_lock);
  170. if (ret)
  171. return ret;
  172. host_control_action = simple_strtoul(buf, NULL, 10);
  173. return count;
  174. }
  175. static ssize_t host_control_smi_type_show(struct device *dev,
  176. struct device_attribute *attr,
  177. char *buf)
  178. {
  179. return sprintf(buf, "%u\n", host_control_smi_type);
  180. }
  181. static ssize_t host_control_smi_type_store(struct device *dev,
  182. struct device_attribute *attr,
  183. const char *buf, size_t count)
  184. {
  185. host_control_smi_type = simple_strtoul(buf, NULL, 10);
  186. return count;
  187. }
  188. static ssize_t host_control_on_shutdown_show(struct device *dev,
  189. struct device_attribute *attr,
  190. char *buf)
  191. {
  192. return sprintf(buf, "%u\n", host_control_on_shutdown);
  193. }
  194. static ssize_t host_control_on_shutdown_store(struct device *dev,
  195. struct device_attribute *attr,
  196. const char *buf, size_t count)
  197. {
  198. host_control_on_shutdown = simple_strtoul(buf, NULL, 10);
  199. return count;
  200. }
  201. /**
  202. * dcdbas_smi_request: generate SMI request
  203. *
  204. * Called with smi_data_lock.
  205. */
  206. int dcdbas_smi_request(struct smi_cmd *smi_cmd)
  207. {
  208. cpumask_var_t old_mask;
  209. int ret = 0;
  210. if (smi_cmd->magic != SMI_CMD_MAGIC) {
  211. dev_info(&dcdbas_pdev->dev, "%s: invalid magic value\n",
  212. __func__);
  213. return -EBADR;
  214. }
  215. /* SMI requires CPU 0 */
  216. if (!alloc_cpumask_var(&old_mask, GFP_KERNEL))
  217. return -ENOMEM;
  218. cpumask_copy(old_mask, &current->cpus_allowed);
  219. set_cpus_allowed_ptr(current, cpumask_of(0));
  220. if (smp_processor_id() != 0) {
  221. dev_dbg(&dcdbas_pdev->dev, "%s: failed to get CPU 0\n",
  222. __func__);
  223. ret = -EBUSY;
  224. goto out;
  225. }
  226. /* generate SMI */
  227. asm volatile (
  228. "outb %b0,%w1"
  229. : /* no output args */
  230. : "a" (smi_cmd->command_code),
  231. "d" (smi_cmd->command_address),
  232. "b" (smi_cmd->ebx),
  233. "c" (smi_cmd->ecx)
  234. : "memory"
  235. );
  236. out:
  237. set_cpus_allowed_ptr(current, old_mask);
  238. free_cpumask_var(old_mask);
  239. return ret;
  240. }
  241. /**
  242. * smi_request_store:
  243. *
  244. * The valid values are:
  245. * 0: zero SMI data buffer
  246. * 1: generate calling interface SMI
  247. * 2: generate raw SMI
  248. *
  249. * User application writes smi_cmd to smi_data before telling driver
  250. * to generate SMI.
  251. */
  252. static ssize_t smi_request_store(struct device *dev,
  253. struct device_attribute *attr,
  254. const char *buf, size_t count)
  255. {
  256. struct smi_cmd *smi_cmd;
  257. unsigned long val = simple_strtoul(buf, NULL, 10);
  258. ssize_t ret;
  259. mutex_lock(&smi_data_lock);
  260. if (smi_data_buf_size < sizeof(struct smi_cmd)) {
  261. ret = -ENODEV;
  262. goto out;
  263. }
  264. smi_cmd = (struct smi_cmd *)smi_data_buf;
  265. switch (val) {
  266. case 2:
  267. /* Raw SMI */
  268. ret = dcdbas_smi_request(smi_cmd);
  269. if (!ret)
  270. ret = count;
  271. break;
  272. case 1:
  273. /* Calling Interface SMI */
  274. smi_cmd->ebx = (u32) virt_to_phys(smi_cmd->command_buffer);
  275. ret = dcdbas_smi_request(smi_cmd);
  276. if (!ret)
  277. ret = count;
  278. break;
  279. case 0:
  280. memset(smi_data_buf, 0, smi_data_buf_size);
  281. ret = count;
  282. break;
  283. default:
  284. ret = -EINVAL;
  285. break;
  286. }
  287. out:
  288. mutex_unlock(&smi_data_lock);
  289. return ret;
  290. }
  291. EXPORT_SYMBOL(dcdbas_smi_request);
  292. /**
  293. * host_control_smi: generate host control SMI
  294. *
  295. * Caller must set up the host control command in smi_data_buf.
  296. */
  297. static int host_control_smi(void)
  298. {
  299. struct apm_cmd *apm_cmd;
  300. u8 *data;
  301. unsigned long flags;
  302. u32 num_ticks;
  303. s8 cmd_status;
  304. u8 index;
  305. apm_cmd = (struct apm_cmd *)smi_data_buf;
  306. apm_cmd->status = ESM_STATUS_CMD_UNSUCCESSFUL;
  307. switch (host_control_smi_type) {
  308. case HC_SMITYPE_TYPE1:
  309. spin_lock_irqsave(&rtc_lock, flags);
  310. /* write SMI data buffer physical address */
  311. data = (u8 *)&smi_data_buf_phys_addr;
  312. for (index = PE1300_CMOS_CMD_STRUCT_PTR;
  313. index < (PE1300_CMOS_CMD_STRUCT_PTR + 4);
  314. index++, data++) {
  315. outb(index,
  316. (CMOS_BASE_PORT + CMOS_PAGE2_INDEX_PORT_PIIX4));
  317. outb(*data,
  318. (CMOS_BASE_PORT + CMOS_PAGE2_DATA_PORT_PIIX4));
  319. }
  320. /* first set status to -1 as called by spec */
  321. cmd_status = ESM_STATUS_CMD_UNSUCCESSFUL;
  322. outb((u8) cmd_status, PCAT_APM_STATUS_PORT);
  323. /* generate SMM call */
  324. outb(ESM_APM_CMD, PCAT_APM_CONTROL_PORT);
  325. spin_unlock_irqrestore(&rtc_lock, flags);
  326. /* wait a few to see if it executed */
  327. num_ticks = TIMEOUT_USEC_SHORT_SEMA_BLOCKING;
  328. while ((cmd_status = inb(PCAT_APM_STATUS_PORT))
  329. == ESM_STATUS_CMD_UNSUCCESSFUL) {
  330. num_ticks--;
  331. if (num_ticks == EXPIRED_TIMER)
  332. return -ETIME;
  333. }
  334. break;
  335. case HC_SMITYPE_TYPE2:
  336. case HC_SMITYPE_TYPE3:
  337. spin_lock_irqsave(&rtc_lock, flags);
  338. /* write SMI data buffer physical address */
  339. data = (u8 *)&smi_data_buf_phys_addr;
  340. for (index = PE1400_CMOS_CMD_STRUCT_PTR;
  341. index < (PE1400_CMOS_CMD_STRUCT_PTR + 4);
  342. index++, data++) {
  343. outb(index, (CMOS_BASE_PORT + CMOS_PAGE1_INDEX_PORT));
  344. outb(*data, (CMOS_BASE_PORT + CMOS_PAGE1_DATA_PORT));
  345. }
  346. /* generate SMM call */
  347. if (host_control_smi_type == HC_SMITYPE_TYPE3)
  348. outb(ESM_APM_CMD, PCAT_APM_CONTROL_PORT);
  349. else
  350. outb(ESM_APM_CMD, PE1400_APM_CONTROL_PORT);
  351. /* restore RTC index pointer since it was written to above */
  352. CMOS_READ(RTC_REG_C);
  353. spin_unlock_irqrestore(&rtc_lock, flags);
  354. /* read control port back to serialize write */
  355. cmd_status = inb(PE1400_APM_CONTROL_PORT);
  356. /* wait a few to see if it executed */
  357. num_ticks = TIMEOUT_USEC_SHORT_SEMA_BLOCKING;
  358. while (apm_cmd->status == ESM_STATUS_CMD_UNSUCCESSFUL) {
  359. num_ticks--;
  360. if (num_ticks == EXPIRED_TIMER)
  361. return -ETIME;
  362. }
  363. break;
  364. default:
  365. dev_dbg(&dcdbas_pdev->dev, "%s: invalid SMI type %u\n",
  366. __func__, host_control_smi_type);
  367. return -ENOSYS;
  368. }
  369. return 0;
  370. }
  371. /**
  372. * dcdbas_host_control: initiate host control
  373. *
  374. * This function is called by the driver after the system has
  375. * finished shutting down if the user application specified a
  376. * host control action to perform on shutdown. It is safe to
  377. * use smi_data_buf at this point because the system has finished
  378. * shutting down and no userspace apps are running.
  379. */
  380. static void dcdbas_host_control(void)
  381. {
  382. struct apm_cmd *apm_cmd;
  383. u8 action;
  384. if (host_control_action == HC_ACTION_NONE)
  385. return;
  386. action = host_control_action;
  387. host_control_action = HC_ACTION_NONE;
  388. if (!smi_data_buf) {
  389. dev_dbg(&dcdbas_pdev->dev, "%s: no SMI buffer\n", __func__);
  390. return;
  391. }
  392. if (smi_data_buf_size < sizeof(struct apm_cmd)) {
  393. dev_dbg(&dcdbas_pdev->dev, "%s: SMI buffer too small\n",
  394. __func__);
  395. return;
  396. }
  397. apm_cmd = (struct apm_cmd *)smi_data_buf;
  398. /* power off takes precedence */
  399. if (action & HC_ACTION_HOST_CONTROL_POWEROFF) {
  400. apm_cmd->command = ESM_APM_POWER_CYCLE;
  401. apm_cmd->reserved = 0;
  402. *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 0;
  403. host_control_smi();
  404. } else if (action & HC_ACTION_HOST_CONTROL_POWERCYCLE) {
  405. apm_cmd->command = ESM_APM_POWER_CYCLE;
  406. apm_cmd->reserved = 0;
  407. *((s16 *)&apm_cmd->parameters.shortreq.parm[0]) = (s16) 20;
  408. host_control_smi();
  409. }
  410. }
  411. /**
  412. * dcdbas_reboot_notify: handle reboot notification for host control
  413. */
  414. static int dcdbas_reboot_notify(struct notifier_block *nb, unsigned long code,
  415. void *unused)
  416. {
  417. switch (code) {
  418. case SYS_DOWN:
  419. case SYS_HALT:
  420. case SYS_POWER_OFF:
  421. if (host_control_on_shutdown) {
  422. /* firmware is going to perform host control action */
  423. printk(KERN_WARNING "Please wait for shutdown "
  424. "action to complete...\n");
  425. dcdbas_host_control();
  426. }
  427. break;
  428. }
  429. return NOTIFY_DONE;
  430. }
  431. static struct notifier_block dcdbas_reboot_nb = {
  432. .notifier_call = dcdbas_reboot_notify,
  433. .next = NULL,
  434. .priority = INT_MIN
  435. };
  436. static DCDBAS_BIN_ATTR_RW(smi_data);
  437. static struct bin_attribute *dcdbas_bin_attrs[] = {
  438. &bin_attr_smi_data,
  439. NULL
  440. };
  441. static DCDBAS_DEV_ATTR_RW(smi_data_buf_size);
  442. static DCDBAS_DEV_ATTR_RO(smi_data_buf_phys_addr);
  443. static DCDBAS_DEV_ATTR_WO(smi_request);
  444. static DCDBAS_DEV_ATTR_RW(host_control_action);
  445. static DCDBAS_DEV_ATTR_RW(host_control_smi_type);
  446. static DCDBAS_DEV_ATTR_RW(host_control_on_shutdown);
  447. static struct attribute *dcdbas_dev_attrs[] = {
  448. &dev_attr_smi_data_buf_size.attr,
  449. &dev_attr_smi_data_buf_phys_addr.attr,
  450. &dev_attr_smi_request.attr,
  451. &dev_attr_host_control_action.attr,
  452. &dev_attr_host_control_smi_type.attr,
  453. &dev_attr_host_control_on_shutdown.attr,
  454. NULL
  455. };
  456. static struct attribute_group dcdbas_attr_group = {
  457. .attrs = dcdbas_dev_attrs,
  458. };
  459. static int __devinit dcdbas_probe(struct platform_device *dev)
  460. {
  461. int i, error;
  462. host_control_action = HC_ACTION_NONE;
  463. host_control_smi_type = HC_SMITYPE_NONE;
  464. /*
  465. * BIOS SMI calls require buffer addresses be in 32-bit address space.
  466. * This is done by setting the DMA mask below.
  467. */
  468. dcdbas_pdev->dev.coherent_dma_mask = DMA_BIT_MASK(32);
  469. dcdbas_pdev->dev.dma_mask = &dcdbas_pdev->dev.coherent_dma_mask;
  470. error = sysfs_create_group(&dev->dev.kobj, &dcdbas_attr_group);
  471. if (error)
  472. return error;
  473. for (i = 0; dcdbas_bin_attrs[i]; i++) {
  474. error = sysfs_create_bin_file(&dev->dev.kobj,
  475. dcdbas_bin_attrs[i]);
  476. if (error) {
  477. while (--i >= 0)
  478. sysfs_remove_bin_file(&dev->dev.kobj,
  479. dcdbas_bin_attrs[i]);
  480. sysfs_remove_group(&dev->dev.kobj, &dcdbas_attr_group);
  481. return error;
  482. }
  483. }
  484. register_reboot_notifier(&dcdbas_reboot_nb);
  485. dev_info(&dev->dev, "%s (version %s)\n",
  486. DRIVER_DESCRIPTION, DRIVER_VERSION);
  487. return 0;
  488. }
  489. static int __devexit dcdbas_remove(struct platform_device *dev)
  490. {
  491. int i;
  492. unregister_reboot_notifier(&dcdbas_reboot_nb);
  493. for (i = 0; dcdbas_bin_attrs[i]; i++)
  494. sysfs_remove_bin_file(&dev->dev.kobj, dcdbas_bin_attrs[i]);
  495. sysfs_remove_group(&dev->dev.kobj, &dcdbas_attr_group);
  496. return 0;
  497. }
  498. static struct platform_driver dcdbas_driver = {
  499. .driver = {
  500. .name = DRIVER_NAME,
  501. .owner = THIS_MODULE,
  502. },
  503. .probe = dcdbas_probe,
  504. .remove = __devexit_p(dcdbas_remove),
  505. };
  506. /**
  507. * dcdbas_init: initialize driver
  508. */
  509. static int __init dcdbas_init(void)
  510. {
  511. int error;
  512. error = platform_driver_register(&dcdbas_driver);
  513. if (error)
  514. return error;
  515. dcdbas_pdev = platform_device_alloc(DRIVER_NAME, -1);
  516. if (!dcdbas_pdev) {
  517. error = -ENOMEM;
  518. goto err_unregister_driver;
  519. }
  520. error = platform_device_add(dcdbas_pdev);
  521. if (error)
  522. goto err_free_device;
  523. return 0;
  524. err_free_device:
  525. platform_device_put(dcdbas_pdev);
  526. err_unregister_driver:
  527. platform_driver_unregister(&dcdbas_driver);
  528. return error;
  529. }
  530. /**
  531. * dcdbas_exit: perform driver cleanup
  532. */
  533. static void __exit dcdbas_exit(void)
  534. {
  535. /*
  536. * make sure functions that use dcdbas_pdev are called
  537. * before platform_device_unregister
  538. */
  539. unregister_reboot_notifier(&dcdbas_reboot_nb);
  540. smi_data_buf_free();
  541. platform_device_unregister(dcdbas_pdev);
  542. platform_driver_unregister(&dcdbas_driver);
  543. /*
  544. * We have to free the buffer here instead of dcdbas_remove
  545. * because only in module exit function we can be sure that
  546. * all sysfs attributes belonging to this module have been
  547. * released.
  548. */
  549. smi_data_buf_free();
  550. }
  551. module_init(dcdbas_init);
  552. module_exit(dcdbas_exit);
  553. MODULE_DESCRIPTION(DRIVER_DESCRIPTION " (version " DRIVER_VERSION ")");
  554. MODULE_VERSION(DRIVER_VERSION);
  555. MODULE_AUTHOR("Dell Inc.");
  556. MODULE_LICENSE("GPL");
  557. /* Any System or BIOS claiming to be by Dell */
  558. MODULE_ALIAS("dmi:*:[bs]vnD[Ee][Ll][Ll]*:*");