diff options
author | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-09-27 12:01:15 +0300 |
---|---|---|
committer | Kyösti Mälkki <kyosti.malkki@gmail.com> | 2019-09-29 03:39:20 +0000 |
commit | 0f639750a10cad0b6bd6d44626f71e457ea62349 (patch) | |
tree | d09d6397fecdf92a8f9452d5599eb6801906999c /src/include/device/pnp_type.h | |
parent | 9d5af5b0c2dd2c9455f8094f10e649b92094c4a3 (diff) | |
download | coreboot-0f639750a10cad0b6bd6d44626f71e457ea62349.tar.xz |
device/pnp_ops: Add ENV_PNP_SIMPLE_DEVICE
Source files including this may have locally defined
__SIMPLE_DEVICE__ so this cannot be placed in <rules.h>.
Change-Id: I2336111b871203f1628c3c47027d4052c37899dc
Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com>
Reviewed-on: https://review.coreboot.org/c/coreboot/+/35653
Reviewed-by: Furquan Shaikh <furquan@google.com>
Reviewed-by: Aaron Durbin <adurbin@chromium.org>
Reviewed-by: Felix Held <felix-coreboot@felixheld.de>
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Diffstat (limited to 'src/include/device/pnp_type.h')
-rw-r--r-- | src/include/device/pnp_type.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/include/device/pnp_type.h b/src/include/device/pnp_type.h index db26f2f259..dc2d27c84d 100644 --- a/src/include/device/pnp_type.h +++ b/src/include/device/pnp_type.h @@ -20,4 +20,10 @@ typedef u32 pnp_devfn_t; #define PNP_DEV(PORT, FUNC) (((PORT) << 8) | (FUNC)) +#if defined(__SIMPLE_DEVICE__) +#define ENV_PNP_SIMPLE_DEVICE 1 +#else +#define ENV_PNP_SIMPLE_DEVICE 0 +#endif + #endif /* __DEVICE_PNP_TYPE_H__ */ |