aboutsummaryrefslogtreecommitdiff
path: root/src/include/device/pnp.h
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-27 12:01:15 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2019-09-29 03:39:20 +0000
commit0f639750a10cad0b6bd6d44626f71e457ea62349 (patch)
treed09d6397fecdf92a8f9452d5599eb6801906999c /src/include/device/pnp.h
parent9d5af5b0c2dd2c9455f8094f10e649b92094c4a3 (diff)
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.h')
-rw-r--r--src/include/device/pnp.h5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/include/device/pnp.h b/src/include/device/pnp.h
index ee92a32d08..69a0667445 100644
--- a/src/include/device/pnp.h
+++ b/src/include/device/pnp.h
@@ -4,9 +4,10 @@
#include <stdint.h>
#include <device/device.h>
#include <device/pnp_def.h>
+#include <device/pnp_type.h>
#include <arch/io.h>
-#ifndef __SIMPLE_DEVICE__
+#if !ENV_PNP_SIMPLE_DEVICE
/* Primitive PNP resource manipulation */
void pnp_write_config(struct device *dev, u8 reg, u8 value);
@@ -18,7 +19,7 @@ void pnp_set_iobase(struct device *dev, u8 index, u16 iobase);
void pnp_set_irq(struct device *dev, u8 index, u8 irq);
void pnp_set_drq(struct device *dev, u8 index, u8 drq);
-#endif /* __SIMPLE_DEVICE */
+#endif
/* PNP device operations */
void pnp_read_resources(struct device *dev);