X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fcarlfw%2Finclude%2Fio.h;fp=carl9170fw%2Fcarlfw%2Finclude%2Fio.h;h=5bdc821a30eca60a2c824781b68c5d4988a43d2a;hp=4ccdc6e4c8f78df780c282979cf9f1ed8e66912b;hb=4d82a54061be75c0bf489026aad55821bc9c61c7;hpb=1ba1a88647bfe113c885f985d6e383790dec2a1f diff --git a/carl9170fw/carlfw/include/io.h b/carl9170fw/carlfw/include/io.h index 4ccdc6e..5bdc821 100644 --- a/carl9170fw/carlfw/include/io.h +++ b/carl9170fw/carlfw/include/io.h @@ -10,8 +10,7 @@ * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License along - * with this program; if not, write to the Free Software Foundation, Inc., - * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA. + * with this program; If not, see . */ #ifndef __CARL9170FW_IO_H @@ -150,4 +149,9 @@ static inline __inline void orb(const volatile uint32_t addr, const volatile uin setb(addr, getb(addr) | val); } +static inline __inline uint16_t getw(const volatile uint32_t addr) +{ + return readw((const volatile void *) addr); +} + #endif /* __CARL9170FW_IO_H */