Thomas Gleixner | 2874c5f | 2019-05-27 08:55:01 +0200 | [diff] [blame] | 1 | /* SPDX-License-Identifier: GPL-2.0-or-later */ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 2 | /* |
| 3 | * Driver for VIA PadLock |
| 4 | * |
| 5 | * Copyright (c) 2004 Michal Ludvig <michal@logix.cz> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 6 | */ |
| 7 | |
| 8 | #ifndef _CRYPTO_PADLOCK_H |
| 9 | #define _CRYPTO_PADLOCK_H |
| 10 | |
Herbert Xu | 6789b2d | 2005-07-06 13:52:27 -0700 | [diff] [blame] | 11 | #define PADLOCK_ALIGNMENT 16 |
| 12 | |
Herbert Xu | 2149308 | 2011-01-07 14:52:00 +1100 | [diff] [blame] | 13 | #define PFX KBUILD_MODNAME ": " |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 14 | |
Michal Ludvig | ccc17c3 | 2006-07-15 10:23:49 +1000 | [diff] [blame] | 15 | #define PADLOCK_CRA_PRIORITY 300 |
Herbert Xu | 28ce728 | 2006-08-21 21:38:42 +1000 | [diff] [blame] | 16 | #define PADLOCK_COMPOSITE_PRIORITY 400 |
Michal Ludvig | ccc17c3 | 2006-07-15 10:23:49 +1000 | [diff] [blame] | 17 | |
Herbert Xu | 2149308 | 2011-01-07 14:52:00 +1100 | [diff] [blame] | 18 | #ifdef CONFIG_64BIT |
| 19 | #define STACK_ALIGN 16 |
| 20 | #else |
| 21 | #define STACK_ALIGN 4 |
| 22 | #endif |
| 23 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | #endif /* _CRYPTO_PADLOCK_H */ |