| * Support for VIA PadLock hardware crypto engine. |
| * Copyright (c) 2004 Michal Ludvig <michal@logix.cz> |
| * This program is free software; you can redistribute it and/or modify |
| * it under the terms of the GNU General Public License as published by |
| * the Free Software Foundation; either version 2 of the License, or |
| * (at your option) any later version. |
| #include <linux/module.h> |
| #include <linux/crypto.h> |
| #include <asm/byteorder.h> |
| printk(KERN_ERR PFX "VIA PadLock not detected.\n"); |
| if (!cpu_has_xcrypt_enabled) { |
| printk(KERN_ERR PFX "VIA PadLock detected, but not enabled. Hmm, strange...\n"); |
| #ifdef CONFIG_CRYPTO_DEV_PADLOCK_AES |
| if ((ret = padlock_init_aes())) { |
| printk(KERN_ERR PFX "VIA PadLock AES initialization failed.\n"); |
| printk(KERN_ERR PFX "Hmm, VIA PadLock was compiled without any algorithm.\n"); |
| #ifdef CONFIG_CRYPTO_DEV_PADLOCK_AES |
| module_init(padlock_init); |
| module_exit(padlock_fini); |
| MODULE_DESCRIPTION("VIA PadLock crypto engine support."); |
| MODULE_LICENSE("Dual BSD/GPL"); |
| MODULE_AUTHOR("Michal Ludvig"); |