summaryrefslogtreecommitdiff
path: root/src/include/device
diff options
context:
space:
mode:
authorKyösti Mälkki <kyosti.malkki@gmail.com>2013-06-20 20:25:21 +0300
committerKyösti Mälkki <kyosti.malkki@gmail.com>2013-08-24 07:38:03 +0200
commit842f0bab0416d223ecda97817fb5326c666b0499 (patch)
treef69ebbd31471283545051e87b27417cd6177f7ca /src/include/device
parent3f9a62e5ade9bf2461c93ac8c6b52c4bdca09742 (diff)
Add pnp_devfn_t and use with __SIMPLE_DEVICE__
Declare the functions that may be used in both romstage and ramstage with simple device model. This will later allow to define PNP access functions for ramstage using the inlined functions from romstage. Change-Id: I2a0bd8194acaf9c4c7252a29376eec363397e3a6 Signed-off-by: Kyösti Mälkki <kyosti.malkki@gmail.com> Reviewed-on: http://review.coreboot.org/3871 Tested-by: build bot (Jenkins) Reviewed-by: Aaron Durbin <adurbin@google.com>
Diffstat (limited to 'src/include/device')
-rw-r--r--src/include/device/device.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/include/device/device.h b/src/include/device/device.h
index 1056be775b..c0e6e0f6c6 100644
--- a/src/include/device/device.h
+++ b/src/include/device/device.h
@@ -12,6 +12,7 @@ struct device;
#ifndef __SIMPLE_DEVICE__
typedef struct device * device_t;
typedef u32 pci_devfn_t;
+typedef u32 pnp_devfn_t;
struct pci_operations;
struct pci_bus_operations;
struct smbus_bus_operations;