aboutsummaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorAngel Pons <th3fanbus@gmail.com>2021-06-06 19:20:48 +0200
committerPatrick Georgi <pgeorgi@google.com>2021-06-10 05:38:13 +0000
commitbb8d00d8f74ebb0d2358386fed90ee68cb98d9b3 (patch)
tree3c74f4280afff658a675205a66d96e85dbb8859a /src/include/device
parent29bc62475bc4db8c906dbce71ef8766cffc30ead (diff)
device/pnp: Always provide `pnp_unset_and_set_config`
The `pnp_unset_and_set_config` function was only available when building with `ENV_PNP_SIMPLE_DEVICE` set. Add the complementary definition using device pointers, for the sake of completeness. Change-Id: I2a21e635f41f3f786057500fa96a2b3116e30d76 Signed-off-by: Angel Pons <th3fanbus@gmail.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/55255 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Máté Kukri <kukri.mate@gmail.com> Reviewed-by: Nico Huber <nico.h@gmx.de> Reviewed-by: Michael Niewöhner <foss@mniewoehner.de>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/pnp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/pnp.h b/src/include/device/pnp.h
index 955eac29ac..770a640963 100644
--- a/src/include/device/pnp.h
+++ b/src/include/device/pnp.h
@@ -13,6 +13,7 @@
/* Primitive PNP resource manipulation */
void pnp_write_config(struct device *dev, u8 reg, u8 value);
u8 pnp_read_config(struct device *dev, u8 reg);
+void pnp_unset_and_set_config(struct device *dev, u8 reg, u8 unset, u8 set);
void pnp_set_logical_device(struct device *dev);
void pnp_set_enable(struct device *dev, int enable);
int pnp_read_enable(struct device *dev);