diff options
author | Doug Gilbert <dgilbert@us.ibm.com> | 2014-05-16 15:16:15 -0500 |
---|---|---|
committer | A. Patrick Williams III <iawillia@us.ibm.com> | 2014-06-30 20:08:27 -0500 |
commit | 11d47db77ef4d118c75e9e23ad8c4ca9663d0fff (patch) | |
tree | dc0e09e93de108dc2cf44ef69d2688f7ab40944c /src/include/usr/devicefw/userif.H | |
parent | 61a956f980a4be2f19d33067236018e7efd074e7 (diff) | |
download | talos-hostboot-11d47db77ef4d118c75e9e23ad8c4ca9663d0fff.tar.gz talos-hostboot-11d47db77ef4d118c75e9e23ad8c4ca9663d0fff.zip |
Merge GPIO commits from Stradale code base
Change-Id: Ibadeb72f563d86aa933734c7db20a50b19485ac7
RTC: 97490
Origin: Google Shared Technology
Reviewed-on: http://gfw160.aus.stglabs.ibm.com:8080/gerrit/11501
Tested-by: Jenkins Server
Reviewed-by: A. Patrick Williams III <iawillia@us.ibm.com>
Diffstat (limited to 'src/include/usr/devicefw/userif.H')
-rw-r--r-- | src/include/usr/devicefw/userif.H | 16 |
1 files changed, 14 insertions, 2 deletions
diff --git a/src/include/usr/devicefw/userif.H b/src/include/usr/devicefw/userif.H index df66190d1..0e2497e48 100644 --- a/src/include/usr/devicefw/userif.H +++ b/src/include/usr/devicefw/userif.H @@ -5,7 +5,10 @@ /* */ /* OpenPOWER HostBoot Project */ /* */ -/* COPYRIGHT International Business Machines Corp. 2011,2014 */ +/* Contributors Listed Below - COPYRIGHT 2011,2014 */ +/* [+] Google Inc. */ +/* [+] International Business Machines Corp. */ +/* */ /* */ /* Licensed under the Apache License, Version 2.0 (the "License"); */ /* you may not use this file except in compliance with the License. */ @@ -54,7 +57,7 @@ namespace DeviceFW CVPD, SCAN, EEPROM, - + GPIO, LAST_ACCESS_TYPE, }; @@ -149,6 +152,15 @@ namespace DeviceFW static_cast<uint64_t>(( i_offset )) /** + * Construct the device addressing paramters for the GPIO port extender ops + * @param[in] i_gpio_num - The port extender device type. + * @param[in] i_gpio_pin = The GPIO port address + */ + #define DEVICE_GPIO_ADDRESS( i_device_type , i_gpio_portAddr) \ + DeviceFW::GPIO, static_cast<uint64_t>(( i_device_type )),\ + static_cast<uint64_t>(( i_gpio_portAddr )) + + /** * @brief Perform a hardware read operation. * * @param[in] i_target Device target to operate on. |