X-Git-Url: https://jxself.org/git/?p=linux-libre-firmware.git;a=blobdiff_plain;f=carl9170fw%2Fcarlfw%2Finclude%2Fgpio.h;fp=carl9170fw%2Fcarlfw%2Finclude%2Fgpio.h;h=56c554a40da4cf938a63e2e43e74cc56c100ca73;hp=97c192729098ecee2bbb8f817e7fec230998d891;hb=4d82a54061be75c0bf489026aad55821bc9c61c7;hpb=1ba1a88647bfe113c885f985d6e383790dec2a1f diff --git a/carl9170fw/carlfw/include/gpio.h b/carl9170fw/carlfw/include/gpio.h index 97c1927..56c554a 100644 --- a/carl9170fw/carlfw/include/gpio.h +++ b/carl9170fw/carlfw/include/gpio.h @@ -16,8 +16,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_GPIO_H @@ -37,6 +36,11 @@ static inline __inline void led_set(const unsigned int ledstate) set(AR9170_GPIO_REG_PORT_DATA, ledstate); } +static inline __inline u16 get_random_u16(void) +{ + return getw(AR9170_RAND_REG_NUM); +} + #ifdef CONFIG_CARL9170FW_GPIO_INTERRUPT void gpio_timer(void);